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 |
|---|---|---|
key | String | 执行键相关操作。 Performs the key operation. |
agentId | String | 执行智能体标识相关操作。 Performs the agent id operation. |
sessionId | String | 执行会话标识相关操作。 Performs the session id operation. |
label | String | 执行标签相关操作。 Performs the label operation. |
depth | int | 执行 `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–239agentId
String agentId执行智能体标识相关操作。
Performs the agent id operation.
源码Source
io/agentscope/core/state/ToolContextState.java:219–239sessionId
String sessionId执行会话标识相关操作。
Performs the session id operation.
源码Source
io/agentscope/core/state/ToolContextState.java:219–239label
String label执行标签相关操作。
Performs the label operation.
源码Source
io/agentscope/core/state/ToolContextState.java:219–239depth
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 |
|---|---|---|
key | String | 键(类型 `String`)。The key. |
agentId | String | 智能体标识(类型 `String`)。The agent id. |
sessionId | String | 会话标识(类型 `String`)。The session id. |
label | String | 标签(类型 `String`)。The label. |
depth | int | depth(类型 `int`)。The depth. |
源码Source
io/agentscope/core/state/ToolContextState.java:226–238