类class
agentscope.eventHintBlockEvent
class HintBlockEvent(EventBase)
源码Source
agentscope/event/_event.py:288–310Hint 块事件,描述执行过程中的事件。位于 agentscope.event 包,继承自 EventBase。
Unlike text/thinking blocks, hint blocks are not streamed — the
full content is available at creation time (team messages,
background tool results, user interruptions, …). A single event
carries the complete :class:~agentscope.message.HintBlock.
The hint field mirrors :attr:HintBlock.hint and may be a
plain string or a list of :class:TextBlock / :class:DataBlock
for multimodal content.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
type | Literal[EventType.HINT_BLOCK] | 类型字段。 | EventType.HINT_BLOCK |
reply_id | str | 回复标识字段。 | — |
block_id | str | 块标识字段。 | — |
source | str | None | 来源字段。 | None |
hint | str | List[TextBlock | DataBlock] | `hint` 字段。 | — |
属性详情Attribute Detail
type
Literal[EventType.HINT_BLOCK] = EventType.HINT_BLOCK类型字段。声明为 Literal[EventType.HINT_BLOCK]。
The type field.
源码Source
agentscope/event/_event.py:301reply_id
str回复标识字段。声明为 str。
The reply id field.
源码Source
agentscope/event/_event.py:303block_id
str块标识字段。声明为 str。
The block id field.
源码Source
agentscope/event/_event.py:305source
str | None = None来源字段。声明为 str | None。
The source field.
源码Source
agentscope/event/_event.py:307hint
str | List[TextBlock | DataBlock]hint 字段。声明为 str | List[TextBlock | DataBlock]。
The hint field.
源码Source
agentscope/event/_event.py:309