类class
agentscope.messageHintBlock
class HintBlock(BaseModel)
源码Source
agentscope/message/_block.py:101–125Hint 块,在智能体、模型与前端之间传递结构化消息和事件。位于 agentscope.message 包。
The hint field can be a plain string (text-only) or a list of
:class:TextBlock / :class:DataBlock for multimodal content
(e.g. a background tool result containing both text and an image).
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
type | Literal['hint'] | 类型字段。 | 'hint' |
hint | str | list[TextBlock | DataBlock] | `hint` 字段。 | — |
id | str | 标识字段。 | Field(default_factory=_generate_id) |
source | str | None | 来源字段。 | None |
created_at | str | 已创建 at字段。 | Field(default_factory=_generate_timestamp) |
finished_at | str | None | `finished_at` 字段。 | Field(default_factory=_generate_timestamp) |
属性详情Attribute Detail
type
Literal['hint'] = 'hint'类型字段。声明为 Literal['hint']。
The type field.
源码Source
agentscope/message/_block.py:111hint
str | list[TextBlock | DataBlock]hint 字段。声明为 str | list[TextBlock | DataBlock]。
The hint field.
源码Source
agentscope/message/_block.py:113id
str = Field(default_factory=_generate_id)标识字段。声明为 str。
The id field.
源码Source
agentscope/message/_block.py:116source
str | None = None来源字段。声明为 str | None。
The source field.
源码Source
agentscope/message/_block.py:118created_at
str = Field(default_factory=_generate_timestamp)已创建 at字段。声明为 str。
The created at field.
源码Source
agentscope/message/_block.py:122finished_at
str | None = Field(default_factory=_generate_timestamp)finished_at 字段。声明为 str | None。
The finished at field.
源码Source
agentscope/message/_block.py:124