类class
agentscope.eventToolResultEndEvent
class ToolResultEndEvent(EventBase)
源码Source
agentscope/event/_event.py:408–422工具结果结束事件,描述执行过程中的事件。位于 agentscope.event 包,继承自 EventBase。
Tool result end event. Declared in agentscope.event. Extends EventBase.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
model_config | — | 模型配置字段。 | ConfigDict(use_enum_values=True) |
type | Literal[EventType.TOOL_RESULT_END] | 类型字段。 | EventType.TOOL_RESULT_END |
reply_id | str | 回复标识字段。 | — |
tool_call_id | str | 工具调用标识字段。 | — |
state | ToolResultState | 状态字段。 | — |
metadata | dict[str, Any] | 元数据字段。 | Field(default_factory=dict) |
属性详情Attribute Detail
model_config
= ConfigDict(use_enum_values=True)模型配置字段。
The model config field.
源码Source
agentscope/event/_event.py:411type
Literal[EventType.TOOL_RESULT_END] = EventType.TOOL_RESULT_END类型字段。声明为 Literal[EventType.TOOL_RESULT_END]。
The type field.
源码Source
agentscope/event/_event.py:413reply_id
str回复标识字段。声明为 str。
The reply id field.
源码Source
agentscope/event/_event.py:415tool_call_id
str工具调用标识字段。声明为 str。
The tool call id field.
源码Source
agentscope/event/_event.py:417state
ToolResultState状态字段。声明为 ToolResultState。
The state field.
源码Source
agentscope/event/_event.py:419metadata
dict[str, Any] = Field(default_factory=dict)元数据字段。声明为 dict[str, Any]。
The metadata field.
源码Source
agentscope/event/_event.py:421