symfonic.agent.subagents.tool¶
tool ¶
Delegation tools that wire a SubAgentRegistry into the parent palette.
create_delegation_tools ¶
create_delegation_tools(
registry: SubAgentRegistry,
resolve_scope: Callable[[], Any],
resolve_depth: Callable[[], int],
max_depth: int,
record_delegation: Callable[[str], None] | None = None,
) -> list[StructuredTool]
Build the run_agent + list_agents tools for a parent agent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
registry
|
SubAgentRegistry
|
The child-agent store. |
required |
resolve_scope
|
Callable[[], Any]
|
Returns the active tenant scope, or |
required |
resolve_depth
|
Callable[[], int]
|
Returns the parent's current agent depth (0 at top level). |
required |
max_depth
|
int
|
|
required |
record_delegation
|
Callable[[str], None] | None
|
v9.1.0 (issue #29) optional callback invoked with
the sub-agent name on each successful delegation so the engine can
stamp |
None
|