Skip to content

HistoryPage ​

Type: object

FieldRequiredTypeDescription and constraints
event_cursorYesstring
itemsYesarray<MessageItem / ToolItem>
next_cursorYesstring / null

JSON Schema ​

json
{
  "properties": {
    "event_cursor": {
      "title": "Event Cursor",
      "type": "string"
    },
    "items": {
      "items": {
        "discriminator": {
          "mapping": {
            "message": "#/components/schemas/MessageItem",
            "tool_call": "#/components/schemas/ToolItem"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/MessageItem"
          },
          {
            "$ref": "#/components/schemas/ToolItem"
          }
        ]
      },
      "title": "Items",
      "type": "array"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Cursor"
    }
  },
  "required": [
    "items",
    "next_cursor",
    "event_cursor"
  ],
  "title": "HistoryPage",
  "type": "object"
}

All schemas · HTTP API