Supervisor for a fleet of A2A agents with an integrated registry.
Starts an A2A.Registry followed by each agent as a child, all under a
:one_for_one strategy. Agents are independent — one crashing won't take
down others.
Usage
children = [
{A2A.AgentSupervisor, agents: [
MyApp.PricingAgent,
{MyApp.RiskAgent, task_store: {A2A.TaskStore.ETS, :risk_tasks}}
]}
]
Supervisor.start_link(children, strategy: :one_for_one)Options
:agents— list of agent modules or{module, opts}tuples (required):name— supervisor name (default:A2A.AgentSupervisor):registry— registry name (default:A2A.Registry):agent_opts— default options merged into every agent (default:[])
Summary
Functions
Returns a specification to start this module under a supervisor.
Starts the agent supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec start_link(keyword()) :: Supervisor.on_start()
Starts the agent supervisor.
See module documentation for available options.