symfonic.agent.subagents.registry¶
registry ¶
In-process AgentStore backed by child SymfonicAgent instances.
SubAgentRegistry ¶
Concrete AgentStore that runs registered child agents in-process.
Satisfies the AgentStore protocol (list / read / run). The
run method inherits the parent's tenant scope into the child and
threads the (already incremented) agent depth so the child's own
delegation guard can enforce max_agent_depth for nested delegation.
Source code in src/symfonic/agent/subagents/registry.py
run
async
¶
run(
name: str,
agent_input: Any,
*,
parent_scope: Any = None,
agent_depth: int = 1,
run_id: str | None = None,
) -> Any
Run child name on agent_input; returns its AgentResponse.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Registered sub-agent name. |
required |
agent_input
|
Any
|
The delegated task (coerced to |
required |
parent_scope
|
Any
|
Tenant scope inherited from the parent run. |
None
|
agent_depth
|
int
|
Depth to stamp on the child run (parent depth + 1). |
1
|
run_id
|
str | None
|
Optional correlation id passed to the child. |
None
|
Raises:
| Type | Description |
|---|---|
StorageError
|
If |