Architecture of the hosted Aomi runtime. Session manager lifecycle, message processing, tool execution coordination, SSE streaming, and event handling.
The Aomi runtime is the hosted execution environment that manages sessions, processes messages, and coordinates tool execution.
Chat replies come back as a JSON session snapshot, not a token stream. To follow work in real time, the runtime exposes a Server-Sent Events (SSE) channel at GET /api/updates. It pushes one JSON event per line, and each event carries a type and session_id:
The event types are title_changed, tool_update, tool_complete, and system_notice. Clients usually pair this channel with polling GET /api/state to pick up new messages. See the API Reference for headers and a consumer example.