ExternalExecutionResultEvent
public class ExternalExecutionResultEvent extends AgentEvent
源码Source
io/agentscope/core/event/ExternalExecutionResultEvent.java:26–59外部执行结果事件,描述执行过程中的事件。位于 io.agentscope.core.event 包,继承自 AgentEvent。核心成员包括 getType、getReplyId、getToolResults、ExternalExecutionResultEvent。
Emitted after externally-executed tool results are provided back to the agent.
构造器摘要Constructor Summary
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AgentEventType getType() | 获取类型。 Returns the type. |
public String getReplyId() | 获取回复标识。 Returns the reply id. |
public List<ToolResultBlock> getToolResults() | 获取工具结果。 Returns the tool results. |
构造器详情Constructor Detail
ExternalExecutionResultEvent
public ExternalExecutionResultEvent(String id, String createdAt, String replyId, List<ToolResultBlock> toolResults)
初始化 ExternalExecutionResultEvent 实例。
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. |
toolResults | List<ToolResultBlock> | 工具结果(类型 `List`)。The tool results. |
源码Source
io/agentscope/core/event/ExternalExecutionResultEvent.java:31–40ExternalExecutionResultEvent
public ExternalExecutionResultEvent(String replyId, List<ToolResultBlock> toolResults)
初始化 ExternalExecutionResultEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
replyId | String | 回复标识(类型 `String`)。The reply id. |
toolResults | List<ToolResultBlock> | 工具结果(类型 `List`)。The tool results. |
源码Source
io/agentscope/core/event/ExternalExecutionResultEvent.java:42–45方法详情Method Detail
getType
public AgentEventType getType()
获取类型。
Returns the type.
AgentEventType返回AgentEventType。Returns agent event type.
源码Source
io/agentscope/core/event/ExternalExecutionResultEvent.java:47–50getReplyId
public String getReplyId()
获取回复标识。
Returns the reply id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/event/ExternalExecutionResultEvent.java:52–54getToolResults
public List<ToolResultBlock> getToolResults()
获取工具结果。
Returns the tool results.
List<ToolResultBlock>返回列出。Returns list.
源码Source
io/agentscope/core/event/ExternalExecutionResultEvent.java:56–58