AS AgentScopeAPI 手册 / API Reference

AsyncToolRecord

public record AsyncToolRecord( String id, String sessionId, String toolName, String toolCallId, String status, Instant createdAt)
源码Source 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
idString
执行标识相关操作。
unique identifier for this async tool execution
sessionIdString
执行会话标识相关操作。
the session that initiated the tool call
toolNameString
执行工具名称相关操作。
name of the tool being executed
toolCallIdString
执行工具调用标识相关操作。
the original tool_call id from the LLM
statusString
执行状态相关操作。
current status: RUNNING, COMPLETED, FAILED, or TIMEOUT
createdAtInstant
执行已创建 At相关操作。
when the async execution was registered

字段摘要Field Summary

字段Field类型Type说明Description
RUNNING
staticfinal
String
运行中字段。
The RUNNING field.
COMPLETED
staticfinal
String
已完成字段。
The COMPLETED field.
FAILED
staticfinal
String
失败字段。
The FAILED field.
TIMEOUT
staticfinal
String
超时字段。
The TIMEOUT field.

记录组件详情Record Component Detail

id

String id

执行标识相关操作。

unique identifier for this async tool execution

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42

sessionId

String sessionId

执行会话标识相关操作。

the session that initiated the tool call

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42

toolName

String toolName

执行工具名称相关操作。

name of the tool being executed

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42

toolCallId

String toolCallId

执行工具调用标识相关操作。

the original tool_call id from the LLM

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42

status

String status

执行状态相关操作。

current status: RUNNING, COMPLETED, FAILED, or TIMEOUT

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42

createdAt

Instant createdAt

执行已创建 At相关操作。

when the async execution was registered

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:30–42

字段详情Field Detail

RUNNING

public static final String RUNNING
staticfinal

运行中字段。声明为 public static final String RUNNING。

The RUNNING field.

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:38

COMPLETED

public static final String COMPLETED
staticfinal

已完成字段。声明为 public static final String COMPLETED。

The COMPLETED field.

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:39

FAILED

public static final String FAILED
staticfinal

失败字段。声明为 public static final String FAILED。

The FAILED field.

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:40

TIMEOUT

public static final String TIMEOUT
staticfinal

超时字段。声明为 public static final String TIMEOUT。

The TIMEOUT field.

源码Source io/agentscope/harness/agent/bus/AsyncToolRecord.java:41
基于官方固定版本源码静态生成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.