{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/syntheticbrew-ai/json-schema/syntheticbrew-ai-post-api-v1-schemas-name-chat-response-schema.json",
  "title": "PostApiV1SchemasNameChatResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/syntheticbrew-ai-integration-openapi-generated.yml#/components/schemas/PostApiV1SchemasNameChatResponse",
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "description": "The session UUID."
    },
    "schema_id": {
      "type": "string",
      "description": "The schema UUID."
    },
    "message": {
      "type": "string",
      "description": "Completed assistant message (when stream=false)."
    },
    "tool_calls": {
      "type": "string",
      "description": "Array of tool call objects (when stream=false)."
    },
    "error": {
      "type": "string",
      "description": "Optional error object if the turn failed."
    },
    "error_code": {
      "type": "string",
      "description": "Error code matching streaming error events."
    }
  }
}