HintBlock
public final class HintBlock extends ContentBlock
源码Source
io/agentscope/core/message/HintBlock.java:28–74Hint 块,在智能体、模型与前端之间传递结构化消息和事件。位于 io.agentscope.core.message 包,继承自 ContentBlock。核心成员包括 getId、getHint、getSource、HintBlock。
A content block that provides hints to the LLM during reasoning.
Hint blocks are injected by middleware or memory systems (e.g., RAG) to supply contextual information that guides the agent's reasoning without being part of the conversation history.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public HintBlock(String id, String hint, String source) | 初始化 `HintBlock` 实例。 Creates a new instance. |
public HintBlock(String id, String hint) | 初始化 `HintBlock` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getId() | 获取标识。 Gets the unique identifier of this hint block. |
public String getHint() | 获取 `getHint`。 Gets the hint text. |
public String getSource() | 获取来源。 Returns the sender or origin of this hint. |
构造器详情Constructor Detail
HintBlock
public HintBlock(String id, String hint, String source)
初始化 HintBlock 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
hint | String | hint(类型 `String`)。The hint. |
source | String | 来源(类型 `String`)。The source. |
源码Source
io/agentscope/core/message/HintBlock.java:34–42HintBlock
public HintBlock(String id, String hint)
初始化 HintBlock 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
hint | String | hint(类型 `String`)。The hint. |
源码Source
io/agentscope/core/message/HintBlock.java:44–46方法详情Method Detail
getId
public String getId()
获取标识。
Gets the unique identifier of this hint block.
String返回字符串结果。The hint block ID
源码Source
io/agentscope/core/message/HintBlock.java:53–55getHint
public String getHint()
获取 getHint。
Gets the hint text.
String返回字符串结果。The hint content
源码Source
io/agentscope/core/message/HintBlock.java:62–64getSource
public String getSource()
获取来源。
Returns the sender or origin of this hint.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/message/HintBlock.java:71–73