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.
The Scheduler Service provides cron-like scheduling capabilities for agents. It allows agents to schedule tasks (jobs) to run at specific intervals or times.
ISchedulerRequestConnectorService.getSchedulerConnector()LocalSchedulerThe AgentData Service is responsible for retrieving agent definitions, configuration, and metadata. It acts as the repository interface for agent blueprints.
IAgentDataConnectorConnectorService.getAgentDataConnector()getAgentData(agentId): Retrieve the full agent definition (components, connections, settings).getOpenAPIJSON(agentId): Generate an OpenAPI specification for the agent's exposed skills/endpoints.setEphemeralAgentData(agentId, data): Store temporary agent definitions (used by SDK for non-persisted agents).