## GET /v1/sessions/{id}/records

Read everything that happened in a session, oldest first. That is the messages sent to it, the platform events, and the agent output. Filter by message_id for one message. Partial text deltas are live-only.

Required permissions: read:sessions.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.
Grant match patterns can further restrict access to individual resources.

### Response

```text
{
  "earliest_feed_seq": int,
  "has_more": bool,
  "next_cursor": str,
  "records": [ # list[ClaudeSessionRecord | ClaudeNativeSessionRecord |
  # CodexSessionRecord | CodexAppServerSessionRecord | GeminiSessionRecord |
  # SessionClosedRecord | MessageRecord | MessageQueuedRecord |
  # MessageStartedRecord | MessageEndedRecord | MessageRequeuedRecord |
  # EnvironmentPhaseRecord | EnvironmentOutputRecord | EnvironmentReadyRecord |
  # UnknownSessionRecord]
    {
      "cost": int,
      "created_at": str,
      "duration": int,
      "feed_seq": int,
      "id": str,
      "kind": "codex_app_server",
      "message_id": str,
      "model": str,
      "payload": { # CodexThreadStarted | CodexTurnStarted | CodexTurnCompleted
      # | CodexItemStarted | CodexItemCompleted | CodexTokenUsageUpdated |
      # CodexAppServerError
        "method": "thread/started",
        "params": {
          "thread": {
            "cliVersion": str,
            "cwd": str,
            "id": str,
            "modelProvider": str,
            "turns": [
              {
                "error": {
                  "additionalDetails": str,
                  "codexErrorInfo": { # str | null
                    "[str]": any
                  },
                  "message": str,
                  "[str]": any
                },
                "id": str,
                "items": [ # list[CodexUserMessage | CodexAgentMessage |
                # CodexReasoning | CodexPlan | CodexCommandExecution |
                # CodexFileChange | CodexWebSearch | CodexMcpToolCall |
                # CodexContextCompaction | CodexSubAgentActivity |
                # CodexCollabAgentToolCall]
                  {
                    "clientId": str,
                    "content": [ # list[CodexTextInput | CodexLocalImageInput]
                      {
                        "text": str,
                        "text_elements": [
                          {
                            "[str]": any
                          }
                        ],
                        "type": "text",
                        "[str]": any
                      }
                    ],
                    "id": str,
                    "type": "userMessage",
                    "[str]": any
                  }
                ],
                "status": str,
                "[str]": any
              }
            ],
            "[str]": any
          },
          "[str]": any
        },
        "[str]": any
      },
      "record_format": "codex_app_server@1",
      "record_type": str,
      "session_id": str,
      "source": "codex",
      "tokens_info": {
        "cache_creation_input_tokens": int,
        "cache_read_input_tokens": int,
        "cost_usd": float,
        "input_tokens": int,
        "num_turns": int,
        "output_tokens": int
      },
      "tools": [
        str
      ]
    }
  ]
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

for item in client.sessions.records("..."):
    print(item)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

for await (const item of await client.sessions.records('...')) {
  console.log(item);
}
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/sessions/{id}/records" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "earliest_feed_seq": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "has_more": {
      "default": false,
      "type": "boolean"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "records": {
      "items": {
        "anyOf": [
          {
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "feed_seq": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "const": "claude_sdk",
                "default": "claude_sdk",
                "type": "string"
              },
              "message_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "model": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "payload": {
                "oneOf": [
                  {
                    "additionalProperties": true,
                    "properties": {
                      "cache_creation": {
                        "type": "object"
                      },
                      "content": {
                        "type": "array"
                      },
                      "error": {
                        "type": "object"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "message_id": {
                        "type": "object"
                      },
                      "model": {
                        "type": "string"
                      },
                      "parent_tool_use_id": {
                        "type": "object"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "stop_reason": {
                        "type": "object"
                      },
                      "usage": {
                        "type": "object"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "kind",
                      "model"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "content": {
                        "type": "object"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "parent_tool_use_id": {
                        "type": "object"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "content",
                      "kind"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "data": {
                        "type": "object"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "subtype": {
                        "type": "string"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "kind",
                      "subtype"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "api_error_status": {
                        "type": "object"
                      },
                      "cost_usd": {
                        "type": "object"
                      },
                      "duration_api_ms": {
                        "type": "integer"
                      },
                      "duration_ms": {
                        "type": "integer"
                      },
                      "errors": {
                        "type": "object"
                      },
                      "is_error": {
                        "type": "boolean"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "model_usage": {
                        "type": "object"
                      },
                      "num_turns": {
                        "type": "integer"
                      },
                      "result": {
                        "type": "object"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "stop_reason": {
                        "type": "object"
                      },
                      "structured_output": {
                        "type": "object"
                      },
                      "subtype": {
                        "type": "string"
                      },
                      "usage": {
                        "type": "object"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "duration_api_ms",
                      "duration_ms",
                      "is_error",
                      "kind",
                      "num_turns",
                      "subtype"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "kind": {
                        "type": "string"
                      },
                      "rate_limit_type": {
                        "type": "object"
                      },
                      "resets_at": {
                        "type": "object"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "status": {
                        "type": "string"
                      },
                      "utilization": {
                        "type": "object"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "kind",
                      "status"
                    ],
                    "type": "object"
                  }
                ]
              },
              "record_format": {
                "const": "claude_sdk@1",
                "default": "claude_sdk@1",
                "type": "string"
              },
              "record_type": {
                "type": "string"
              },
              "session_id": {
                "type": "string"
              },
              "source": {
                "const": "claude_code",
                "default": "claude_code",
                "type": "string"
              },
              "tokens_info": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "cache_creation_input_tokens": {
                        "type": "integer"
                      },
                      "cache_read_input_tokens": {
                        "type": "integer"
                      },
                      "cost_usd": {
                        "type": "number"
                      },
                      "input_tokens": {
                        "type": "integer"
                      },
                      "num_turns": {
                        "type": "integer"
                      },
                      "output_tokens": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tools": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "session_id",
              "message_id",
              "feed_seq",
              "source",
              "record_type",
              "record_format",
              "payload",
              "tools",
              "tokens_info",
              "cost",
              "duration",
              "model",
              "created_at",
              "kind"
            ],
            "type": "object",
            "x-ellipsis-preserve-payload": true
          },
          {
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "feed_seq": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "const": "claude_code",
                "default": "claude_code",
                "type": "string"
              },
              "message_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "model": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "payload": {
                "oneOf": [
                  {
                    "additionalProperties": true,
                    "properties": {
                      "error": {
                        "type": "object"
                      },
                      "message": {
                        "type": "object"
                      },
                      "parent_tool_use_id": {
                        "type": "object"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "message",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "isReplay": {
                        "type": "object"
                      },
                      "message": {
                        "type": "object"
                      },
                      "parent_tool_use_id": {
                        "type": "object"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "message",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "session_id": {
                        "type": "object"
                      },
                      "subtype": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "subtype",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "duration_api_ms": {
                        "type": "integer"
                      },
                      "duration_ms": {
                        "type": "integer"
                      },
                      "errors": {
                        "type": "object"
                      },
                      "is_error": {
                        "type": "boolean"
                      },
                      "modelUsage": {
                        "type": "object"
                      },
                      "num_turns": {
                        "type": "integer"
                      },
                      "result": {
                        "type": "object"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "stop_reason": {
                        "type": "object"
                      },
                      "structured_output": {
                        "type": "object"
                      },
                      "subtype": {
                        "type": "string"
                      },
                      "total_cost_usd": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      },
                      "usage": {
                        "type": "object"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "duration_api_ms",
                      "duration_ms",
                      "is_error",
                      "num_turns",
                      "subtype",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "rate_limit_info": {
                        "type": "object"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "rate_limit_info",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "new_conversation_id": {
                        "type": "string"
                      },
                      "session_id": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      },
                      "uuid": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "new_conversation_id",
                      "type"
                    ],
                    "type": "object"
                  }
                ]
              },
              "record_format": {
                "const": "claude_jsonl@1",
                "default": "claude_jsonl@1",
                "type": "string"
              },
              "record_type": {
                "type": "string"
              },
              "session_id": {
                "type": "string"
              },
              "source": {
                "const": "claude_code",
                "default": "claude_code",
                "type": "string"
              },
              "tokens_info": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "cache_creation_input_tokens": {
                        "type": "integer"
                      },
                      "cache_read_input_tokens": {
                        "type": "integer"
                      },
                      "cost_usd": {
                        "type": "number"
                      },
                      "input_tokens": {
                        "type": "integer"
                      },
                      "num_turns": {
                        "type": "integer"
                      },
                      "output_tokens": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tools": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "session_id",
              "message_id",
              "feed_seq",
              "source",
              "record_type",
              "record_format",
              "payload",
              "tools",
              "tokens_info",
              "cost",
              "duration",
              "model",
              "created_at",
              "kind"
            ],
            "type": "object",
            "x-ellipsis-preserve-payload": true
          },
          {
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "feed_seq": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "const": "codex",
                "default": "codex",
                "type": "string"
              },
              "message_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "model": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "payload": {
                "oneOf": [
                  {
                    "additionalProperties": true,
                    "properties": {
                      "thread_id": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "usage": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "error": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "message": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "item": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "item",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "item": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "item",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "item": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "item",
                      "type"
                    ],
                    "type": "object"
                  }
                ]
              },
              "record_format": {
                "const": "codex_jsonl@1",
                "default": "codex_jsonl@1",
                "type": "string"
              },
              "record_type": {
                "type": "string"
              },
              "session_id": {
                "type": "string"
              },
              "source": {
                "const": "codex",
                "default": "codex",
                "type": "string"
              },
              "tokens_info": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "cache_creation_input_tokens": {
                        "type": "integer"
                      },
                      "cache_read_input_tokens": {
                        "type": "integer"
                      },
                      "cost_usd": {
                        "type": "number"
                      },
                      "input_tokens": {
                        "type": "integer"
                      },
                      "num_turns": {
                        "type": "integer"
                      },
                      "output_tokens": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tools": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "session_id",
              "message_id",
              "feed_seq",
              "source",
              "record_type",
              "record_format",
              "payload",
              "tools",
              "tokens_info",
              "cost",
              "duration",
              "model",
              "created_at",
              "kind"
            ],
            "type": "object",
            "x-ellipsis-preserve-payload": true
          },
          {
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "feed_seq": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "const": "codex_app_server",
                "default": "codex_app_server",
                "type": "string"
              },
              "message_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "model": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "payload": {
                "oneOf": [
                  {
                    "additionalProperties": true,
                    "properties": {
                      "method": {
                        "type": "string"
                      },
                      "params": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "method",
                      "params"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "method": {
                        "type": "string"
                      },
                      "params": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "method",
                      "params"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "method": {
                        "type": "string"
                      },
                      "params": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "method",
                      "params"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "method": {
                        "type": "string"
                      },
                      "params": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "method",
                      "params"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "method": {
                        "type": "string"
                      },
                      "params": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "method",
                      "params"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "method": {
                        "type": "string"
                      },
                      "params": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "method",
                      "params"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "method": {
                        "type": "string"
                      },
                      "params": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "method",
                      "params"
                    ],
                    "type": "object"
                  }
                ]
              },
              "record_format": {
                "const": "codex_app_server@1",
                "default": "codex_app_server@1",
                "type": "string"
              },
              "record_type": {
                "type": "string"
              },
              "session_id": {
                "type": "string"
              },
              "source": {
                "const": "codex",
                "default": "codex",
                "type": "string"
              },
              "tokens_info": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "cache_creation_input_tokens": {
                        "type": "integer"
                      },
                      "cache_read_input_tokens": {
                        "type": "integer"
                      },
                      "cost_usd": {
                        "type": "number"
                      },
                      "input_tokens": {
                        "type": "integer"
                      },
                      "num_turns": {
                        "type": "integer"
                      },
                      "output_tokens": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tools": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "session_id",
              "message_id",
              "feed_seq",
              "source",
              "record_type",
              "record_format",
              "payload",
              "tools",
              "tokens_info",
              "cost",
              "duration",
              "model",
              "created_at",
              "kind"
            ],
            "type": "object",
            "x-ellipsis-preserve-payload": true
          },
          {
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "feed_seq": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "const": "gemini",
                "default": "gemini",
                "type": "string"
              },
              "message_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "model": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "payload": {
                "oneOf": [
                  {
                    "additionalProperties": true,
                    "properties": {
                      "model": {
                        "type": "string"
                      },
                      "session_id": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "model",
                      "session_id",
                      "timestamp",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "content": {
                        "type": "string"
                      },
                      "delta": {
                        "type": "object"
                      },
                      "role": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "content",
                      "role",
                      "timestamp",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "parameters": {
                        "type": "object"
                      },
                      "timestamp": {
                        "type": "string"
                      },
                      "tool_id": {
                        "type": "string"
                      },
                      "tool_name": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "timestamp",
                      "tool_id",
                      "tool_name",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "error": {
                        "type": "object"
                      },
                      "output": {
                        "type": "object"
                      },
                      "status": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "string"
                      },
                      "tool_id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "status",
                      "timestamp",
                      "tool_id",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "message": {
                        "type": "string"
                      },
                      "severity": {
                        "type": "object"
                      },
                      "timestamp": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "message",
                      "timestamp",
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": true,
                    "properties": {
                      "error": {
                        "type": "object"
                      },
                      "stats": {
                        "type": "object"
                      },
                      "status": {
                        "type": "string"
                      },
                      "timestamp": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "status",
                      "timestamp",
                      "type"
                    ],
                    "type": "object"
                  }
                ]
              },
              "record_format": {
                "const": "gemini_stream_json@1",
                "default": "gemini_stream_json@1",
                "type": "string"
              },
              "record_type": {
                "type": "string"
              },
              "session_id": {
                "type": "string"
              },
              "source": {
                "const": "gemini",
                "default": "gemini",
                "type": "string"
              },
              "tokens_info": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "cache_creation_input_tokens": {
                        "type": "integer"
                      },
                      "cache_read_input_tokens": {
                        "type": "integer"
                      },
                      "cost_usd": {
                        "type": "number"
                      },
                      "input_tokens": {
                        "type": "integer"
                      },
                      "num_turns": {
                        "type": "integer"
                      },
                      "output_tokens": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tools": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "session_id",
              "message_id",
              "feed_seq",
              "source",
              "record_type",
              "record_format",
              "payload",
              "tools",
              "tokens_info",
              "cost",
              "duration",
              "model",
              "created_at",
              "kind"
            ],
            "type": "object",
            "x-ellipsis-preserve-payload": true
          },
          {
            "oneOf": [
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "additionalProperties": true,
                    "properties": {},
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "session_closed",
                    "default": "session_closed",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              },
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "properties": {
                      "author": {
                        "type": "object"
                      },
                      "body": {
                        "type": "string"
                      },
                      "created_at": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "images": {
                        "type": "array"
                      },
                      "index": {
                        "type": "integer"
                      },
                      "session_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "session_id",
                      "index",
                      "body",
                      "created_at"
                    ],
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "message",
                    "default": "message",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              },
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "additionalProperties": true,
                    "properties": {
                      "limit": {
                        "type": "integer"
                      },
                      "message_id": {
                        "type": "string"
                      },
                      "sessions_alive": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "message_id",
                      "sessions_alive",
                      "limit"
                    ],
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "message_queued",
                    "default": "message_queued",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              },
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "additionalProperties": true,
                    "properties": {
                      "message_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "message_id"
                    ],
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "message_started",
                    "default": "message_started",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              },
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "additionalProperties": true,
                    "properties": {
                      "cost": {
                        "type": "object"
                      },
                      "duration_ms": {
                        "type": "object"
                      },
                      "error": {
                        "type": "object"
                      },
                      "message_id": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "tokens": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "message_id",
                      "status"
                    ],
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "message_ended",
                    "default": "message_ended",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              },
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "additionalProperties": true,
                    "properties": {
                      "message_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "message_id"
                    ],
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "message_requeued",
                    "default": "message_requeued",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              },
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "additionalProperties": true,
                    "properties": {
                      "detail": {
                        "type": "object"
                      },
                      "duration_ms": {
                        "type": "object"
                      },
                      "phase": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "step": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "phase",
                      "status"
                    ],
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "environment_phase",
                    "default": "environment_phase",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              },
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "additionalProperties": true,
                    "properties": {
                      "chunk": {
                        "type": "integer"
                      },
                      "lines": {
                        "type": "array"
                      },
                      "phase": {
                        "type": "string"
                      },
                      "step": {
                        "type": "object"
                      },
                      "stream": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "phase",
                      "chunk",
                      "lines"
                    ],
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "environment_output",
                    "default": "environment_output",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              },
              {
                "properties": {
                  "cost": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "duration": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "feed_seq": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "const": "platform",
                    "default": "platform",
                    "type": "string"
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "payload": {
                    "additionalProperties": true,
                    "properties": {
                      "duration_ms": {
                        "type": "object"
                      },
                      "repositories": {
                        "type": "array"
                      }
                    },
                    "required": [
                      "repositories"
                    ],
                    "type": "object"
                  },
                  "record_format": {
                    "const": "ellipsis_lifecycle@1",
                    "default": "ellipsis_lifecycle@1",
                    "type": "string"
                  },
                  "record_type": {
                    "const": "environment_ready",
                    "default": "environment_ready",
                    "type": "string"
                  },
                  "session_id": {
                    "type": "string"
                  },
                  "source": {
                    "const": "lifecycle",
                    "default": "lifecycle",
                    "type": "string"
                  },
                  "tokens_info": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "session_id",
                  "message_id",
                  "feed_seq",
                  "source",
                  "record_type",
                  "record_format",
                  "payload",
                  "tools",
                  "tokens_info",
                  "cost",
                  "duration",
                  "model",
                  "created_at",
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-preserve-payload": true
              }
            ]
          },
          {
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "feed_seq": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "const": "unknown",
                "default": "unknown",
                "type": "string"
              },
              "message_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "model": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "payload": {
                "additionalProperties": true,
                "type": "object"
              },
              "record_format": {
                "type": "string"
              },
              "record_type": {
                "type": "string"
              },
              "session_id": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "tokens_info": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "cache_creation_input_tokens": {
                        "type": "integer"
                      },
                      "cache_read_input_tokens": {
                        "type": "integer"
                      },
                      "cost_usd": {
                        "type": "number"
                      },
                      "input_tokens": {
                        "type": "integer"
                      },
                      "num_turns": {
                        "type": "integer"
                      },
                      "output_tokens": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tools": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "session_id",
              "message_id",
              "feed_seq",
              "source",
              "record_type",
              "record_format",
              "payload",
              "tools",
              "tokens_info",
              "cost",
              "duration",
              "model",
              "created_at",
              "kind"
            ],
            "type": "object",
            "x-ellipsis-preserve-payload": true
          }
        ]
      },
      "type": "array"
    }
  },
  "required": [
    "records"
  ],
  "type": "object"
}
```
