Streaming
The Playground streams responses token-by-token using Server-Sent Events (SSE). As the response is generated:- Tokens appear in real-time as they’re produced
- Tool calls are displayed inline with their name and status (
success/error) - Model info shows which Theo engine was selected and the resolved mode
- Cost updates in real-time as tokens are consumed
Event Types
The streaming display corresponds to the SSE event types from the API:Artifacts
Generated files (images, code, documents) are displayed as interactive preview cards:- Images — inline preview with full-resolution download link
- Code — syntax-highlighted with copy button and language detection
- Documents — download link with format badge (PDF, DOCX, PPTX, XLSX, CSV)
artifacts.hitheo.ai and the download URLs are presigned for secure access.