AgentTurnRequest

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

AgentTurnRequest

FieldTypeRequiredDescription
promptstringyes

What the person asks the agent.

1–20000 characters

attachmentsarray of AgentAttachmentInputno

Files to give the agent with the message — images and PDFs, at most five — each uploaded first through `POST /api/agent-sessions/{session_id}/attachment-uploads`. The agent gets every one in its sandbox and is shown the images. A file can be attached once.

at most 5 items

jsonExample
{
  "prompt": "Which of my team's forklift certifications lapse this month?",
  "attachments": [
    {
      "pathname": "string",
      "file_name": "forklift-certificate.pdf"
    }
  ]
}