AS AgentScopeAPI 手册 / API Reference

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

构造器Constructor说明Description
public ExternalExecutionResultEvent(String id, String createdAt, String replyId, List<ToolResultBlock> toolResults)
初始化 `ExternalExecutionResultEvent` 实例。
Creates a new instance.
public ExternalExecutionResultEvent(String replyId, List<ToolResultBlock> toolResults)
初始化 `ExternalExecutionResultEvent` 实例。
Creates a new instance.

方法摘要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
idString标识(类型 `String`)。The id.
createdAtString已创建 At(类型 `String`)。The created at.
replyIdString回复标识(类型 `String`)。The reply id.
toolResultsList<ToolResultBlock>工具结果(类型 `List`)。The tool results.
源码Source io/agentscope/core/event/ExternalExecutionResultEvent.java:31–40

ExternalExecutionResultEvent

public ExternalExecutionResultEvent(String replyId, List<ToolResultBlock> toolResults)

初始化 ExternalExecutionResultEvent 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
replyIdString回复标识(类型 `String`)。The reply id.
toolResultsList<ToolResultBlock>工具结果(类型 `List`)。The tool results.
源码Source io/agentscope/core/event/ExternalExecutionResultEvent.java:42–45

方法详情Method Detail

getType

public AgentEventType getType()

获取类型。

Returns the type.

返回Returns AgentEventType
返回AgentEventType。Returns agent event type.
源码Source io/agentscope/core/event/ExternalExecutionResultEvent.java:47–50

getReplyId

public String getReplyId()

获取回复标识。

Returns the reply id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/event/ExternalExecutionResultEvent.java:52–54

getToolResults

public List<ToolResultBlock> getToolResults()

获取工具结果。

Returns the tool results.

返回Returns List<ToolResultBlock>
返回列出。Returns list.
源码Source io/agentscope/core/event/ExternalExecutionResultEvent.java:56–58

继承成员Inherited Members

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.