SpawnInterceptor
@FunctionalInterface public interface SpawnInterceptor
源码Source
io/agentscope/harness/coding/session/SessionAgentManager.java:83–86定义 Spawn 拦截器契约的接口。位于 io.agentscope.harness.coding.session 包。核心成员包括 onSpawn。
Callback invoked after a subagent session is spawned through this manager.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void onSpawn(SpawnResult result, String parentSessionKey) | 处理 `onSpawn` 事件。 Performs the on spawn operation. |
方法详情Method Detail
onSpawn
public void onSpawn(SpawnResult result, String parentSessionKey)
处理 onSpawn 事件。
Performs the on spawn operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
result | SpawnResult | 结果(类型 `SpawnResult`)。The result. |
parentSessionKey | String | 父级会话键(类型 `String`)。The parent session key. |
源码Source
io/agentscope/harness/coding/session/SessionAgentManager.java:85