AsyncToolRecord
public record AsyncToolRecord( String id, String sessionId, String toolName, String toolCallId, String status, Instant createdAt)
io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42承载异步工具记录数据的记录类型。位于 io.agentscope.harness.agent.bus 包。核心成员包括 id、sessionId、toolName、toolCallId、status、createdAt。
Tracks the lifecycle of an async tool execution that has been offloaded to the background.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
id | String | 执行标识相关操作。 unique identifier for this async tool execution |
sessionId | String | 执行会话标识相关操作。 the session that initiated the tool call |
toolName | String | 执行工具名称相关操作。 name of the tool being executed |
toolCallId | String | 执行工具调用标识相关操作。 the original tool_call id from the LLM |
status | String | 执行状态相关操作。 current status: RUNNING, COMPLETED, FAILED, or TIMEOUT |
createdAt | Instant | 执行已创建 At相关操作。 when the async execution was registered |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
RUNNINGstaticfinal | String | 运行中字段。 The RUNNING field. |
COMPLETEDstaticfinal | String | 已完成字段。 The COMPLETED field. |
FAILEDstaticfinal | String | 失败字段。 The FAILED field. |
TIMEOUTstaticfinal | String | 超时字段。 The TIMEOUT field. |
记录组件详情Record Component Detail
id
String id执行标识相关操作。
unique identifier for this async tool execution
io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42sessionId
String sessionId执行会话标识相关操作。
the session that initiated the tool call
io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42toolName
String toolName执行工具名称相关操作。
name of the tool being executed
io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42toolCallId
String toolCallId执行工具调用标识相关操作。
the original tool_call id from the LLM
io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42status
String status执行状态相关操作。
current status: RUNNING, COMPLETED, FAILED, or TIMEOUT
io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42createdAt
Instant createdAt执行已创建 At相关操作。
when the async execution was registered
io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42字段详情Field Detail
RUNNING
public static final String RUNNING
运行中字段。声明为 public static final String RUNNING。
The RUNNING field.
io/agentscope/harness/agent/bus/AsyncToolRecord.java:38COMPLETED
public static final String COMPLETED
已完成字段。声明为 public static final String COMPLETED。
The COMPLETED field.
io/agentscope/harness/agent/bus/AsyncToolRecord.java:39FAILED
public static final String FAILED
失败字段。声明为 public static final String FAILED。
The FAILED field.
io/agentscope/harness/agent/bus/AsyncToolRecord.java:40TIMEOUT
public static final String TIMEOUT
超时字段。声明为 public static final String TIMEOUT。
The TIMEOUT field.
io/agentscope/harness/agent/bus/AsyncToolRecord.java:41