Skip to main content
Test SSE stream reconnection for team runs using background=True, stream=True. The team runs in a detached task that survives client disconnections. Events are buffered so the client can reconnect via /resume and catch up on missed events.

Prerequisites

  1. An AgentOS server running on http://localhost:7777 with at least one team registered (e.g., python cookbook/05_agent_os/basic.py).
  2. The team must have a db configured. Background runs require persistent storage.
  3. Run the script.

Run the Example