{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zihin-ai/json-schema/zihin-ai-get-api-v1-sessions-executionid-live-response-schema.json",
  "title": "GetApiV1SessionsExecutionidLiveResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/zihin-ai-openapi-generated.yml#/components/schemas/GetApiV1SessionsExecutionidLiveResponse",
  "type": "object",
  "properties": {
    "snapshot": {
      "type": "object",
      "description": "Current state on connect (executionId, phase, agentId, startedAt)."
    },
    "session:start": {
      "type": "object",
      "description": "Session started (tenantId, agentId, userId, source)."
    },
    "session:phase": {
      "type": "object",
      "description": "Phase change (phase)."
    },
    "session:tool": {
      "type": "object",
      "description": "Tool execution (tool, success, result)."
    },
    "session:thinking": {
      "type": "object",
      "description": "Agent reasoning (thought)."
    },
    "session:linked": {
      "type": "object",
      "description": "Persistent session ID resolved (sessionId)."
    },
    "session:complete": {
      "type": "object",
      "description": "Execution completed (contentPreview, usage, iterations, executionTimeMs)."
    },
    "session:error": {
      "type": "object",
      "description": "Execution error (error)."
    }
  }
}