cases

Stream a plain-text cases chat completion as SSE

Generate a plain-text answer to the user's question with the LLM and stream it as server-sent events. Unlike /cases/chat/stream, the stream uses a minimal custom protocol (no Anthropic event objects, no tool use):

  • event: delta / data: {"text": "<text chunk>"}
  • event: done / data: {}
  • event: error / data: {"message": "<error message>"}
post/cases/chat/completion

Request body

modelstring

Optional LLM model override. Falls back to server default if not specified.

notebookobject required

The case notebook JSON object (.ipynb) the conversation is about.

provider'anthropic' | 'bedrock'

LLM provider. "anthropic" for direct API, "bedrock" for AWS Bedrock. Defaults to "bedrock".

Example request

{
  "parameters": [
    {
      "value_type": "number"
    }
  ]
}

Response

SSE stream started successfully

Changes