Skip to main content

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:
EventWhat You See
metaModel name, resolved mode, active skills
tokenText appearing character by character
toolTool call badge with status
artifactPreview card for generated files
doneFinal cost, token count, follow-up suggestions

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 are hosted on artifacts.hitheo.ai and the download URLs are presigned for secure access.