AS AgentScopeAPI 手册 / API Reference

SpawnResult

public record SpawnResult( String runId, String sessionKey, String sessionId, String sessionFilePath, String agentId, String status, String error)
源码Source io/agentscope/harness/coding/session/SpawnResult.java:19–26

承载 Spawn 结果数据的记录类型。位于 io.agentscope.harness.coding.session 包。核心成员包括 runId、sessionKey、sessionId、sessionFilePath、agentId、status。

Result of registering a managed subagent session.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
runIdString
运行标识。
Runs the id.
sessionKeyString
执行会话键相关操作。
Performs the session key operation.
sessionIdString
执行会话标识相关操作。
Performs the session id operation.
sessionFilePathString
执行会话文件路径相关操作。
Performs the session file path operation.
agentIdString
执行智能体标识相关操作。
Performs the agent id operation.
statusString
执行状态相关操作。
Performs the status operation.
errorString
执行错误相关操作。
Performs the error operation.

记录组件详情Record Component Detail

runId

String runId

运行标识。

Runs the id.

源码Source io/agentscope/harness/coding/session/SpawnResult.java:19–26

sessionKey

String sessionKey

执行会话键相关操作。

Performs the session key operation.

源码Source io/agentscope/harness/coding/session/SpawnResult.java:19–26

sessionId

String sessionId

执行会话标识相关操作。

Performs the session id operation.

源码Source io/agentscope/harness/coding/session/SpawnResult.java:19–26

sessionFilePath

String sessionFilePath

执行会话文件路径相关操作。

Performs the session file path operation.

源码Source io/agentscope/harness/coding/session/SpawnResult.java:19–26

agentId

String agentId

执行智能体标识相关操作。

Performs the agent id operation.

源码Source io/agentscope/harness/coding/session/SpawnResult.java:19–26

status

String status

执行状态相关操作。

Performs the status operation.

源码Source io/agentscope/harness/coding/session/SpawnResult.java:19–26

error

String error

执行错误相关操作。

Performs the error operation.

源码Source io/agentscope/harness/coding/session/SpawnResult.java:19–26
基于官方固定版本源码静态生成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.