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