Expand description
HTTP callback routing for RAP tool results.
The reusable bridge decodes callbacks, assigns deduplication IDs, and forwards agent inputs straight into the agent system’s input queue. Admission is owned by the router: its thread-existence and stopped-thread checks refuse events for unknown or user-stopped sessions before any driver spawns. The only callback content the daemon handles itself is display-only view updates, which never enter agent history.
Functions§
- serve_
callbacks - Start the callback accept loop for an already-built
SessionManager(whosecallback_urlmust match the bridge’s). Agent inputs flow into the session manager’s input sender; view updates are persisted and broadcast to subscribers.