Agents

Respond to chat message (streaming)

Streams a single assistant turn from a Daytona-backed chat runtime as normalized SSE events with stable turn, message, and part IDs. Emits events: turn.started, turn.status, message.created, message.part.updated, message.completed, session.usage, turn.completed.

When to use this endpoint: Recommended for building custom chat UIs that need real-time streaming progress. This is the primary streaming endpoint for new integrations.

Alternatives:

  • POST /chat/:id/message — synchronous, returns complete response as JSON (best for server-to-server)
post/agent/v2/chat/{id}/respond

Path parameters

idstring required

Chat session ID

Request body

modelstring nullable

Optional model override. When provided, the runtime bootstrap config is updated so subsequent turns use this model. Conversation history is preserved.

Response

Turn-scoped normalized SSE stream

Changes