AgentMessage

A request or response body; the type column links to the schemas it refers to.

AgentMessage

FieldTypeRequiredDescription
idstring (uuid)yes

The message's id.

rolestringyes

one of "user" | "assistant"

contentstringyes

The message's text, tool calls left out.

partsarray of AgentMessagePartyes

An assistant message's text, tool calls and images, in the order the agent made them; a user message's attachments.

errorstring | nullyes

Why the turn that wrote it stopped early.

created_atstring (date-time)yes

When the message was written.

jsonExample
{
  "id": "8d3f2c3e-0c4b-4f8e-9a51-2d8c6f0b1a7e",
  "role": "user",
  "content": "string",
  "parts": [
    {
      "type": "text",
      "text": "string",
      "tool_call_id": "string",
      "tool_name": "mcp__lrs__list_learning_records",
      "input": null,
      "output": null,
      "error": "string",
      "image": {
        "id": "3a7c1e52-9f0b-4c2d-8e61-5b4f0a9d2c18",
        "content_type": "image/png",
        "width": 1280,
        "height": 720,
        "alt": "Bar chart of forklift certifications lapsing each month.",
        "caption": null,
        "url": "string"
      },
      "attachment": {
        "id": "5e0c9a14-7b2d-4c38-9f61-0a3d8e2b7c45",
        "file_name": "forklift-certificate.pdf",
        "content_type": "application/pdf",
        "size_bytes": 482113,
        "width": 0,
        "height": 0,
        "url": "string"
      }
    }
  ],
  "error": "string",
  "created_at": "2026-11-08T12:00:00.000Z"
}