GenServer running the observe-think-act loop for an AI agent.
Each Agent.Process owns a terminal buffer and runs a configurable tick timer. On each tick:
observe/3-- reads buffer + recent eventsthink/2-- agent decides what to doact/3-- agent writes to terminal or sends messages
On crash, the DynamicSupervisor restarts the process. The new instance
calls ContextStore.load/1 then restore_context/1 to resume.
Summary
Functions
Returns a specification to start this module under a supervisor.
Get the agent's current status.
Push an event into the agent's event buffer.
Pilot releases the agent's terminal back to the agent.
Send a directive to the agent.
Start an agent process.
Pilot takes over the agent's terminal.
Types
@type status() ::
:initializing | :thinking | :acting | :waiting | :paused | :taken_over
Functions
@spec child_spec(keyword()) :: Supervisor.child_spec()
Returns a specification to start this module under a supervisor.
See Supervisor.
Get the agent's current status.
Push an event into the agent's event buffer.
Pilot releases the agent's terminal back to the agent.
Send a directive to the agent.
Start an agent process.
Pilot takes over the agent's terminal.