View Source Jido.Agent.Supervisor (Jido v1.0.0-rc.1)
A dynamic supervisor that manages agent workers and their associated processes.
Each agent worker runs under this supervisor and can dynamically start/stop additional child processes. The supervisor provides:
- Dynamic agent worker management
- Named process registration via Registry
- Child process supervision
- Telemetry instrumentation
- Configurable restart strategies
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type child_spec() :: :supervisor.child_spec() | {module(), term()} | module()
@type supervisor_opts() :: [ strategy: :one_for_one, max_restarts: non_neg_integer(), max_seconds: non_neg_integer() ]
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec start_agent( Jido.Agent.t(), keyword() ) :: DynamicSupervisor.on_start_child()
@spec start_child( child_spec(), keyword() ) :: DynamicSupervisor.on_start_child()
@spec terminate_child(pid()) :: :ok | {:error, :not_found}