DynamicSupervisor for spawning and managing AgentRunner processes.
Each Jido.Messaging instance has its own AgentSupervisor that manages agent runners on-demand.
Summary
Functions
Returns a specification to start this module under a supervisor.
Count running agent runners for this instance
List all running agents in a room.
List all running agents across all rooms
Start an agent assigned to a room thread.
Stop an agent assigned to a room thread.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Count running agent runners for this instance
List all running agents in a room.
Returns a list of {{thread_id, agent_id}, pid} tuples.
List all running agents across all rooms
Start an agent assigned to a room thread.
Returns {:ok, pid} if started successfully, or {:error, {:already_started, pid}}
if the agent is already running in this room.
Options
The agent_config map must include:
:handler- Function(message, context) -> {:reply, text} | :noreply | {:error, reason}:trigger-:all|:mention|{:prefix, "/cmd"}:name- Display name for the agent
Stop an agent assigned to a room thread.
Returns :ok if stopped, or {:error, :not_found} if not running.