AS AgentScopeAPI 手册 / API Reference

SpawnEntry

public record SpawnEntry( @JsonProperty("key") String key, @JsonProperty("agent_id") String agentId, @JsonProperty("session_id") String sessionId, @JsonProperty("label") String label, @JsonProperty("depth") int depth)
源码Source io/agentscope/core/state/ToolContextState.java:219–239

承载 Spawn 条目数据的记录类型。位于 io.agentscope.core.state 包。核心成员包括 key、agentId、sessionId、label、depth、SpawnEntry。

Serializable metadata for a spawned subagent, persisted alongside the parent agent's state so that agent_send can lazily rebuild the live Agent instance after session restore or on a different replica.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
keyString
执行键相关操作。
Performs the key operation.
agentIdString
执行智能体标识相关操作。
Performs the agent id operation.
sessionIdString
执行会话标识相关操作。
Performs the session id operation.
labelString
执行标签相关操作。
Performs the label operation.
depthint
执行 `depth` 方法。
Performs the depth operation.

构造器摘要Constructor Summary

构造器Constructor说明Description
public SpawnEntry(String key, String agentId, String sessionId, String label, int depth)
初始化 `SpawnEntry` 实例。
Creates a new instance.

记录组件详情Record Component Detail

key

String key

执行键相关操作。

Performs the key operation.

源码Source io/agentscope/core/state/ToolContextState.java:219–239

agentId

String agentId

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

Performs the agent id operation.

源码Source io/agentscope/core/state/ToolContextState.java:219–239

sessionId

String sessionId

执行会话标识相关操作。

Performs the session id operation.

源码Source io/agentscope/core/state/ToolContextState.java:219–239

label

String label

执行标签相关操作。

Performs the label operation.

源码Source io/agentscope/core/state/ToolContextState.java:219–239

depth

int depth

执行 depth 方法。

Performs the depth operation.

源码Source io/agentscope/core/state/ToolContextState.java:219–239

构造器详情Constructor Detail

SpawnEntry

public SpawnEntry(String key, String agentId, String sessionId, String label, int depth)

初始化 SpawnEntry 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
keyString键(类型 `String`)。The key.
agentIdString智能体标识(类型 `String`)。The agent id.
sessionIdString会话标识(类型 `String`)。The session id.
labelString标签(类型 `String`)。The label.
depthintdepth(类型 `int`)。The depth.
源码Source io/agentscope/core/state/ToolContextState.java:226–238
基于官方固定版本源码静态生成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.