AS AgentScopeAPI 手册 / API Reference

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
resultSpawnResult结果(类型 `SpawnResult`)。The result.
parentSessionKeyString父级会话键(类型 `String`)。The parent session key.
源码Source io/agentscope/harness/coding/session/SessionAgentManager.java:85
基于官方固定版本源码静态生成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.