HintBlockEvent
public class HintBlockEvent extends AgentEvent
源码Source
io/agentscope/core/event/HintBlockEvent.java:28–85Hint 块事件,描述执行过程中的事件。位于 io.agentscope.core.event 包,继承自 AgentEvent。核心成员包括 getType、getReplyId、getBlockId、getHintSource、getHint、HintBlockEvent。
One-shot hint block event.
Unlike text/thinking blocks, hint blocks are not streamed — the full content is available at creation time (team messages, background tool results, user interruptions, etc.). A single event carries the complete hint.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public HintBlockEvent(String id, String createdAt, String replyId, String blockId, String hintSource, String hint) | 初始化 `HintBlockEvent` 实例。 Creates a new instance. |
public HintBlockEvent(String replyId, String blockId, String hintSource, String hint) | 初始化 `HintBlockEvent` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AgentEventType getType() | 获取类型。 Returns the type. |
public String getReplyId() | 获取回复标识。 Returns the reply id. |
public String getBlockId() | 获取块标识。 Returns the block id. |
public String getHintSource() | 获取 `getHintSource`。 Returns the sender or origin of this hint. |
public String getHint() | 获取 `getHint`。 Returns the hint. |
构造器详情Constructor Detail
HintBlockEvent
public HintBlockEvent(String id, String createdAt, String replyId, String blockId, String hintSource, String hint)
初始化 HintBlockEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
createdAt | String | 已创建 At(类型 `String`)。The created at. |
replyId | String | 回复标识(类型 `String`)。The reply id. |
blockId | String | 块标识(类型 `String`)。The block id. |
hintSource | String | hint 来源(类型 `String`)。The hint source. |
hint | String | hint(类型 `String`)。The hint. |
源码Source
io/agentscope/core/event/HintBlockEvent.java:35–48HintBlockEvent
public HintBlockEvent(String replyId, String blockId, String hintSource, String hint)
初始化 HintBlockEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
replyId | String | 回复标识(类型 `String`)。The reply id. |
blockId | String | 块标识(类型 `String`)。The block id. |
hintSource | String | hint 来源(类型 `String`)。The hint source. |
hint | String | hint(类型 `String`)。The hint. |
源码Source
io/agentscope/core/event/HintBlockEvent.java:50–55方法详情Method Detail
getType
public AgentEventType getType()
获取类型。
Returns the type.
AgentEventType返回AgentEventType。Returns agent event type.
源码Source
io/agentscope/core/event/HintBlockEvent.java:57–60getReplyId
public String getReplyId()
获取回复标识。
Returns the reply id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/HintBlockEvent.java:62–64getBlockId
public String getBlockId()
获取块标识。
Returns the block id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/HintBlockEvent.java:66–68getHintSource
public String getHintSource()
获取 getHintSource。
Returns the sender or origin of this hint.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/HintBlockEvent.java:78–80getHint
public String getHint()
获取 getHint。
Returns the hint.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/HintBlockEvent.java:82–84