{
  "$defs": {
    "ToolCall": {
      "description": "A single tool invocation within an agent step.\n\nAttributes:\n    tool: Tool name.\n    arguments: Arguments passed to the tool.\n    ok: Whether the call succeeded.\n    output: The tool's (possibly truncated) string output.",
      "properties": {
        "tool": {
          "title": "Tool",
          "type": "string"
        },
        "arguments": {
          "additionalProperties": true,
          "title": "Arguments",
          "type": "object"
        },
        "ok": {
          "default": true,
          "title": "Ok",
          "type": "boolean"
        },
        "output": {
          "default": "",
          "title": "Output",
          "type": "string"
        }
      },
      "required": [
        "tool"
      ],
      "title": "ToolCall",
      "type": "object"
    }
  },
  "description": "One step of an agent's reasoning trace.\n\nAttributes:\n    index: Zero-based step number.\n    kind: Step kind (``thought``, ``action``, ``observation``, ``plan``,\n        ``reflection``, ``critique``, ``final``).\n    text: Free-text content for this step (thought/plan/critique/answer).\n    tool_call: The tool call made in this step, if any.",
  "properties": {
    "index": {
      "title": "Index",
      "type": "integer"
    },
    "kind": {
      "title": "Kind",
      "type": "string"
    },
    "text": {
      "default": "",
      "title": "Text",
      "type": "string"
    },
    "tool_call": {
      "anyOf": [
        {
          "$ref": "#/$defs/ToolCall"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "required": [
    "index",
    "kind"
  ],
  "title": "Step",
  "type": "object"
}
