The Agent Manager is the heart of agent execution within the SRE. It is responsible for the entire agent lifecycle, from loading and configuration to execution and monitoring. This subsystem brings together all other SRE services to provide the environment where agents live and operate.
The Agent Manager handles the primary lifecycle states of an agent:
.smyth
file or a programmatic configuration) and preparing it for execution.RuntimeContext
and processing the agent's component graph. The Agent Manager steps through the components, resolves their inputs, executes their logic, and passes their outputs to the next components in the flow.An agent's behavior is defined by a workflow of connected Components. The Agent Manager is the orchestrator for this workflow. It:
The Agent Manager provides hooks for real-time monitoring of an agent's execution. It emits events for various lifecycle stages and component executions, which can be streamed to a client via Server-Sent Events (SSE) for live feedback and debugging.