{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trip2g-com/json-schema/trip2g-com-post-v1-chat-completions-request-schema.json",
  "title": "PostV1ChatCompletionsRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/trip2g-com-openapi-generated.yml#/components/schemas/PostV1ChatCompletionsRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "Program name from the interpreter registry (e.g., python, bash, node)."
    },
    "messages": {
      "type": "array",
      "description": "Array of message objects; the last message must contain fenced code blocks whose content is executed."
    },
    "input": {
      "type": "object",
      "description": "Optional JSON delivery bag passed to the sandbox as $FLEET_INPUT."
    },
    "max_tokens": {
      "type": "integer",
      "description": "Overrides the stdout size cap."
    },
    "timeout_seconds": {
      "type": "integer",
      "description": "Execution timeout in seconds."
    },
    "stream": {
      "type": "boolean",
      "description": "If true, response may be streamed (MVP returns a single chunk)."
    }
  },
  "required": [
    "model",
    "messages"
  ]
}