{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stremai-com/json-schema/stremai-com-agent-trace-response-schema.json",
  "title": "AgentTraceResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stremai-com-openapi.json#/components/schemas/AgentTraceResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "session_id": {
      "type": "string",
      "title": "Session Id"
    },
    "task_hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Task Hint"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "total_steps": {
      "type": "integer",
      "title": "Total Steps"
    },
    "completed_steps": {
      "type": "integer",
      "title": "Completed Steps"
    },
    "failed_step": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failed Step"
    },
    "total_latency_ms": {
      "type": "integer",
      "title": "Total Latency Ms"
    },
    "total_cost_usd": {
      "type": "number",
      "title": "Total Cost Usd"
    },
    "total_tokens": {
      "type": "integer",
      "title": "Total Tokens"
    },
    "eval_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Eval Score"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "finalized_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Finalized At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "session_id",
    "task_hint",
    "status",
    "total_steps",
    "completed_steps",
    "failed_step",
    "total_latency_ms",
    "total_cost_usd",
    "total_tokens",
    "eval_score",
    "created_at",
    "finalized_at"
  ]
}