Agentuity Documentation

SSE Stream

Docs

A one-way stream from your server to the user's browser, with structure built in. Unlike raw streaming, SSE gives you typed events (like "token" or "done"), message IDs for tracking, and automatic reconnection if the connection drops. The sweet spot for LLM token streaming, live feeds, and progress updates. For simpler use cases where you just need raw bytes, see Text Stream.

Prompt
What are AI agents and how do they work?
OpenAI/GPT-5 Nano
Ready
Output will appear here as tokens stream in...
Reference Code
Loading...
Ready
Output will appear here...