Baseten · Schema

DeltaMessage

A delta message chunk in a streaming response.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
role string The role of the message author (typically `assistant`).
content string The content chunk generated by the model.
tool_calls array Tool calls generated by the model.
View JSON Schema on GitHub

JSON Schema

baseten-deltamessage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DeltaMessage",
  "title": "DeltaMessage",
  "additionalProperties": false,
  "properties": {
    "role": {
      "default": null,
      "title": "Role",
      "description": "The role of the message author (typically `assistant`).",
      "type": "string"
    },
    "content": {
      "default": null,
      "title": "Content",
      "description": "The content chunk generated by the model.",
      "type": "string"
    },
    "tool_calls": {
      "items": {
        "$ref": "#/components/schemas/ToolCall"
      },
      "title": "Tool Calls",
      "type": "array",
      "description": "Tool calls generated by the model."
    }
  },
  "type": "object",
  "description": "A delta message chunk in a streaming response."
}