Wrapper that runs the ChatAgent within the Jido.Messaging AgentRunner framework.
This module bridges the Jido.AI.Agent with Jido.Messaging's agent system by:
- Starting the ChatAgent GenServer
- Providing a handler function for the AgentRunner
- Managing the agent lifecycle
Architecture
┌─────────────────┐
│ AgentRunner │ <- Subscribes to Signal Bus
│ (per-room) │
└────────┬────────┘
│ calls handler
▼
┌─────────────────┐
│ ChatAgentRunner │ <- Manages ChatAgent lifecycle
└────────┬────────┘
│ delegates to
▼
┌─────────────────┐
│ ChatAgent │ <- ReAct reasoning + tools
│ (GenServer) │
└─────────────────┘Usage
# Get an agent config for use with AgentRunner
config = ChatAgentRunner.agent_config()
# Or start directly
{:ok, pid} = ChatAgentRunner.start_link(room_id: "demo:lobby", ...)
Summary
Functions
Returns an agent_config map suitable for use with AgentRunner.
Returns a specification to start this module under a supervisor.
Get the ChatAgent pid for direct interaction.
Start the ChatAgentRunner GenServer.
Types
Functions
Returns an agent_config map suitable for use with AgentRunner.
The handler will delegate to a running ChatAgent instance.
Returns a specification to start this module under a supervisor.
See Supervisor.
Get the ChatAgent pid for direct interaction.
Start the ChatAgentRunner GenServer.
This starts both the runner and the underlying ChatAgent.