[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openrouter-open-responses":3,"mdc-5jasr9-key":33,"related-org-openrouter-open-responses":6350,"related-repo-openrouter-open-responses":6486},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":31,"mdContent":32},"open-responses","implement Open Responses-compliant APIs","This skill should be used when implementing, consuming, or debugging an Open Responses-compliant API — the open standard for multi-provider LLM interoperability. Covers protocol, items, state machines, streaming events, tools, the agentic loop pattern, and extensions. Triggers on: Open Responses, open-responses, \u002Fv1\u002Fresponses endpoint, multi-provider LLM API, Open Responses compliance.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"openrouter","OpenRouter","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenrouter.png","OpenRouterTeam",[13,17,20],{"name":14,"slug":15,"type":16},"LLM","llm","tag",{"name":18,"slug":19,"type":16},"Interoperability","interoperability",{"name":21,"slug":22,"type":16},"API Development","api-development",187,"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills","2026-07-14T05:38:13.153467",null,26,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":26},[],"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills\u002Ftree\u002FHEAD\u002Fopen-responses","---\nname: open-responses\ndescription: \"This skill should be used when implementing, consuming, or debugging an Open Responses-compliant API — the open standard for multi-provider LLM interoperability. Covers protocol, items, state machines, streaming events, tools, the agentic loop pattern, and extensions. Triggers on: Open Responses, open-responses, \u002Fv1\u002Fresponses endpoint, multi-provider LLM API, Open Responses compliance.\"\nversion: 1.0.0\n---\n\n# Open Responses\n\nOpen Responses is an open-source specification defining a unified HTTP protocol for multi-provider LLM interactions. It standardizes how clients and servers communicate — messages, tool calls, streaming, multimodal inputs, reasoning — so that code written against one provider works with any compliant provider.\n\n> **This is the protocol standard itself, not any specific SDK.** Open Responses is provider-agnostic. Any LLM provider (OpenAI, Anthropic, Gemini, Databricks, Hugging Face, Ollama, etc.) can implement a compliant API.\n\n> **Stateless by default, stateful where needed.** The core protocol does not require server-side session persistence. Multi-turn conversations can be threaded via `previous_response_id`, which instructs the server to reconstruct context from prior responses. However, providers may offer stateful features (e.g., server-side storage, conversation objects) as extensions. The spec notes that item states \"do not necessarily mean they are stateful in the sense of being persisted to disk or stored long-term.\"\n\n### Design Principles\n\n- **Multi-provider compatibility** — one schema, any provider\n- **Stateless-first protocol** — context reconstruction via `previous_response_id`; providers may optionally offer persistence\n- **Polymorphic items** — all model outputs share a common item structure discriminated by `type`\n- **Semantic streaming** — SSE events map directly to state machine transitions\n- **Extensible without fragmentation** — vendor-prefixed extensions prevent namespace collisions\n\n**Specification:** https:\u002F\u002Fwww.openresponses.org\u002Fspecification\n\n---\n\n## Reference Files\n\nFor detailed schemas, JSON examples, and complete event catalogs, load the appropriate reference file:\n\n| File | Contents | When to Load |\n|------|----------|-------------|\n| `references\u002Fprotocol-and-items.md` | HTTP protocol, item types, content types, control parameters, error handling | Implementing or debugging request\u002Fresponse structure |\n| `references\u002Fstate-machines-and-streaming.md` | State machine diagrams, streaming event catalog, complete SSE sequences for text and tool use | Implementing or debugging streaming, state transitions |\n| `references\u002Fextensions.md` | Custom items, custom events, schema extensions, governance path | Extending the spec with provider-specific features |\n\nTo search references for specific topics: grep for `function_call`, `streaming`, `tool_choice`, `previous_response_id`, `vendor:`, or other keywords.\n\n---\n\n## Core Concepts\n\n### Endpoint and Transport\n\nAll requests go to `POST \u002Fv1\u002Fresponses` with `Authorization: Bearer \u003Ctoken>` and `Content-Type: application\u002Fjson`. Non-streaming responses return JSON. Streaming responses use SSE (`text\u002Fevent-stream`) terminated by `data: [DONE]`.\n\n### Items\n\nItems are polymorphic atomic units discriminated by `type`. **Output items** (those emitted by the model in a response) must include `id`, `type`, and `status` fields. Core output types: `message`, `function_call`, `reasoning`. Providers extend with vendor-prefixed types (e.g., `acme:web_search_call`).\n\n**Input items** (those sent by the client in a request) have different requirements per type. Content types like `input_text`, `input_image`, and `input_file` do not carry `id` or `status`. `function_call_output` items require `call_id` and `output` but treat `id` and `status` as optional.\n\n**Message roles:** `user`, `assistant`, `system`, `developer`. The `system` role is distinct from the `instructions` parameter — it is an inline message item in the input array. The `developer` role is a separate role that providers may handle differently from `system`.\n\n### State Machines and Event Emission\n\nThe response and item lifecycles are both finite state machines. Each state constrains which events can be emitted.\n\n#### Response Lifecycle — Events Emitted Per State\n\n```mermaid\nstateDiagram-v2\n    [*] --> created : response.created\n    created --> queued : response.queued\n    queued --> in_progress : response.in_progress\n\n    state in_progress {\n        direction LR\n        note right of in_progress\n            Events emittable while in_progress:\n            ─────────────────────────────────\n            response.output_item.added\n            response.content_part.added\n            response.output_text.delta\n            response.output_text.done\n            response.function_call_arguments.delta\n            response.function_call_arguments.done\n            response.reasoning_summary_text.delta\n            response.reasoning_summary_text.done\n            response.content_part.done\n            response.output_item.done\n            vendor:custom_event\n\n            All delta events carry: sequence_number,\n            output_index, item_id\n            Content-level events also carry: content_index\n        end note\n    }\n\n    in_progress --> completed : response.completed\n    in_progress --> incomplete : response.incomplete\\n(item hit token budget)\n    in_progress --> failed : response.failed\n    completed --> [*]\n    incomplete --> [*]\n    failed --> [*]\n```\n\n> **Note:** If any item ends in `incomplete` status, the containing response MUST also be `incomplete`.\n\n#### Item Lifecycle — Events Emitted Per State\n\n```mermaid\nstateDiagram-v2\n    [*] --> in_progress : response.output_item.added\n\n    state in_progress {\n        direction LR\n        note right of in_progress\n            Events emittable while item is in_progress:\n            ──────────────────────────────────────────\n            Message items:\n              response.content_part.added\n              response.output_text.delta  (repeated)\n              response.output_text.done\n              response.content_part.done\n\n            Function call items:\n              response.function_call_arguments.delta  (repeated)\n              response.function_call_arguments.done\n\n            Reasoning items:\n              response.reasoning_summary_text.delta  (repeated)\n              response.reasoning_summary_text.done\n        end note\n    }\n\n    in_progress --> completed : response.output_item.done\n    in_progress --> incomplete : response.output_item.done\n    completed --> [*]\n    incomplete --> [*]\n\n    note right of completed : Terminal — no further deltas\n    note right of incomplete : Terminal — token budget exhausted\n```\n\n#### Event Validity Summary\n\n| Response State | Valid Events |\n|---------------|-------------|\n| `created` | *(transient — response object just created)* |\n| `queued` | *(waiting for model availability)* |\n| `in_progress` | All delta events, all custom events, item lifecycle events |\n| `completed` | *(terminal — no more events except `[DONE]`)* |\n| `incomplete` | *(terminal — no more events except `[DONE]`)* |\n| `failed` | *(terminal — no more events except `[DONE]`)* |\n\n| Item State | Valid Events |\n|-----------|-------------|\n| `in_progress` | Content deltas (`.delta`), content completion (`.done`), part lifecycle |\n| `completed` | *(terminal — no further deltas for this item)* |\n| `incomplete` | *(terminal — no further deltas for this item)* |\n\nAll delta and item events carry `sequence_number` (monotonically increasing), `output_index` (position in response output array), and `item_id`. Content-level events (text, reasoning summary) additionally carry `content_index` (position within a content part). Servers SHOULD NOT use the SSE `id` field.\n\n### Streaming Events\n\nTwo categories of SSE events:\n\n- **Delta events** — incremental content: `response.output_text.delta`, `response.function_call_arguments.delta`, `response.output_item.added`, `response.output_item.done`, etc.\n- **Lifecycle events** — state transitions: `response.created`, `response.queued`, `response.in_progress`, `response.completed`, `response.incomplete`, `response.failed`\n\nRule: the `event` SSE header must match the `type` field inside the JSON body.\n\n---\n\n## Tools\n\nOpen Responses defines two tool categories based on execution location.\n\n**Externally-hosted tools** — implementation lives outside the provider's system. The model requests invocation via `function_call` items, and the developer must supply results as `function_call_output` items in a follow-up request. Note that \"externally hosted\" does not always mean the developer executes the tool locally — MCP tools are externally hosted (the implementation lives on external servers), but control is not necessarily yielded back to the developer first. Examples: function tools, MCP server tools.\n\n**Internally-hosted tools** — implementation lives inside the provider's system. The provider executes without yielding control and returns results as provider-specific item types within the same response. These items must be losslessly round-trippable in follow-up requests. Examples: file search, code interpreter, web search.\n\n### Tool Definition\n\n```json\n{\n  \"type\": \"function\",\n  \"name\": \"get_weather\",\n  \"description\": \"Get current weather for a location\",\n  \"parameters\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"location\": {\"type\": \"string\", \"description\": \"City name\"},\n      \"units\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}\n    },\n    \"required\": [\"location\"]\n  }\n}\n```\n\n### Tool Control\n\nThe `tool_choice` parameter controls whether and how the model uses tools:\n\n| `tool_choice` value | Purpose |\n|-----------|---------|\n| `\"auto\"` | Model decides whether to call tools (default) |\n| `\"required\"` | Model must invoke at least one tool |\n| `\"none\"` | No tool calls permitted |\n| `{\"type\": \"function\", \"name\": \"...\"}` | Force a specific tool |\n| `{\"type\": \"allowed_tools\", \"tools\": [...]}` | Restrict which tools the model may invoke |\n\nThe `allowed_tools` form is nested inside `tool_choice`, not a separate top-level parameter:\n\n```json\n{\n  \"tool_choice\": {\n    \"type\": \"allowed_tools\",\n    \"tools\": [\n      {\"type\": \"function\", \"name\": \"get_weather\"}\n    ]\n  }\n}\n```\n\nThe model MUST restrict its tool calls to the subset named in `allowed_tools`. Servers MUST enforce this as a hard constraint. Tool definitions remain in the model's context, preserving prompt cache.\n\n---\n\n## Agentic Loop Pattern\n\nThe agentic loop is the core pattern for multi-step, tool-augmented workflows.\n\n### Flow\n\n```\n  Client                     Provider                    Model\n    |                           |                          |\n    |-- POST \u002Fv1\u002Fresponses ---->|                          |\n    |                           |--- prompt to model ----->|\n    |                           |\u003C-- output items ---------|\n    |                           |                          |\n    |            [external tool calls needing               |\n    |             client-supplied results?]                 |\n    |                           |                          |\n    |              YES                                     |\n    |\u003C-- response with --------|                          |\n    |   function_call items     |                          |\n    |                           |                          |\n    |   [client satisfies       |                          |\n    |    tool calls]            |                          |\n    |                           |                          |\n    |-- POST \u002Fv1\u002Fresponses ---->|                          |\n    |   previous_response_id +  |                          |\n    |   function_call_output    |--- prompt + context ---->|\n    |   items in input          |\u003C-- output items ---------|\n    |                           |                          |\n    |              NO: no client-satisfied calls remain     |\n    |\u003C-- completed response ----|                          |\n    |   (may contain message,   |                          |\n    |    reasoning, hosted-tool |                          |\n    |    items, etc.)           |                          |\n```\n\n### Key Principles\n\n1. **Stateless-first iteration** — Each loop iteration is a new HTTP request. The server reconstructs context from `previous_response_id`. Providers may optionally persist state, but the protocol does not require it.\n\n2. **Developer controls external tool execution** — For externally-hosted function tools, the developer decides when to execute, what results to return, and whether to continue. For MCP tools (also externally hosted), execution may happen without first yielding control to the developer.\n\n3. **Parallel tool calls** — The model may emit multiple `function_call` items in a single response. Execute all of them and return all results in one follow-up request.\n\n4. **Loop termination** — The loop ends when no client-satisfied external tool calls remain in the response. The final response may contain not just `message` items but also `reasoning` items, internally-hosted tool items, and other non-message output items.\n\n5. **Provider handles internal tools** — For internally-hosted tools, the provider executes within the same request and returns provider-specific item types. No developer loop required.\n\n### Example: Multi-Tool Agent\n\n**Turn 1 — Request with tools:**\n\n```json\n{\n  \"model\": \"provider\u002Fmodel-name\",\n  \"input\": [{\"type\": \"message\", \"role\": \"user\", \"content\": \"Compare the weather in Paris and Tokyo.\"}],\n  \"tools\": [{\"type\": \"function\", \"name\": \"get_weather\", \"description\": \"Get current weather for a city\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\"}}, \"required\": [\"location\"]}}]\n}\n```\n\n**Turn 1 — Model emits two parallel function_call items:**\n\n```json\n{\n  \"id\": \"resp_100\",\n  \"status\": \"completed\",\n  \"output\": [\n    {\"id\": \"item_101\", \"type\": \"function_call\", \"name\": \"get_weather\", \"call_id\": \"call_paris\", \"arguments\": \"{\\\"location\\\":\\\"Paris\\\"}\", \"status\": \"completed\"},\n    {\"id\": \"item_102\", \"type\": \"function_call\", \"name\": \"get_weather\", \"call_id\": \"call_tokyo\", \"arguments\": \"{\\\"location\\\":\\\"Tokyo\\\"}\", \"status\": \"completed\"}\n  ]\n}\n```\n\n**Turn 2 — Developer returns tool results:**\n\n```json\n{\n  \"model\": \"provider\u002Fmodel-name\",\n  \"previous_response_id\": \"resp_100\",\n  \"input\": [\n    {\"type\": \"function_call_output\", \"call_id\": \"call_paris\", \"output\": \"{\\\"temperature\\\":18,\\\"condition\\\":\\\"partly cloudy\\\"}\"},\n    {\"type\": \"function_call_output\", \"call_id\": \"call_tokyo\", \"output\": \"{\\\"temperature\\\":24,\\\"condition\\\":\\\"sunny\\\"}\"}\n  ],\n  \"tools\": [...]\n}\n```\n\n**Turn 2 — Model synthesizes final answer (no function_call items = loop ends):**\n\n```json\n{\n  \"id\": \"resp_101\",\n  \"status\": \"completed\",\n  \"output\": [\n    {\"id\": \"item_200\", \"type\": \"message\", \"role\": \"assistant\", \"status\": \"completed\", \"content\": [{\"type\": \"output_text\", \"text\": \"Paris is currently 18°C and partly cloudy. Tokyo is warmer at 24°C with sunny skies.\"}]}\n  ]\n}\n```\n\n### Multi-Turn Conversations\n\nMulti-turn conversations use `previous_response_id` to chain context. The server reconstructs the full conversation by walking the response chain (providers may also support server-side persistence as an extension):\n\n```\nServer loads: previous_response.input + previous_response.output + new_input\n```\n\n```json\n\u002F\u002F Turn 1\n{\"model\": \"provider\u002Fmodel-name\", \"input\": [{\"type\": \"message\", \"role\": \"user\", \"content\": \"What is the population of France?\"}]}\n\u002F\u002F Response: {\"id\": \"resp_200\", ...}\n\n\u002F\u002F Turn 2 — references Turn 1\n{\"model\": \"provider\u002Fmodel-name\", \"previous_response_id\": \"resp_200\", \"input\": [{\"type\": \"message\", \"role\": \"user\", \"content\": \"And what about Germany?\"}]}\n```\n\n---\n\n## Extensions\n\nOpen Responses supports four extension mechanisms, all using vendor-prefixed names to prevent collisions. For full details with examples, load `references\u002Fextensions.md`.\n\n| Mechanism | Naming Pattern | Required Fields | Constraint |\n|-----------|---------------|-----------------|------------|\n| Custom Items | `vendor:type_name` | `id`, `type`, `status` | Must follow item state machine, must round-trip |\n| Custom Events | `vendor:event_name` | `type`, `sequence_number` | Must not alter core semantics or token order |\n| Schema Extensions | vendor-prefixed fields | N\u002FA (optional fields) | Must not break clients ignoring unknown fields |\n| Governance Path | N\u002FA | N\u002FA | Broad adoption -> TSC proposal -> core spec |\n\nClients must silently ignore unknown item types and event types — this is the forward-compatibility contract.\n\n---\n\n## Compliance\n\nAn API is Open Responses-compliant if it implements the spec directly or is a proper superset. The published acceptance test suite is available at https:\u002F\u002Fwww.openresponses.org\u002F.\n\n### Core Compliance Tests\n\n| Test | Validates |\n|------|-----------|\n| Basic Text Response | ResponseResource schema, item structure, usage |\n| Streaming Response | SSE events, correct ordering, final structure |\n| System Prompt | `instructions` parameter, system role handling |\n| Tool Calling | Function tool definition, function_call output, round-tripping |\n| Image Input | Image URL in user content |\n| Multi-turn Conversation | Message history, assistant + user turns |\n\n### Server Implementation Checklist\n\n- [ ] `POST \u002Fv1\u002Fresponses` endpoint with `Authorization` header\n- [ ] Valid output items with `id`, `type`, `status`; input items per their type requirements\n- [ ] Item state machine: `in_progress` -> `completed` \u002F `incomplete`\n- [ ] Response state machine: `created` -> `queued` -> `in_progress` -> `completed` \u002F `incomplete` \u002F `failed`\n- [ ] Emit all 6 lifecycle events: `response.created`, `.queued`, `.in_progress`, `.completed`, `.incomplete`, `.failed`\n- [ ] Response `incomplete` when any item ends `incomplete`\n- [ ] Non-streaming JSON and streaming SSE with `event`\u002F`type` matching\n- [ ] `data: [DONE]` terminal marker\n- [ ] Function tools: `function_call` items, `function_call_output` round-tripping\n- [ ] `previous_response_id` for conversation continuation\n- [ ] Error objects: `type`, `code`, `param`, `message` with correct HTTP status codes\n- [ ] Vendor-prefixed extensions (if applicable)\n\n### Client Implementation Checklist\n\n- [ ] Send `Authorization` and `Content-Type` headers\n- [ ] Parse polymorphic items by `type` field\n- [ ] Track item and response state machines\n- [ ] Process SSE: parse `event:` + `data:` lines, handle `[DONE]`\n- [ ] Implement agentic loop for externally-hosted tools\n- [ ] Silently ignore unknown item types and event types\n- [ ] Support `previous_response_id` for multi-turn conversations\n- [ ] Handle parallel tool calls in a single response\n\n---\n\n## Quick Reference\n\n### Streaming Event Types\n\n| Event | Category |\n|-------|----------|\n| `response.created` | Lifecycle |\n| `response.queued` | Lifecycle |\n| `response.in_progress` | Lifecycle |\n| `response.completed` | Lifecycle |\n| `response.incomplete` | Lifecycle |\n| `response.failed` | Lifecycle |\n| `response.output_item.added` \u002F `.done` | Delta |\n| `response.content_part.added` \u002F `.done` | Delta |\n| `response.output_text.delta` \u002F `.done` | Delta |\n| `response.function_call_arguments.delta` \u002F `.done` | Delta |\n| `response.reasoning_summary_text.delta` \u002F `.done` | Delta |\n| `vendor:custom_event` | Custom |\n\n### Item Types\n\n| Type | Category |\n|------|----------|\n| `message` | Core |\n| `function_call` | Core |\n| `function_call_output` | Core |\n| `reasoning` | Core |\n| `vendor:custom_type` | Extension |\n\n### State Summary\n\n| Object | States | Terminal |\n|--------|--------|---------|\n| Response | created -> queued -> in_progress -> completed \u002F incomplete \u002F failed | completed, incomplete, failed |\n| Item | in_progress -> completed \u002F incomplete | completed, incomplete |\n\nIf any item ends `incomplete`, the containing response MUST also be `incomplete`.\n\n### Error Types\n\n| Type | HTTP | Retry |\n|------|------|-------|\n| `invalid_request` | 400 | No |\n| `not_found` | 404 | No |\n| `too_many_requests` | 429 | Yes |\n| `server_error` | 500 | Yes |\n| `model_error` | 500 | Maybe |\n",{"data":34,"body":36},{"name":4,"description":6,"version":35},"1.0.0",{"type":37,"children":38},"root",[39,47,53,68,90,97,165,183,187,194,199,298,339,342,348,354,399,405,475,556,622,628,633,640,957,984,990,1232,1238,1395,1485,1529,1535,1540,1633,1653,1656,1662,1667,1691,1701,1707,2203,2209,2221,2333,2352,2542,2554,2557,2563,2568,2574,2584,2590,2672,2678,2686,3152,3160,3757,3765,4227,4235,4580,4586,4598,4607,4991,4994,5000,5011,5166,5171,5174,5180,5192,5198,5303,5309,5629,5635,5760,5763,5769,5775,6013,6019,6118,6124,6187,6205,6211,6344],{"type":40,"tag":41,"props":42,"children":43},"element","h1",{"id":4},[44],{"type":45,"value":46},"text","Open Responses",{"type":40,"tag":48,"props":49,"children":50},"p",{},[51],{"type":45,"value":52},"Open Responses is an open-source specification defining a unified HTTP protocol for multi-provider LLM interactions. It standardizes how clients and servers communicate — messages, tool calls, streaming, multimodal inputs, reasoning — so that code written against one provider works with any compliant provider.",{"type":40,"tag":54,"props":55,"children":56},"blockquote",{},[57],{"type":40,"tag":48,"props":58,"children":59},{},[60,66],{"type":40,"tag":61,"props":62,"children":63},"strong",{},[64],{"type":45,"value":65},"This is the protocol standard itself, not any specific SDK.",{"type":45,"value":67}," Open Responses is provider-agnostic. Any LLM provider (OpenAI, Anthropic, Gemini, Databricks, Hugging Face, Ollama, etc.) can implement a compliant API.",{"type":40,"tag":54,"props":69,"children":70},{},[71],{"type":40,"tag":48,"props":72,"children":73},{},[74,79,81,88],{"type":40,"tag":61,"props":75,"children":76},{},[77],{"type":45,"value":78},"Stateless by default, stateful where needed.",{"type":45,"value":80}," The core protocol does not require server-side session persistence. Multi-turn conversations can be threaded via ",{"type":40,"tag":82,"props":83,"children":85},"code",{"className":84},[],[86],{"type":45,"value":87},"previous_response_id",{"type":45,"value":89},", which instructs the server to reconstruct context from prior responses. However, providers may offer stateful features (e.g., server-side storage, conversation objects) as extensions. The spec notes that item states \"do not necessarily mean they are stateful in the sense of being persisted to disk or stored long-term.\"",{"type":40,"tag":91,"props":92,"children":94},"h3",{"id":93},"design-principles",[95],{"type":45,"value":96},"Design Principles",{"type":40,"tag":98,"props":99,"children":100},"ul",{},[101,112,129,145,155],{"type":40,"tag":102,"props":103,"children":104},"li",{},[105,110],{"type":40,"tag":61,"props":106,"children":107},{},[108],{"type":45,"value":109},"Multi-provider compatibility",{"type":45,"value":111}," — one schema, any provider",{"type":40,"tag":102,"props":113,"children":114},{},[115,120,122,127],{"type":40,"tag":61,"props":116,"children":117},{},[118],{"type":45,"value":119},"Stateless-first protocol",{"type":45,"value":121}," — context reconstruction via ",{"type":40,"tag":82,"props":123,"children":125},{"className":124},[],[126],{"type":45,"value":87},{"type":45,"value":128},"; providers may optionally offer persistence",{"type":40,"tag":102,"props":130,"children":131},{},[132,137,139],{"type":40,"tag":61,"props":133,"children":134},{},[135],{"type":45,"value":136},"Polymorphic items",{"type":45,"value":138}," — all model outputs share a common item structure discriminated by ",{"type":40,"tag":82,"props":140,"children":142},{"className":141},[],[143],{"type":45,"value":144},"type",{"type":40,"tag":102,"props":146,"children":147},{},[148,153],{"type":40,"tag":61,"props":149,"children":150},{},[151],{"type":45,"value":152},"Semantic streaming",{"type":45,"value":154}," — SSE events map directly to state machine transitions",{"type":40,"tag":102,"props":156,"children":157},{},[158,163],{"type":40,"tag":61,"props":159,"children":160},{},[161],{"type":45,"value":162},"Extensible without fragmentation",{"type":45,"value":164}," — vendor-prefixed extensions prevent namespace collisions",{"type":40,"tag":48,"props":166,"children":167},{},[168,173,175],{"type":40,"tag":61,"props":169,"children":170},{},[171],{"type":45,"value":172},"Specification:",{"type":45,"value":174}," ",{"type":40,"tag":176,"props":177,"children":181},"a",{"href":178,"rel":179},"https:\u002F\u002Fwww.openresponses.org\u002Fspecification",[180],"nofollow",[182],{"type":45,"value":178},{"type":40,"tag":184,"props":185,"children":186},"hr",{},[],{"type":40,"tag":188,"props":189,"children":191},"h2",{"id":190},"reference-files",[192],{"type":45,"value":193},"Reference Files",{"type":40,"tag":48,"props":195,"children":196},{},[197],{"type":45,"value":198},"For detailed schemas, JSON examples, and complete event catalogs, load the appropriate reference file:",{"type":40,"tag":200,"props":201,"children":202},"table",{},[203,227],{"type":40,"tag":204,"props":205,"children":206},"thead",{},[207],{"type":40,"tag":208,"props":209,"children":210},"tr",{},[211,217,222],{"type":40,"tag":212,"props":213,"children":214},"th",{},[215],{"type":45,"value":216},"File",{"type":40,"tag":212,"props":218,"children":219},{},[220],{"type":45,"value":221},"Contents",{"type":40,"tag":212,"props":223,"children":224},{},[225],{"type":45,"value":226},"When to Load",{"type":40,"tag":228,"props":229,"children":230},"tbody",{},[231,254,276],{"type":40,"tag":208,"props":232,"children":233},{},[234,244,249],{"type":40,"tag":235,"props":236,"children":237},"td",{},[238],{"type":40,"tag":82,"props":239,"children":241},{"className":240},[],[242],{"type":45,"value":243},"references\u002Fprotocol-and-items.md",{"type":40,"tag":235,"props":245,"children":246},{},[247],{"type":45,"value":248},"HTTP protocol, item types, content types, control parameters, error handling",{"type":40,"tag":235,"props":250,"children":251},{},[252],{"type":45,"value":253},"Implementing or debugging request\u002Fresponse structure",{"type":40,"tag":208,"props":255,"children":256},{},[257,266,271],{"type":40,"tag":235,"props":258,"children":259},{},[260],{"type":40,"tag":82,"props":261,"children":263},{"className":262},[],[264],{"type":45,"value":265},"references\u002Fstate-machines-and-streaming.md",{"type":40,"tag":235,"props":267,"children":268},{},[269],{"type":45,"value":270},"State machine diagrams, streaming event catalog, complete SSE sequences for text and tool use",{"type":40,"tag":235,"props":272,"children":273},{},[274],{"type":45,"value":275},"Implementing or debugging streaming, state transitions",{"type":40,"tag":208,"props":277,"children":278},{},[279,288,293],{"type":40,"tag":235,"props":280,"children":281},{},[282],{"type":40,"tag":82,"props":283,"children":285},{"className":284},[],[286],{"type":45,"value":287},"references\u002Fextensions.md",{"type":40,"tag":235,"props":289,"children":290},{},[291],{"type":45,"value":292},"Custom items, custom events, schema extensions, governance path",{"type":40,"tag":235,"props":294,"children":295},{},[296],{"type":45,"value":297},"Extending the spec with provider-specific features",{"type":40,"tag":48,"props":299,"children":300},{},[301,303,309,311,317,318,324,325,330,331,337],{"type":45,"value":302},"To search references for specific topics: grep for ",{"type":40,"tag":82,"props":304,"children":306},{"className":305},[],[307],{"type":45,"value":308},"function_call",{"type":45,"value":310},", ",{"type":40,"tag":82,"props":312,"children":314},{"className":313},[],[315],{"type":45,"value":316},"streaming",{"type":45,"value":310},{"type":40,"tag":82,"props":319,"children":321},{"className":320},[],[322],{"type":45,"value":323},"tool_choice",{"type":45,"value":310},{"type":40,"tag":82,"props":326,"children":328},{"className":327},[],[329],{"type":45,"value":87},{"type":45,"value":310},{"type":40,"tag":82,"props":332,"children":334},{"className":333},[],[335],{"type":45,"value":336},"vendor:",{"type":45,"value":338},", or other keywords.",{"type":40,"tag":184,"props":340,"children":341},{},[],{"type":40,"tag":188,"props":343,"children":345},{"id":344},"core-concepts",[346],{"type":45,"value":347},"Core Concepts",{"type":40,"tag":91,"props":349,"children":351},{"id":350},"endpoint-and-transport",[352],{"type":45,"value":353},"Endpoint and Transport",{"type":40,"tag":48,"props":355,"children":356},{},[357,359,365,367,373,375,381,383,389,391,397],{"type":45,"value":358},"All requests go to ",{"type":40,"tag":82,"props":360,"children":362},{"className":361},[],[363],{"type":45,"value":364},"POST \u002Fv1\u002Fresponses",{"type":45,"value":366}," with ",{"type":40,"tag":82,"props":368,"children":370},{"className":369},[],[371],{"type":45,"value":372},"Authorization: Bearer \u003Ctoken>",{"type":45,"value":374}," and ",{"type":40,"tag":82,"props":376,"children":378},{"className":377},[],[379],{"type":45,"value":380},"Content-Type: application\u002Fjson",{"type":45,"value":382},". Non-streaming responses return JSON. Streaming responses use SSE (",{"type":40,"tag":82,"props":384,"children":386},{"className":385},[],[387],{"type":45,"value":388},"text\u002Fevent-stream",{"type":45,"value":390},") terminated by ",{"type":40,"tag":82,"props":392,"children":394},{"className":393},[],[395],{"type":45,"value":396},"data: [DONE]",{"type":45,"value":398},".",{"type":40,"tag":91,"props":400,"children":402},{"id":401},"items",[403],{"type":45,"value":404},"Items",{"type":40,"tag":48,"props":406,"children":407},{},[408,410,415,417,422,424,430,431,436,438,444,446,452,453,458,459,465,467,473],{"type":45,"value":409},"Items are polymorphic atomic units discriminated by ",{"type":40,"tag":82,"props":411,"children":413},{"className":412},[],[414],{"type":45,"value":144},{"type":45,"value":416},". ",{"type":40,"tag":61,"props":418,"children":419},{},[420],{"type":45,"value":421},"Output items",{"type":45,"value":423}," (those emitted by the model in a response) must include ",{"type":40,"tag":82,"props":425,"children":427},{"className":426},[],[428],{"type":45,"value":429},"id",{"type":45,"value":310},{"type":40,"tag":82,"props":432,"children":434},{"className":433},[],[435],{"type":45,"value":144},{"type":45,"value":437},", and ",{"type":40,"tag":82,"props":439,"children":441},{"className":440},[],[442],{"type":45,"value":443},"status",{"type":45,"value":445}," fields. Core output types: ",{"type":40,"tag":82,"props":447,"children":449},{"className":448},[],[450],{"type":45,"value":451},"message",{"type":45,"value":310},{"type":40,"tag":82,"props":454,"children":456},{"className":455},[],[457],{"type":45,"value":308},{"type":45,"value":310},{"type":40,"tag":82,"props":460,"children":462},{"className":461},[],[463],{"type":45,"value":464},"reasoning",{"type":45,"value":466},". Providers extend with vendor-prefixed types (e.g., ",{"type":40,"tag":82,"props":468,"children":470},{"className":469},[],[471],{"type":45,"value":472},"acme:web_search_call",{"type":45,"value":474},").",{"type":40,"tag":48,"props":476,"children":477},{},[478,483,485,491,492,498,499,505,507,512,514,519,520,526,528,534,535,541,543,548,549,554],{"type":40,"tag":61,"props":479,"children":480},{},[481],{"type":45,"value":482},"Input items",{"type":45,"value":484}," (those sent by the client in a request) have different requirements per type. Content types like ",{"type":40,"tag":82,"props":486,"children":488},{"className":487},[],[489],{"type":45,"value":490},"input_text",{"type":45,"value":310},{"type":40,"tag":82,"props":493,"children":495},{"className":494},[],[496],{"type":45,"value":497},"input_image",{"type":45,"value":437},{"type":40,"tag":82,"props":500,"children":502},{"className":501},[],[503],{"type":45,"value":504},"input_file",{"type":45,"value":506}," do not carry ",{"type":40,"tag":82,"props":508,"children":510},{"className":509},[],[511],{"type":45,"value":429},{"type":45,"value":513}," or ",{"type":40,"tag":82,"props":515,"children":517},{"className":516},[],[518],{"type":45,"value":443},{"type":45,"value":416},{"type":40,"tag":82,"props":521,"children":523},{"className":522},[],[524],{"type":45,"value":525},"function_call_output",{"type":45,"value":527}," items require ",{"type":40,"tag":82,"props":529,"children":531},{"className":530},[],[532],{"type":45,"value":533},"call_id",{"type":45,"value":374},{"type":40,"tag":82,"props":536,"children":538},{"className":537},[],[539],{"type":45,"value":540},"output",{"type":45,"value":542}," but treat ",{"type":40,"tag":82,"props":544,"children":546},{"className":545},[],[547],{"type":45,"value":429},{"type":45,"value":374},{"type":40,"tag":82,"props":550,"children":552},{"className":551},[],[553],{"type":45,"value":443},{"type":45,"value":555}," as optional.",{"type":40,"tag":48,"props":557,"children":558},{},[559,564,565,571,572,578,579,585,586,592,594,599,601,607,609,614,616,621],{"type":40,"tag":61,"props":560,"children":561},{},[562],{"type":45,"value":563},"Message roles:",{"type":45,"value":174},{"type":40,"tag":82,"props":566,"children":568},{"className":567},[],[569],{"type":45,"value":570},"user",{"type":45,"value":310},{"type":40,"tag":82,"props":573,"children":575},{"className":574},[],[576],{"type":45,"value":577},"assistant",{"type":45,"value":310},{"type":40,"tag":82,"props":580,"children":582},{"className":581},[],[583],{"type":45,"value":584},"system",{"type":45,"value":310},{"type":40,"tag":82,"props":587,"children":589},{"className":588},[],[590],{"type":45,"value":591},"developer",{"type":45,"value":593},". The ",{"type":40,"tag":82,"props":595,"children":597},{"className":596},[],[598],{"type":45,"value":584},{"type":45,"value":600}," role is distinct from the ",{"type":40,"tag":82,"props":602,"children":604},{"className":603},[],[605],{"type":45,"value":606},"instructions",{"type":45,"value":608}," parameter — it is an inline message item in the input array. The ",{"type":40,"tag":82,"props":610,"children":612},{"className":611},[],[613],{"type":45,"value":591},{"type":45,"value":615}," role is a separate role that providers may handle differently from ",{"type":40,"tag":82,"props":617,"children":619},{"className":618},[],[620],{"type":45,"value":584},{"type":45,"value":398},{"type":40,"tag":91,"props":623,"children":625},{"id":624},"state-machines-and-event-emission",[626],{"type":45,"value":627},"State Machines and Event Emission",{"type":40,"tag":48,"props":629,"children":630},{},[631],{"type":45,"value":632},"The response and item lifecycles are both finite state machines. Each state constrains which events can be emitted.",{"type":40,"tag":634,"props":635,"children":637},"h4",{"id":636},"response-lifecycle-events-emitted-per-state",[638],{"type":45,"value":639},"Response Lifecycle — Events Emitted Per State",{"type":40,"tag":641,"props":642,"children":647},"pre",{"className":643,"code":644,"language":645,"meta":646,"style":646},"language-mermaid shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","stateDiagram-v2\n    [*] --> created : response.created\n    created --> queued : response.queued\n    queued --> in_progress : response.in_progress\n\n    state in_progress {\n        direction LR\n        note right of in_progress\n            Events emittable while in_progress:\n            ─────────────────────────────────\n            response.output_item.added\n            response.content_part.added\n            response.output_text.delta\n            response.output_text.done\n            response.function_call_arguments.delta\n            response.function_call_arguments.done\n            response.reasoning_summary_text.delta\n            response.reasoning_summary_text.done\n            response.content_part.done\n            response.output_item.done\n            vendor:custom_event\n\n            All delta events carry: sequence_number,\n            output_index, item_id\n            Content-level events also carry: content_index\n        end note\n    }\n\n    in_progress --> completed : response.completed\n    in_progress --> incomplete : response.incomplete\\n(item hit token budget)\n    in_progress --> failed : response.failed\n    completed --> [*]\n    incomplete --> [*]\n    failed --> [*]\n","mermaid","",[648],{"type":40,"tag":82,"props":649,"children":650},{"__ignoreMap":646},[651,662,671,680,689,699,708,717,726,735,744,753,762,771,780,789,798,807,816,825,834,843,851,860,869,878,886,895,903,912,921,930,939,948],{"type":40,"tag":652,"props":653,"children":656},"span",{"class":654,"line":655},"line",1,[657],{"type":40,"tag":652,"props":658,"children":659},{},[660],{"type":45,"value":661},"stateDiagram-v2\n",{"type":40,"tag":652,"props":663,"children":665},{"class":654,"line":664},2,[666],{"type":40,"tag":652,"props":667,"children":668},{},[669],{"type":45,"value":670},"    [*] --> created : response.created\n",{"type":40,"tag":652,"props":672,"children":674},{"class":654,"line":673},3,[675],{"type":40,"tag":652,"props":676,"children":677},{},[678],{"type":45,"value":679},"    created --> queued : response.queued\n",{"type":40,"tag":652,"props":681,"children":683},{"class":654,"line":682},4,[684],{"type":40,"tag":652,"props":685,"children":686},{},[687],{"type":45,"value":688},"    queued --> in_progress : response.in_progress\n",{"type":40,"tag":652,"props":690,"children":692},{"class":654,"line":691},5,[693],{"type":40,"tag":652,"props":694,"children":696},{"emptyLinePlaceholder":695},true,[697],{"type":45,"value":698},"\n",{"type":40,"tag":652,"props":700,"children":702},{"class":654,"line":701},6,[703],{"type":40,"tag":652,"props":704,"children":705},{},[706],{"type":45,"value":707},"    state in_progress {\n",{"type":40,"tag":652,"props":709,"children":711},{"class":654,"line":710},7,[712],{"type":40,"tag":652,"props":713,"children":714},{},[715],{"type":45,"value":716},"        direction LR\n",{"type":40,"tag":652,"props":718,"children":720},{"class":654,"line":719},8,[721],{"type":40,"tag":652,"props":722,"children":723},{},[724],{"type":45,"value":725},"        note right of in_progress\n",{"type":40,"tag":652,"props":727,"children":729},{"class":654,"line":728},9,[730],{"type":40,"tag":652,"props":731,"children":732},{},[733],{"type":45,"value":734},"            Events emittable while in_progress:\n",{"type":40,"tag":652,"props":736,"children":738},{"class":654,"line":737},10,[739],{"type":40,"tag":652,"props":740,"children":741},{},[742],{"type":45,"value":743},"            ─────────────────────────────────\n",{"type":40,"tag":652,"props":745,"children":747},{"class":654,"line":746},11,[748],{"type":40,"tag":652,"props":749,"children":750},{},[751],{"type":45,"value":752},"            response.output_item.added\n",{"type":40,"tag":652,"props":754,"children":756},{"class":654,"line":755},12,[757],{"type":40,"tag":652,"props":758,"children":759},{},[760],{"type":45,"value":761},"            response.content_part.added\n",{"type":40,"tag":652,"props":763,"children":765},{"class":654,"line":764},13,[766],{"type":40,"tag":652,"props":767,"children":768},{},[769],{"type":45,"value":770},"            response.output_text.delta\n",{"type":40,"tag":652,"props":772,"children":774},{"class":654,"line":773},14,[775],{"type":40,"tag":652,"props":776,"children":777},{},[778],{"type":45,"value":779},"            response.output_text.done\n",{"type":40,"tag":652,"props":781,"children":783},{"class":654,"line":782},15,[784],{"type":40,"tag":652,"props":785,"children":786},{},[787],{"type":45,"value":788},"            response.function_call_arguments.delta\n",{"type":40,"tag":652,"props":790,"children":792},{"class":654,"line":791},16,[793],{"type":40,"tag":652,"props":794,"children":795},{},[796],{"type":45,"value":797},"            response.function_call_arguments.done\n",{"type":40,"tag":652,"props":799,"children":801},{"class":654,"line":800},17,[802],{"type":40,"tag":652,"props":803,"children":804},{},[805],{"type":45,"value":806},"            response.reasoning_summary_text.delta\n",{"type":40,"tag":652,"props":808,"children":810},{"class":654,"line":809},18,[811],{"type":40,"tag":652,"props":812,"children":813},{},[814],{"type":45,"value":815},"            response.reasoning_summary_text.done\n",{"type":40,"tag":652,"props":817,"children":819},{"class":654,"line":818},19,[820],{"type":40,"tag":652,"props":821,"children":822},{},[823],{"type":45,"value":824},"            response.content_part.done\n",{"type":40,"tag":652,"props":826,"children":828},{"class":654,"line":827},20,[829],{"type":40,"tag":652,"props":830,"children":831},{},[832],{"type":45,"value":833},"            response.output_item.done\n",{"type":40,"tag":652,"props":835,"children":837},{"class":654,"line":836},21,[838],{"type":40,"tag":652,"props":839,"children":840},{},[841],{"type":45,"value":842},"            vendor:custom_event\n",{"type":40,"tag":652,"props":844,"children":846},{"class":654,"line":845},22,[847],{"type":40,"tag":652,"props":848,"children":849},{"emptyLinePlaceholder":695},[850],{"type":45,"value":698},{"type":40,"tag":652,"props":852,"children":854},{"class":654,"line":853},23,[855],{"type":40,"tag":652,"props":856,"children":857},{},[858],{"type":45,"value":859},"            All delta events carry: sequence_number,\n",{"type":40,"tag":652,"props":861,"children":863},{"class":654,"line":862},24,[864],{"type":40,"tag":652,"props":865,"children":866},{},[867],{"type":45,"value":868},"            output_index, item_id\n",{"type":40,"tag":652,"props":870,"children":872},{"class":654,"line":871},25,[873],{"type":40,"tag":652,"props":874,"children":875},{},[876],{"type":45,"value":877},"            Content-level events also carry: content_index\n",{"type":40,"tag":652,"props":879,"children":880},{"class":654,"line":27},[881],{"type":40,"tag":652,"props":882,"children":883},{},[884],{"type":45,"value":885},"        end note\n",{"type":40,"tag":652,"props":887,"children":889},{"class":654,"line":888},27,[890],{"type":40,"tag":652,"props":891,"children":892},{},[893],{"type":45,"value":894},"    }\n",{"type":40,"tag":652,"props":896,"children":898},{"class":654,"line":897},28,[899],{"type":40,"tag":652,"props":900,"children":901},{"emptyLinePlaceholder":695},[902],{"type":45,"value":698},{"type":40,"tag":652,"props":904,"children":906},{"class":654,"line":905},29,[907],{"type":40,"tag":652,"props":908,"children":909},{},[910],{"type":45,"value":911},"    in_progress --> completed : response.completed\n",{"type":40,"tag":652,"props":913,"children":915},{"class":654,"line":914},30,[916],{"type":40,"tag":652,"props":917,"children":918},{},[919],{"type":45,"value":920},"    in_progress --> incomplete : response.incomplete\\n(item hit token budget)\n",{"type":40,"tag":652,"props":922,"children":924},{"class":654,"line":923},31,[925],{"type":40,"tag":652,"props":926,"children":927},{},[928],{"type":45,"value":929},"    in_progress --> failed : response.failed\n",{"type":40,"tag":652,"props":931,"children":933},{"class":654,"line":932},32,[934],{"type":40,"tag":652,"props":935,"children":936},{},[937],{"type":45,"value":938},"    completed --> [*]\n",{"type":40,"tag":652,"props":940,"children":942},{"class":654,"line":941},33,[943],{"type":40,"tag":652,"props":944,"children":945},{},[946],{"type":45,"value":947},"    incomplete --> [*]\n",{"type":40,"tag":652,"props":949,"children":951},{"class":654,"line":950},34,[952],{"type":40,"tag":652,"props":953,"children":954},{},[955],{"type":45,"value":956},"    failed --> [*]\n",{"type":40,"tag":54,"props":958,"children":959},{},[960],{"type":40,"tag":48,"props":961,"children":962},{},[963,968,970,976,978,983],{"type":40,"tag":61,"props":964,"children":965},{},[966],{"type":45,"value":967},"Note:",{"type":45,"value":969}," If any item ends in ",{"type":40,"tag":82,"props":971,"children":973},{"className":972},[],[974],{"type":45,"value":975},"incomplete",{"type":45,"value":977}," status, the containing response MUST also be ",{"type":40,"tag":82,"props":979,"children":981},{"className":980},[],[982],{"type":45,"value":975},{"type":45,"value":398},{"type":40,"tag":634,"props":985,"children":987},{"id":986},"item-lifecycle-events-emitted-per-state",[988],{"type":45,"value":989},"Item Lifecycle — Events Emitted Per State",{"type":40,"tag":641,"props":991,"children":993},{"className":643,"code":992,"language":645,"meta":646,"style":646},"stateDiagram-v2\n    [*] --> in_progress : response.output_item.added\n\n    state in_progress {\n        direction LR\n        note right of in_progress\n            Events emittable while item is in_progress:\n            ──────────────────────────────────────────\n            Message items:\n              response.content_part.added\n              response.output_text.delta  (repeated)\n              response.output_text.done\n              response.content_part.done\n\n            Function call items:\n              response.function_call_arguments.delta  (repeated)\n              response.function_call_arguments.done\n\n            Reasoning items:\n              response.reasoning_summary_text.delta  (repeated)\n              response.reasoning_summary_text.done\n        end note\n    }\n\n    in_progress --> completed : response.output_item.done\n    in_progress --> incomplete : response.output_item.done\n    completed --> [*]\n    incomplete --> [*]\n\n    note right of completed : Terminal — no further deltas\n    note right of incomplete : Terminal — token budget exhausted\n",[994],{"type":40,"tag":82,"props":995,"children":996},{"__ignoreMap":646},[997,1004,1012,1019,1026,1033,1040,1048,1056,1064,1072,1080,1088,1096,1103,1111,1119,1127,1134,1142,1150,1158,1165,1172,1179,1187,1195,1202,1209,1216,1224],{"type":40,"tag":652,"props":998,"children":999},{"class":654,"line":655},[1000],{"type":40,"tag":652,"props":1001,"children":1002},{},[1003],{"type":45,"value":661},{"type":40,"tag":652,"props":1005,"children":1006},{"class":654,"line":664},[1007],{"type":40,"tag":652,"props":1008,"children":1009},{},[1010],{"type":45,"value":1011},"    [*] --> in_progress : response.output_item.added\n",{"type":40,"tag":652,"props":1013,"children":1014},{"class":654,"line":673},[1015],{"type":40,"tag":652,"props":1016,"children":1017},{"emptyLinePlaceholder":695},[1018],{"type":45,"value":698},{"type":40,"tag":652,"props":1020,"children":1021},{"class":654,"line":682},[1022],{"type":40,"tag":652,"props":1023,"children":1024},{},[1025],{"type":45,"value":707},{"type":40,"tag":652,"props":1027,"children":1028},{"class":654,"line":691},[1029],{"type":40,"tag":652,"props":1030,"children":1031},{},[1032],{"type":45,"value":716},{"type":40,"tag":652,"props":1034,"children":1035},{"class":654,"line":701},[1036],{"type":40,"tag":652,"props":1037,"children":1038},{},[1039],{"type":45,"value":725},{"type":40,"tag":652,"props":1041,"children":1042},{"class":654,"line":710},[1043],{"type":40,"tag":652,"props":1044,"children":1045},{},[1046],{"type":45,"value":1047},"            Events emittable while item is in_progress:\n",{"type":40,"tag":652,"props":1049,"children":1050},{"class":654,"line":719},[1051],{"type":40,"tag":652,"props":1052,"children":1053},{},[1054],{"type":45,"value":1055},"            ──────────────────────────────────────────\n",{"type":40,"tag":652,"props":1057,"children":1058},{"class":654,"line":728},[1059],{"type":40,"tag":652,"props":1060,"children":1061},{},[1062],{"type":45,"value":1063},"            Message items:\n",{"type":40,"tag":652,"props":1065,"children":1066},{"class":654,"line":737},[1067],{"type":40,"tag":652,"props":1068,"children":1069},{},[1070],{"type":45,"value":1071},"              response.content_part.added\n",{"type":40,"tag":652,"props":1073,"children":1074},{"class":654,"line":746},[1075],{"type":40,"tag":652,"props":1076,"children":1077},{},[1078],{"type":45,"value":1079},"              response.output_text.delta  (repeated)\n",{"type":40,"tag":652,"props":1081,"children":1082},{"class":654,"line":755},[1083],{"type":40,"tag":652,"props":1084,"children":1085},{},[1086],{"type":45,"value":1087},"              response.output_text.done\n",{"type":40,"tag":652,"props":1089,"children":1090},{"class":654,"line":764},[1091],{"type":40,"tag":652,"props":1092,"children":1093},{},[1094],{"type":45,"value":1095},"              response.content_part.done\n",{"type":40,"tag":652,"props":1097,"children":1098},{"class":654,"line":773},[1099],{"type":40,"tag":652,"props":1100,"children":1101},{"emptyLinePlaceholder":695},[1102],{"type":45,"value":698},{"type":40,"tag":652,"props":1104,"children":1105},{"class":654,"line":782},[1106],{"type":40,"tag":652,"props":1107,"children":1108},{},[1109],{"type":45,"value":1110},"            Function call items:\n",{"type":40,"tag":652,"props":1112,"children":1113},{"class":654,"line":791},[1114],{"type":40,"tag":652,"props":1115,"children":1116},{},[1117],{"type":45,"value":1118},"              response.function_call_arguments.delta  (repeated)\n",{"type":40,"tag":652,"props":1120,"children":1121},{"class":654,"line":800},[1122],{"type":40,"tag":652,"props":1123,"children":1124},{},[1125],{"type":45,"value":1126},"              response.function_call_arguments.done\n",{"type":40,"tag":652,"props":1128,"children":1129},{"class":654,"line":809},[1130],{"type":40,"tag":652,"props":1131,"children":1132},{"emptyLinePlaceholder":695},[1133],{"type":45,"value":698},{"type":40,"tag":652,"props":1135,"children":1136},{"class":654,"line":818},[1137],{"type":40,"tag":652,"props":1138,"children":1139},{},[1140],{"type":45,"value":1141},"            Reasoning items:\n",{"type":40,"tag":652,"props":1143,"children":1144},{"class":654,"line":827},[1145],{"type":40,"tag":652,"props":1146,"children":1147},{},[1148],{"type":45,"value":1149},"              response.reasoning_summary_text.delta  (repeated)\n",{"type":40,"tag":652,"props":1151,"children":1152},{"class":654,"line":836},[1153],{"type":40,"tag":652,"props":1154,"children":1155},{},[1156],{"type":45,"value":1157},"              response.reasoning_summary_text.done\n",{"type":40,"tag":652,"props":1159,"children":1160},{"class":654,"line":845},[1161],{"type":40,"tag":652,"props":1162,"children":1163},{},[1164],{"type":45,"value":885},{"type":40,"tag":652,"props":1166,"children":1167},{"class":654,"line":853},[1168],{"type":40,"tag":652,"props":1169,"children":1170},{},[1171],{"type":45,"value":894},{"type":40,"tag":652,"props":1173,"children":1174},{"class":654,"line":862},[1175],{"type":40,"tag":652,"props":1176,"children":1177},{"emptyLinePlaceholder":695},[1178],{"type":45,"value":698},{"type":40,"tag":652,"props":1180,"children":1181},{"class":654,"line":871},[1182],{"type":40,"tag":652,"props":1183,"children":1184},{},[1185],{"type":45,"value":1186},"    in_progress --> completed : response.output_item.done\n",{"type":40,"tag":652,"props":1188,"children":1189},{"class":654,"line":27},[1190],{"type":40,"tag":652,"props":1191,"children":1192},{},[1193],{"type":45,"value":1194},"    in_progress --> incomplete : response.output_item.done\n",{"type":40,"tag":652,"props":1196,"children":1197},{"class":654,"line":888},[1198],{"type":40,"tag":652,"props":1199,"children":1200},{},[1201],{"type":45,"value":938},{"type":40,"tag":652,"props":1203,"children":1204},{"class":654,"line":897},[1205],{"type":40,"tag":652,"props":1206,"children":1207},{},[1208],{"type":45,"value":947},{"type":40,"tag":652,"props":1210,"children":1211},{"class":654,"line":905},[1212],{"type":40,"tag":652,"props":1213,"children":1214},{"emptyLinePlaceholder":695},[1215],{"type":45,"value":698},{"type":40,"tag":652,"props":1217,"children":1218},{"class":654,"line":914},[1219],{"type":40,"tag":652,"props":1220,"children":1221},{},[1222],{"type":45,"value":1223},"    note right of completed : Terminal — no further deltas\n",{"type":40,"tag":652,"props":1225,"children":1226},{"class":654,"line":923},[1227],{"type":40,"tag":652,"props":1228,"children":1229},{},[1230],{"type":45,"value":1231},"    note right of incomplete : Terminal — token budget exhausted\n",{"type":40,"tag":634,"props":1233,"children":1235},{"id":1234},"event-validity-summary",[1236],{"type":45,"value":1237},"Event Validity Summary",{"type":40,"tag":200,"props":1239,"children":1240},{},[1241,1257],{"type":40,"tag":204,"props":1242,"children":1243},{},[1244],{"type":40,"tag":208,"props":1245,"children":1246},{},[1247,1252],{"type":40,"tag":212,"props":1248,"children":1249},{},[1250],{"type":45,"value":1251},"Response State",{"type":40,"tag":212,"props":1253,"children":1254},{},[1255],{"type":45,"value":1256},"Valid Events",{"type":40,"tag":228,"props":1258,"children":1259},{},[1260,1281,1301,1318,1346,1370],{"type":40,"tag":208,"props":1261,"children":1262},{},[1263,1272],{"type":40,"tag":235,"props":1264,"children":1265},{},[1266],{"type":40,"tag":82,"props":1267,"children":1269},{"className":1268},[],[1270],{"type":45,"value":1271},"created",{"type":40,"tag":235,"props":1273,"children":1274},{},[1275],{"type":40,"tag":1276,"props":1277,"children":1278},"em",{},[1279],{"type":45,"value":1280},"(transient — response object just created)",{"type":40,"tag":208,"props":1282,"children":1283},{},[1284,1293],{"type":40,"tag":235,"props":1285,"children":1286},{},[1287],{"type":40,"tag":82,"props":1288,"children":1290},{"className":1289},[],[1291],{"type":45,"value":1292},"queued",{"type":40,"tag":235,"props":1294,"children":1295},{},[1296],{"type":40,"tag":1276,"props":1297,"children":1298},{},[1299],{"type":45,"value":1300},"(waiting for model availability)",{"type":40,"tag":208,"props":1302,"children":1303},{},[1304,1313],{"type":40,"tag":235,"props":1305,"children":1306},{},[1307],{"type":40,"tag":82,"props":1308,"children":1310},{"className":1309},[],[1311],{"type":45,"value":1312},"in_progress",{"type":40,"tag":235,"props":1314,"children":1315},{},[1316],{"type":45,"value":1317},"All delta events, all custom events, item lifecycle events",{"type":40,"tag":208,"props":1319,"children":1320},{},[1321,1330],{"type":40,"tag":235,"props":1322,"children":1323},{},[1324],{"type":40,"tag":82,"props":1325,"children":1327},{"className":1326},[],[1328],{"type":45,"value":1329},"completed",{"type":40,"tag":235,"props":1331,"children":1332},{},[1333],{"type":40,"tag":1276,"props":1334,"children":1335},{},[1336,1338,1344],{"type":45,"value":1337},"(terminal — no more events except ",{"type":40,"tag":82,"props":1339,"children":1341},{"className":1340},[],[1342],{"type":45,"value":1343},"[DONE]",{"type":45,"value":1345},")",{"type":40,"tag":208,"props":1347,"children":1348},{},[1349,1357],{"type":40,"tag":235,"props":1350,"children":1351},{},[1352],{"type":40,"tag":82,"props":1353,"children":1355},{"className":1354},[],[1356],{"type":45,"value":975},{"type":40,"tag":235,"props":1358,"children":1359},{},[1360],{"type":40,"tag":1276,"props":1361,"children":1362},{},[1363,1364,1369],{"type":45,"value":1337},{"type":40,"tag":82,"props":1365,"children":1367},{"className":1366},[],[1368],{"type":45,"value":1343},{"type":45,"value":1345},{"type":40,"tag":208,"props":1371,"children":1372},{},[1373,1382],{"type":40,"tag":235,"props":1374,"children":1375},{},[1376],{"type":40,"tag":82,"props":1377,"children":1379},{"className":1378},[],[1380],{"type":45,"value":1381},"failed",{"type":40,"tag":235,"props":1383,"children":1384},{},[1385],{"type":40,"tag":1276,"props":1386,"children":1387},{},[1388,1389,1394],{"type":45,"value":1337},{"type":40,"tag":82,"props":1390,"children":1392},{"className":1391},[],[1393],{"type":45,"value":1343},{"type":45,"value":1345},{"type":40,"tag":200,"props":1396,"children":1397},{},[1398,1413],{"type":40,"tag":204,"props":1399,"children":1400},{},[1401],{"type":40,"tag":208,"props":1402,"children":1403},{},[1404,1409],{"type":40,"tag":212,"props":1405,"children":1406},{},[1407],{"type":45,"value":1408},"Item State",{"type":40,"tag":212,"props":1410,"children":1411},{},[1412],{"type":45,"value":1256},{"type":40,"tag":228,"props":1414,"children":1415},{},[1416,1448,1467],{"type":40,"tag":208,"props":1417,"children":1418},{},[1419,1427],{"type":40,"tag":235,"props":1420,"children":1421},{},[1422],{"type":40,"tag":82,"props":1423,"children":1425},{"className":1424},[],[1426],{"type":45,"value":1312},{"type":40,"tag":235,"props":1428,"children":1429},{},[1430,1432,1438,1440,1446],{"type":45,"value":1431},"Content deltas (",{"type":40,"tag":82,"props":1433,"children":1435},{"className":1434},[],[1436],{"type":45,"value":1437},".delta",{"type":45,"value":1439},"), content completion (",{"type":40,"tag":82,"props":1441,"children":1443},{"className":1442},[],[1444],{"type":45,"value":1445},".done",{"type":45,"value":1447},"), part lifecycle",{"type":40,"tag":208,"props":1449,"children":1450},{},[1451,1459],{"type":40,"tag":235,"props":1452,"children":1453},{},[1454],{"type":40,"tag":82,"props":1455,"children":1457},{"className":1456},[],[1458],{"type":45,"value":1329},{"type":40,"tag":235,"props":1460,"children":1461},{},[1462],{"type":40,"tag":1276,"props":1463,"children":1464},{},[1465],{"type":45,"value":1466},"(terminal — no further deltas for this item)",{"type":40,"tag":208,"props":1468,"children":1469},{},[1470,1478],{"type":40,"tag":235,"props":1471,"children":1472},{},[1473],{"type":40,"tag":82,"props":1474,"children":1476},{"className":1475},[],[1477],{"type":45,"value":975},{"type":40,"tag":235,"props":1479,"children":1480},{},[1481],{"type":40,"tag":1276,"props":1482,"children":1483},{},[1484],{"type":45,"value":1466},{"type":40,"tag":48,"props":1486,"children":1487},{},[1488,1490,1496,1498,1504,1506,1512,1514,1520,1522,1527],{"type":45,"value":1489},"All delta and item events carry ",{"type":40,"tag":82,"props":1491,"children":1493},{"className":1492},[],[1494],{"type":45,"value":1495},"sequence_number",{"type":45,"value":1497}," (monotonically increasing), ",{"type":40,"tag":82,"props":1499,"children":1501},{"className":1500},[],[1502],{"type":45,"value":1503},"output_index",{"type":45,"value":1505}," (position in response output array), and ",{"type":40,"tag":82,"props":1507,"children":1509},{"className":1508},[],[1510],{"type":45,"value":1511},"item_id",{"type":45,"value":1513},". Content-level events (text, reasoning summary) additionally carry ",{"type":40,"tag":82,"props":1515,"children":1517},{"className":1516},[],[1518],{"type":45,"value":1519},"content_index",{"type":45,"value":1521}," (position within a content part). Servers SHOULD NOT use the SSE ",{"type":40,"tag":82,"props":1523,"children":1525},{"className":1524},[],[1526],{"type":45,"value":429},{"type":45,"value":1528}," field.",{"type":40,"tag":91,"props":1530,"children":1532},{"id":1531},"streaming-events",[1533],{"type":45,"value":1534},"Streaming Events",{"type":40,"tag":48,"props":1536,"children":1537},{},[1538],{"type":45,"value":1539},"Two categories of SSE events:",{"type":40,"tag":98,"props":1541,"children":1542},{},[1543,1582],{"type":40,"tag":102,"props":1544,"children":1545},{},[1546,1551,1553,1559,1560,1566,1567,1573,1574,1580],{"type":40,"tag":61,"props":1547,"children":1548},{},[1549],{"type":45,"value":1550},"Delta events",{"type":45,"value":1552}," — incremental content: ",{"type":40,"tag":82,"props":1554,"children":1556},{"className":1555},[],[1557],{"type":45,"value":1558},"response.output_text.delta",{"type":45,"value":310},{"type":40,"tag":82,"props":1561,"children":1563},{"className":1562},[],[1564],{"type":45,"value":1565},"response.function_call_arguments.delta",{"type":45,"value":310},{"type":40,"tag":82,"props":1568,"children":1570},{"className":1569},[],[1571],{"type":45,"value":1572},"response.output_item.added",{"type":45,"value":310},{"type":40,"tag":82,"props":1575,"children":1577},{"className":1576},[],[1578],{"type":45,"value":1579},"response.output_item.done",{"type":45,"value":1581},", etc.",{"type":40,"tag":102,"props":1583,"children":1584},{},[1585,1590,1592,1598,1599,1605,1606,1612,1613,1619,1620,1626,1627],{"type":40,"tag":61,"props":1586,"children":1587},{},[1588],{"type":45,"value":1589},"Lifecycle events",{"type":45,"value":1591}," — state transitions: ",{"type":40,"tag":82,"props":1593,"children":1595},{"className":1594},[],[1596],{"type":45,"value":1597},"response.created",{"type":45,"value":310},{"type":40,"tag":82,"props":1600,"children":1602},{"className":1601},[],[1603],{"type":45,"value":1604},"response.queued",{"type":45,"value":310},{"type":40,"tag":82,"props":1607,"children":1609},{"className":1608},[],[1610],{"type":45,"value":1611},"response.in_progress",{"type":45,"value":310},{"type":40,"tag":82,"props":1614,"children":1616},{"className":1615},[],[1617],{"type":45,"value":1618},"response.completed",{"type":45,"value":310},{"type":40,"tag":82,"props":1621,"children":1623},{"className":1622},[],[1624],{"type":45,"value":1625},"response.incomplete",{"type":45,"value":310},{"type":40,"tag":82,"props":1628,"children":1630},{"className":1629},[],[1631],{"type":45,"value":1632},"response.failed",{"type":40,"tag":48,"props":1634,"children":1635},{},[1636,1638,1644,1646,1651],{"type":45,"value":1637},"Rule: the ",{"type":40,"tag":82,"props":1639,"children":1641},{"className":1640},[],[1642],{"type":45,"value":1643},"event",{"type":45,"value":1645}," SSE header must match the ",{"type":40,"tag":82,"props":1647,"children":1649},{"className":1648},[],[1650],{"type":45,"value":144},{"type":45,"value":1652}," field inside the JSON body.",{"type":40,"tag":184,"props":1654,"children":1655},{},[],{"type":40,"tag":188,"props":1657,"children":1659},{"id":1658},"tools",[1660],{"type":45,"value":1661},"Tools",{"type":40,"tag":48,"props":1663,"children":1664},{},[1665],{"type":45,"value":1666},"Open Responses defines two tool categories based on execution location.",{"type":40,"tag":48,"props":1668,"children":1669},{},[1670,1675,1677,1682,1684,1689],{"type":40,"tag":61,"props":1671,"children":1672},{},[1673],{"type":45,"value":1674},"Externally-hosted tools",{"type":45,"value":1676}," — implementation lives outside the provider's system. The model requests invocation via ",{"type":40,"tag":82,"props":1678,"children":1680},{"className":1679},[],[1681],{"type":45,"value":308},{"type":45,"value":1683}," items, and the developer must supply results as ",{"type":40,"tag":82,"props":1685,"children":1687},{"className":1686},[],[1688],{"type":45,"value":525},{"type":45,"value":1690}," items in a follow-up request. Note that \"externally hosted\" does not always mean the developer executes the tool locally — MCP tools are externally hosted (the implementation lives on external servers), but control is not necessarily yielded back to the developer first. Examples: function tools, MCP server tools.",{"type":40,"tag":48,"props":1692,"children":1693},{},[1694,1699],{"type":40,"tag":61,"props":1695,"children":1696},{},[1697],{"type":45,"value":1698},"Internally-hosted tools",{"type":45,"value":1700}," — implementation lives inside the provider's system. The provider executes without yielding control and returns results as provider-specific item types within the same response. These items must be losslessly round-trippable in follow-up requests. Examples: file search, code interpreter, web search.",{"type":40,"tag":91,"props":1702,"children":1704},{"id":1703},"tool-definition",[1705],{"type":45,"value":1706},"Tool Definition",{"type":40,"tag":641,"props":1708,"children":1712},{"className":1709,"code":1710,"language":1711,"meta":646,"style":646},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"type\": \"function\",\n  \"name\": \"get_weather\",\n  \"description\": \"Get current weather for a location\",\n  \"parameters\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"location\": {\"type\": \"string\", \"description\": \"City name\"},\n      \"units\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}\n    },\n    \"required\": [\"location\"]\n  }\n}\n","json",[1713],{"type":40,"tag":82,"props":1714,"children":1715},{"__ignoreMap":646},[1716,1725,1768,1805,1842,1867,1905,1929,2025,2138,2146,2187,2195],{"type":40,"tag":652,"props":1717,"children":1718},{"class":654,"line":655},[1719],{"type":40,"tag":652,"props":1720,"children":1722},{"style":1721},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[1723],{"type":45,"value":1724},"{\n",{"type":40,"tag":652,"props":1726,"children":1727},{"class":654,"line":664},[1728,1733,1738,1743,1748,1753,1759,1763],{"type":40,"tag":652,"props":1729,"children":1730},{"style":1721},[1731],{"type":45,"value":1732},"  \"",{"type":40,"tag":652,"props":1734,"children":1736},{"style":1735},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1737],{"type":45,"value":144},{"type":40,"tag":652,"props":1739,"children":1740},{"style":1721},[1741],{"type":45,"value":1742},"\"",{"type":40,"tag":652,"props":1744,"children":1745},{"style":1721},[1746],{"type":45,"value":1747},":",{"type":40,"tag":652,"props":1749,"children":1750},{"style":1721},[1751],{"type":45,"value":1752}," \"",{"type":40,"tag":652,"props":1754,"children":1756},{"style":1755},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[1757],{"type":45,"value":1758},"function",{"type":40,"tag":652,"props":1760,"children":1761},{"style":1721},[1762],{"type":45,"value":1742},{"type":40,"tag":652,"props":1764,"children":1765},{"style":1721},[1766],{"type":45,"value":1767},",\n",{"type":40,"tag":652,"props":1769,"children":1770},{"class":654,"line":673},[1771,1775,1780,1784,1788,1792,1797,1801],{"type":40,"tag":652,"props":1772,"children":1773},{"style":1721},[1774],{"type":45,"value":1732},{"type":40,"tag":652,"props":1776,"children":1777},{"style":1735},[1778],{"type":45,"value":1779},"name",{"type":40,"tag":652,"props":1781,"children":1782},{"style":1721},[1783],{"type":45,"value":1742},{"type":40,"tag":652,"props":1785,"children":1786},{"style":1721},[1787],{"type":45,"value":1747},{"type":40,"tag":652,"props":1789,"children":1790},{"style":1721},[1791],{"type":45,"value":1752},{"type":40,"tag":652,"props":1793,"children":1794},{"style":1755},[1795],{"type":45,"value":1796},"get_weather",{"type":40,"tag":652,"props":1798,"children":1799},{"style":1721},[1800],{"type":45,"value":1742},{"type":40,"tag":652,"props":1802,"children":1803},{"style":1721},[1804],{"type":45,"value":1767},{"type":40,"tag":652,"props":1806,"children":1807},{"class":654,"line":682},[1808,1812,1817,1821,1825,1829,1834,1838],{"type":40,"tag":652,"props":1809,"children":1810},{"style":1721},[1811],{"type":45,"value":1732},{"type":40,"tag":652,"props":1813,"children":1814},{"style":1735},[1815],{"type":45,"value":1816},"description",{"type":40,"tag":652,"props":1818,"children":1819},{"style":1721},[1820],{"type":45,"value":1742},{"type":40,"tag":652,"props":1822,"children":1823},{"style":1721},[1824],{"type":45,"value":1747},{"type":40,"tag":652,"props":1826,"children":1827},{"style":1721},[1828],{"type":45,"value":1752},{"type":40,"tag":652,"props":1830,"children":1831},{"style":1755},[1832],{"type":45,"value":1833},"Get current weather for a location",{"type":40,"tag":652,"props":1835,"children":1836},{"style":1721},[1837],{"type":45,"value":1742},{"type":40,"tag":652,"props":1839,"children":1840},{"style":1721},[1841],{"type":45,"value":1767},{"type":40,"tag":652,"props":1843,"children":1844},{"class":654,"line":691},[1845,1849,1854,1858,1862],{"type":40,"tag":652,"props":1846,"children":1847},{"style":1721},[1848],{"type":45,"value":1732},{"type":40,"tag":652,"props":1850,"children":1851},{"style":1735},[1852],{"type":45,"value":1853},"parameters",{"type":40,"tag":652,"props":1855,"children":1856},{"style":1721},[1857],{"type":45,"value":1742},{"type":40,"tag":652,"props":1859,"children":1860},{"style":1721},[1861],{"type":45,"value":1747},{"type":40,"tag":652,"props":1863,"children":1864},{"style":1721},[1865],{"type":45,"value":1866}," {\n",{"type":40,"tag":652,"props":1868,"children":1869},{"class":654,"line":701},[1870,1875,1880,1884,1888,1892,1897,1901],{"type":40,"tag":652,"props":1871,"children":1872},{"style":1721},[1873],{"type":45,"value":1874},"    \"",{"type":40,"tag":652,"props":1876,"children":1878},{"style":1877},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1879],{"type":45,"value":144},{"type":40,"tag":652,"props":1881,"children":1882},{"style":1721},[1883],{"type":45,"value":1742},{"type":40,"tag":652,"props":1885,"children":1886},{"style":1721},[1887],{"type":45,"value":1747},{"type":40,"tag":652,"props":1889,"children":1890},{"style":1721},[1891],{"type":45,"value":1752},{"type":40,"tag":652,"props":1893,"children":1894},{"style":1755},[1895],{"type":45,"value":1896},"object",{"type":40,"tag":652,"props":1898,"children":1899},{"style":1721},[1900],{"type":45,"value":1742},{"type":40,"tag":652,"props":1902,"children":1903},{"style":1721},[1904],{"type":45,"value":1767},{"type":40,"tag":652,"props":1906,"children":1907},{"class":654,"line":710},[1908,1912,1917,1921,1925],{"type":40,"tag":652,"props":1909,"children":1910},{"style":1721},[1911],{"type":45,"value":1874},{"type":40,"tag":652,"props":1913,"children":1914},{"style":1877},[1915],{"type":45,"value":1916},"properties",{"type":40,"tag":652,"props":1918,"children":1919},{"style":1721},[1920],{"type":45,"value":1742},{"type":40,"tag":652,"props":1922,"children":1923},{"style":1721},[1924],{"type":45,"value":1747},{"type":40,"tag":652,"props":1926,"children":1927},{"style":1721},[1928],{"type":45,"value":1866},{"type":40,"tag":652,"props":1930,"children":1931},{"class":654,"line":719},[1932,1937,1943,1947,1951,1956,1960,1965,1969,1973,1977,1982,1986,1991,1995,1999,2003,2007,2011,2016,2020],{"type":40,"tag":652,"props":1933,"children":1934},{"style":1721},[1935],{"type":45,"value":1936},"      \"",{"type":40,"tag":652,"props":1938,"children":1940},{"style":1939},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1941],{"type":45,"value":1942},"location",{"type":40,"tag":652,"props":1944,"children":1945},{"style":1721},[1946],{"type":45,"value":1742},{"type":40,"tag":652,"props":1948,"children":1949},{"style":1721},[1950],{"type":45,"value":1747},{"type":40,"tag":652,"props":1952,"children":1953},{"style":1721},[1954],{"type":45,"value":1955}," {",{"type":40,"tag":652,"props":1957,"children":1958},{"style":1721},[1959],{"type":45,"value":1742},{"type":40,"tag":652,"props":1961,"children":1963},{"style":1962},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1964],{"type":45,"value":144},{"type":40,"tag":652,"props":1966,"children":1967},{"style":1721},[1968],{"type":45,"value":1742},{"type":40,"tag":652,"props":1970,"children":1971},{"style":1721},[1972],{"type":45,"value":1747},{"type":40,"tag":652,"props":1974,"children":1975},{"style":1721},[1976],{"type":45,"value":1752},{"type":40,"tag":652,"props":1978,"children":1979},{"style":1755},[1980],{"type":45,"value":1981},"string",{"type":40,"tag":652,"props":1983,"children":1984},{"style":1721},[1985],{"type":45,"value":1742},{"type":40,"tag":652,"props":1987,"children":1988},{"style":1721},[1989],{"type":45,"value":1990},",",{"type":40,"tag":652,"props":1992,"children":1993},{"style":1721},[1994],{"type":45,"value":1752},{"type":40,"tag":652,"props":1996,"children":1997},{"style":1962},[1998],{"type":45,"value":1816},{"type":40,"tag":652,"props":2000,"children":2001},{"style":1721},[2002],{"type":45,"value":1742},{"type":40,"tag":652,"props":2004,"children":2005},{"style":1721},[2006],{"type":45,"value":1747},{"type":40,"tag":652,"props":2008,"children":2009},{"style":1721},[2010],{"type":45,"value":1752},{"type":40,"tag":652,"props":2012,"children":2013},{"style":1755},[2014],{"type":45,"value":2015},"City name",{"type":40,"tag":652,"props":2017,"children":2018},{"style":1721},[2019],{"type":45,"value":1742},{"type":40,"tag":652,"props":2021,"children":2022},{"style":1721},[2023],{"type":45,"value":2024},"},\n",{"type":40,"tag":652,"props":2026,"children":2027},{"class":654,"line":728},[2028,2032,2037,2041,2045,2049,2053,2057,2061,2065,2069,2073,2077,2081,2085,2090,2094,2098,2103,2107,2112,2116,2120,2124,2129,2133],{"type":40,"tag":652,"props":2029,"children":2030},{"style":1721},[2031],{"type":45,"value":1936},{"type":40,"tag":652,"props":2033,"children":2034},{"style":1939},[2035],{"type":45,"value":2036},"units",{"type":40,"tag":652,"props":2038,"children":2039},{"style":1721},[2040],{"type":45,"value":1742},{"type":40,"tag":652,"props":2042,"children":2043},{"style":1721},[2044],{"type":45,"value":1747},{"type":40,"tag":652,"props":2046,"children":2047},{"style":1721},[2048],{"type":45,"value":1955},{"type":40,"tag":652,"props":2050,"children":2051},{"style":1721},[2052],{"type":45,"value":1742},{"type":40,"tag":652,"props":2054,"children":2055},{"style":1962},[2056],{"type":45,"value":144},{"type":40,"tag":652,"props":2058,"children":2059},{"style":1721},[2060],{"type":45,"value":1742},{"type":40,"tag":652,"props":2062,"children":2063},{"style":1721},[2064],{"type":45,"value":1747},{"type":40,"tag":652,"props":2066,"children":2067},{"style":1721},[2068],{"type":45,"value":1752},{"type":40,"tag":652,"props":2070,"children":2071},{"style":1755},[2072],{"type":45,"value":1981},{"type":40,"tag":652,"props":2074,"children":2075},{"style":1721},[2076],{"type":45,"value":1742},{"type":40,"tag":652,"props":2078,"children":2079},{"style":1721},[2080],{"type":45,"value":1990},{"type":40,"tag":652,"props":2082,"children":2083},{"style":1721},[2084],{"type":45,"value":1752},{"type":40,"tag":652,"props":2086,"children":2087},{"style":1962},[2088],{"type":45,"value":2089},"enum",{"type":40,"tag":652,"props":2091,"children":2092},{"style":1721},[2093],{"type":45,"value":1742},{"type":40,"tag":652,"props":2095,"children":2096},{"style":1721},[2097],{"type":45,"value":1747},{"type":40,"tag":652,"props":2099,"children":2100},{"style":1721},[2101],{"type":45,"value":2102}," [",{"type":40,"tag":652,"props":2104,"children":2105},{"style":1721},[2106],{"type":45,"value":1742},{"type":40,"tag":652,"props":2108,"children":2109},{"style":1755},[2110],{"type":45,"value":2111},"celsius",{"type":40,"tag":652,"props":2113,"children":2114},{"style":1721},[2115],{"type":45,"value":1742},{"type":40,"tag":652,"props":2117,"children":2118},{"style":1721},[2119],{"type":45,"value":1990},{"type":40,"tag":652,"props":2121,"children":2122},{"style":1721},[2123],{"type":45,"value":1752},{"type":40,"tag":652,"props":2125,"children":2126},{"style":1755},[2127],{"type":45,"value":2128},"fahrenheit",{"type":40,"tag":652,"props":2130,"children":2131},{"style":1721},[2132],{"type":45,"value":1742},{"type":40,"tag":652,"props":2134,"children":2135},{"style":1721},[2136],{"type":45,"value":2137},"]}\n",{"type":40,"tag":652,"props":2139,"children":2140},{"class":654,"line":737},[2141],{"type":40,"tag":652,"props":2142,"children":2143},{"style":1721},[2144],{"type":45,"value":2145},"    },\n",{"type":40,"tag":652,"props":2147,"children":2148},{"class":654,"line":746},[2149,2153,2158,2162,2166,2170,2174,2178,2182],{"type":40,"tag":652,"props":2150,"children":2151},{"style":1721},[2152],{"type":45,"value":1874},{"type":40,"tag":652,"props":2154,"children":2155},{"style":1877},[2156],{"type":45,"value":2157},"required",{"type":40,"tag":652,"props":2159,"children":2160},{"style":1721},[2161],{"type":45,"value":1742},{"type":40,"tag":652,"props":2163,"children":2164},{"style":1721},[2165],{"type":45,"value":1747},{"type":40,"tag":652,"props":2167,"children":2168},{"style":1721},[2169],{"type":45,"value":2102},{"type":40,"tag":652,"props":2171,"children":2172},{"style":1721},[2173],{"type":45,"value":1742},{"type":40,"tag":652,"props":2175,"children":2176},{"style":1755},[2177],{"type":45,"value":1942},{"type":40,"tag":652,"props":2179,"children":2180},{"style":1721},[2181],{"type":45,"value":1742},{"type":40,"tag":652,"props":2183,"children":2184},{"style":1721},[2185],{"type":45,"value":2186},"]\n",{"type":40,"tag":652,"props":2188,"children":2189},{"class":654,"line":755},[2190],{"type":40,"tag":652,"props":2191,"children":2192},{"style":1721},[2193],{"type":45,"value":2194},"  }\n",{"type":40,"tag":652,"props":2196,"children":2197},{"class":654,"line":764},[2198],{"type":40,"tag":652,"props":2199,"children":2200},{"style":1721},[2201],{"type":45,"value":2202},"}\n",{"type":40,"tag":91,"props":2204,"children":2206},{"id":2205},"tool-control",[2207],{"type":45,"value":2208},"Tool Control",{"type":40,"tag":48,"props":2210,"children":2211},{},[2212,2214,2219],{"type":45,"value":2213},"The ",{"type":40,"tag":82,"props":2215,"children":2217},{"className":2216},[],[2218],{"type":45,"value":323},{"type":45,"value":2220}," parameter controls whether and how the model uses tools:",{"type":40,"tag":200,"props":2222,"children":2223},{},[2224,2245],{"type":40,"tag":204,"props":2225,"children":2226},{},[2227],{"type":40,"tag":208,"props":2228,"children":2229},{},[2230,2240],{"type":40,"tag":212,"props":2231,"children":2232},{},[2233,2238],{"type":40,"tag":82,"props":2234,"children":2236},{"className":2235},[],[2237],{"type":45,"value":323},{"type":45,"value":2239}," value",{"type":40,"tag":212,"props":2241,"children":2242},{},[2243],{"type":45,"value":2244},"Purpose",{"type":40,"tag":228,"props":2246,"children":2247},{},[2248,2265,2282,2299,2316],{"type":40,"tag":208,"props":2249,"children":2250},{},[2251,2260],{"type":40,"tag":235,"props":2252,"children":2253},{},[2254],{"type":40,"tag":82,"props":2255,"children":2257},{"className":2256},[],[2258],{"type":45,"value":2259},"\"auto\"",{"type":40,"tag":235,"props":2261,"children":2262},{},[2263],{"type":45,"value":2264},"Model decides whether to call tools (default)",{"type":40,"tag":208,"props":2266,"children":2267},{},[2268,2277],{"type":40,"tag":235,"props":2269,"children":2270},{},[2271],{"type":40,"tag":82,"props":2272,"children":2274},{"className":2273},[],[2275],{"type":45,"value":2276},"\"required\"",{"type":40,"tag":235,"props":2278,"children":2279},{},[2280],{"type":45,"value":2281},"Model must invoke at least one tool",{"type":40,"tag":208,"props":2283,"children":2284},{},[2285,2294],{"type":40,"tag":235,"props":2286,"children":2287},{},[2288],{"type":40,"tag":82,"props":2289,"children":2291},{"className":2290},[],[2292],{"type":45,"value":2293},"\"none\"",{"type":40,"tag":235,"props":2295,"children":2296},{},[2297],{"type":45,"value":2298},"No tool calls permitted",{"type":40,"tag":208,"props":2300,"children":2301},{},[2302,2311],{"type":40,"tag":235,"props":2303,"children":2304},{},[2305],{"type":40,"tag":82,"props":2306,"children":2308},{"className":2307},[],[2309],{"type":45,"value":2310},"{\"type\": \"function\", \"name\": \"...\"}",{"type":40,"tag":235,"props":2312,"children":2313},{},[2314],{"type":45,"value":2315},"Force a specific tool",{"type":40,"tag":208,"props":2317,"children":2318},{},[2319,2328],{"type":40,"tag":235,"props":2320,"children":2321},{},[2322],{"type":40,"tag":82,"props":2323,"children":2325},{"className":2324},[],[2326],{"type":45,"value":2327},"{\"type\": \"allowed_tools\", \"tools\": [...]}",{"type":40,"tag":235,"props":2329,"children":2330},{},[2331],{"type":45,"value":2332},"Restrict which tools the model may invoke",{"type":40,"tag":48,"props":2334,"children":2335},{},[2336,2337,2343,2345,2350],{"type":45,"value":2213},{"type":40,"tag":82,"props":2338,"children":2340},{"className":2339},[],[2341],{"type":45,"value":2342},"allowed_tools",{"type":45,"value":2344}," form is nested inside ",{"type":40,"tag":82,"props":2346,"children":2348},{"className":2347},[],[2349],{"type":45,"value":323},{"type":45,"value":2351},", not a separate top-level parameter:",{"type":40,"tag":641,"props":2353,"children":2355},{"className":1709,"code":2354,"language":1711,"meta":646,"style":646},"{\n  \"tool_choice\": {\n    \"type\": \"allowed_tools\",\n    \"tools\": [\n      {\"type\": \"function\", \"name\": \"get_weather\"}\n    ]\n  }\n}\n",[2356],{"type":40,"tag":82,"props":2357,"children":2358},{"__ignoreMap":646},[2359,2366,2389,2424,2448,2520,2528,2535],{"type":40,"tag":652,"props":2360,"children":2361},{"class":654,"line":655},[2362],{"type":40,"tag":652,"props":2363,"children":2364},{"style":1721},[2365],{"type":45,"value":1724},{"type":40,"tag":652,"props":2367,"children":2368},{"class":654,"line":664},[2369,2373,2377,2381,2385],{"type":40,"tag":652,"props":2370,"children":2371},{"style":1721},[2372],{"type":45,"value":1732},{"type":40,"tag":652,"props":2374,"children":2375},{"style":1735},[2376],{"type":45,"value":323},{"type":40,"tag":652,"props":2378,"children":2379},{"style":1721},[2380],{"type":45,"value":1742},{"type":40,"tag":652,"props":2382,"children":2383},{"style":1721},[2384],{"type":45,"value":1747},{"type":40,"tag":652,"props":2386,"children":2387},{"style":1721},[2388],{"type":45,"value":1866},{"type":40,"tag":652,"props":2390,"children":2391},{"class":654,"line":673},[2392,2396,2400,2404,2408,2412,2416,2420],{"type":40,"tag":652,"props":2393,"children":2394},{"style":1721},[2395],{"type":45,"value":1874},{"type":40,"tag":652,"props":2397,"children":2398},{"style":1877},[2399],{"type":45,"value":144},{"type":40,"tag":652,"props":2401,"children":2402},{"style":1721},[2403],{"type":45,"value":1742},{"type":40,"tag":652,"props":2405,"children":2406},{"style":1721},[2407],{"type":45,"value":1747},{"type":40,"tag":652,"props":2409,"children":2410},{"style":1721},[2411],{"type":45,"value":1752},{"type":40,"tag":652,"props":2413,"children":2414},{"style":1755},[2415],{"type":45,"value":2342},{"type":40,"tag":652,"props":2417,"children":2418},{"style":1721},[2419],{"type":45,"value":1742},{"type":40,"tag":652,"props":2421,"children":2422},{"style":1721},[2423],{"type":45,"value":1767},{"type":40,"tag":652,"props":2425,"children":2426},{"class":654,"line":682},[2427,2431,2435,2439,2443],{"type":40,"tag":652,"props":2428,"children":2429},{"style":1721},[2430],{"type":45,"value":1874},{"type":40,"tag":652,"props":2432,"children":2433},{"style":1877},[2434],{"type":45,"value":1658},{"type":40,"tag":652,"props":2436,"children":2437},{"style":1721},[2438],{"type":45,"value":1742},{"type":40,"tag":652,"props":2440,"children":2441},{"style":1721},[2442],{"type":45,"value":1747},{"type":40,"tag":652,"props":2444,"children":2445},{"style":1721},[2446],{"type":45,"value":2447}," [\n",{"type":40,"tag":652,"props":2449,"children":2450},{"class":654,"line":691},[2451,2456,2460,2464,2468,2472,2476,2480,2484,2488,2492,2496,2500,2504,2508,2512,2516],{"type":40,"tag":652,"props":2452,"children":2453},{"style":1721},[2454],{"type":45,"value":2455},"      {",{"type":40,"tag":652,"props":2457,"children":2458},{"style":1721},[2459],{"type":45,"value":1742},{"type":40,"tag":652,"props":2461,"children":2462},{"style":1939},[2463],{"type":45,"value":144},{"type":40,"tag":652,"props":2465,"children":2466},{"style":1721},[2467],{"type":45,"value":1742},{"type":40,"tag":652,"props":2469,"children":2470},{"style":1721},[2471],{"type":45,"value":1747},{"type":40,"tag":652,"props":2473,"children":2474},{"style":1721},[2475],{"type":45,"value":1752},{"type":40,"tag":652,"props":2477,"children":2478},{"style":1755},[2479],{"type":45,"value":1758},{"type":40,"tag":652,"props":2481,"children":2482},{"style":1721},[2483],{"type":45,"value":1742},{"type":40,"tag":652,"props":2485,"children":2486},{"style":1721},[2487],{"type":45,"value":1990},{"type":40,"tag":652,"props":2489,"children":2490},{"style":1721},[2491],{"type":45,"value":1752},{"type":40,"tag":652,"props":2493,"children":2494},{"style":1939},[2495],{"type":45,"value":1779},{"type":40,"tag":652,"props":2497,"children":2498},{"style":1721},[2499],{"type":45,"value":1742},{"type":40,"tag":652,"props":2501,"children":2502},{"style":1721},[2503],{"type":45,"value":1747},{"type":40,"tag":652,"props":2505,"children":2506},{"style":1721},[2507],{"type":45,"value":1752},{"type":40,"tag":652,"props":2509,"children":2510},{"style":1755},[2511],{"type":45,"value":1796},{"type":40,"tag":652,"props":2513,"children":2514},{"style":1721},[2515],{"type":45,"value":1742},{"type":40,"tag":652,"props":2517,"children":2518},{"style":1721},[2519],{"type":45,"value":2202},{"type":40,"tag":652,"props":2521,"children":2522},{"class":654,"line":701},[2523],{"type":40,"tag":652,"props":2524,"children":2525},{"style":1721},[2526],{"type":45,"value":2527},"    ]\n",{"type":40,"tag":652,"props":2529,"children":2530},{"class":654,"line":710},[2531],{"type":40,"tag":652,"props":2532,"children":2533},{"style":1721},[2534],{"type":45,"value":2194},{"type":40,"tag":652,"props":2536,"children":2537},{"class":654,"line":719},[2538],{"type":40,"tag":652,"props":2539,"children":2540},{"style":1721},[2541],{"type":45,"value":2202},{"type":40,"tag":48,"props":2543,"children":2544},{},[2545,2547,2552],{"type":45,"value":2546},"The model MUST restrict its tool calls to the subset named in ",{"type":40,"tag":82,"props":2548,"children":2550},{"className":2549},[],[2551],{"type":45,"value":2342},{"type":45,"value":2553},". Servers MUST enforce this as a hard constraint. Tool definitions remain in the model's context, preserving prompt cache.",{"type":40,"tag":184,"props":2555,"children":2556},{},[],{"type":40,"tag":188,"props":2558,"children":2560},{"id":2559},"agentic-loop-pattern",[2561],{"type":45,"value":2562},"Agentic Loop Pattern",{"type":40,"tag":48,"props":2564,"children":2565},{},[2566],{"type":45,"value":2567},"The agentic loop is the core pattern for multi-step, tool-augmented workflows.",{"type":40,"tag":91,"props":2569,"children":2571},{"id":2570},"flow",[2572],{"type":45,"value":2573},"Flow",{"type":40,"tag":641,"props":2575,"children":2579},{"className":2576,"code":2578,"language":45},[2577],"language-text","  Client                     Provider                    Model\n    |                           |                          |\n    |-- POST \u002Fv1\u002Fresponses ---->|                          |\n    |                           |--- prompt to model ----->|\n    |                           |\u003C-- output items ---------|\n    |                           |                          |\n    |            [external tool calls needing               |\n    |             client-supplied results?]                 |\n    |                           |                          |\n    |              YES                                     |\n    |\u003C-- response with --------|                          |\n    |   function_call items     |                          |\n    |                           |                          |\n    |   [client satisfies       |                          |\n    |    tool calls]            |                          |\n    |                           |                          |\n    |-- POST \u002Fv1\u002Fresponses ---->|                          |\n    |   previous_response_id +  |                          |\n    |   function_call_output    |--- prompt + context ---->|\n    |   items in input          |\u003C-- output items ---------|\n    |                           |                          |\n    |              NO: no client-satisfied calls remain     |\n    |\u003C-- completed response ----|                          |\n    |   (may contain message,   |                          |\n    |    reasoning, hosted-tool |                          |\n    |    items, etc.)           |                          |\n",[2580],{"type":40,"tag":82,"props":2581,"children":2582},{"__ignoreMap":646},[2583],{"type":45,"value":2578},{"type":40,"tag":91,"props":2585,"children":2587},{"id":2586},"key-principles",[2588],{"type":45,"value":2589},"Key Principles",{"type":40,"tag":2591,"props":2592,"children":2593},"ol",{},[2594,2611,2621,2638,2662],{"type":40,"tag":102,"props":2595,"children":2596},{},[2597,2602,2604,2609],{"type":40,"tag":61,"props":2598,"children":2599},{},[2600],{"type":45,"value":2601},"Stateless-first iteration",{"type":45,"value":2603}," — Each loop iteration is a new HTTP request. The server reconstructs context from ",{"type":40,"tag":82,"props":2605,"children":2607},{"className":2606},[],[2608],{"type":45,"value":87},{"type":45,"value":2610},". Providers may optionally persist state, but the protocol does not require it.",{"type":40,"tag":102,"props":2612,"children":2613},{},[2614,2619],{"type":40,"tag":61,"props":2615,"children":2616},{},[2617],{"type":45,"value":2618},"Developer controls external tool execution",{"type":45,"value":2620}," — For externally-hosted function tools, the developer decides when to execute, what results to return, and whether to continue. For MCP tools (also externally hosted), execution may happen without first yielding control to the developer.",{"type":40,"tag":102,"props":2622,"children":2623},{},[2624,2629,2631,2636],{"type":40,"tag":61,"props":2625,"children":2626},{},[2627],{"type":45,"value":2628},"Parallel tool calls",{"type":45,"value":2630}," — The model may emit multiple ",{"type":40,"tag":82,"props":2632,"children":2634},{"className":2633},[],[2635],{"type":45,"value":308},{"type":45,"value":2637}," items in a single response. Execute all of them and return all results in one follow-up request.",{"type":40,"tag":102,"props":2639,"children":2640},{},[2641,2646,2648,2653,2655,2660],{"type":40,"tag":61,"props":2642,"children":2643},{},[2644],{"type":45,"value":2645},"Loop termination",{"type":45,"value":2647}," — The loop ends when no client-satisfied external tool calls remain in the response. The final response may contain not just ",{"type":40,"tag":82,"props":2649,"children":2651},{"className":2650},[],[2652],{"type":45,"value":451},{"type":45,"value":2654}," items but also ",{"type":40,"tag":82,"props":2656,"children":2658},{"className":2657},[],[2659],{"type":45,"value":464},{"type":45,"value":2661}," items, internally-hosted tool items, and other non-message output items.",{"type":40,"tag":102,"props":2663,"children":2664},{},[2665,2670],{"type":40,"tag":61,"props":2666,"children":2667},{},[2668],{"type":45,"value":2669},"Provider handles internal tools",{"type":45,"value":2671}," — For internally-hosted tools, the provider executes within the same request and returns provider-specific item types. No developer loop required.",{"type":40,"tag":91,"props":2673,"children":2675},{"id":2674},"example-multi-tool-agent",[2676],{"type":45,"value":2677},"Example: Multi-Tool Agent",{"type":40,"tag":48,"props":2679,"children":2680},{},[2681],{"type":40,"tag":61,"props":2682,"children":2683},{},[2684],{"type":45,"value":2685},"Turn 1 — Request with tools:",{"type":40,"tag":641,"props":2687,"children":2689},{"className":1709,"code":2688,"language":1711,"meta":646,"style":646},"{\n  \"model\": \"provider\u002Fmodel-name\",\n  \"input\": [{\"type\": \"message\", \"role\": \"user\", \"content\": \"Compare the weather in Paris and Tokyo.\"}],\n  \"tools\": [{\"type\": \"function\", \"name\": \"get_weather\", \"description\": \"Get current weather for a city\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\"}}, \"required\": [\"location\"]}}]\n}\n",[2690],{"type":40,"tag":82,"props":2691,"children":2692},{"__ignoreMap":646},[2693,2700,2737,2862,3145],{"type":40,"tag":652,"props":2694,"children":2695},{"class":654,"line":655},[2696],{"type":40,"tag":652,"props":2697,"children":2698},{"style":1721},[2699],{"type":45,"value":1724},{"type":40,"tag":652,"props":2701,"children":2702},{"class":654,"line":664},[2703,2707,2712,2716,2720,2724,2729,2733],{"type":40,"tag":652,"props":2704,"children":2705},{"style":1721},[2706],{"type":45,"value":1732},{"type":40,"tag":652,"props":2708,"children":2709},{"style":1735},[2710],{"type":45,"value":2711},"model",{"type":40,"tag":652,"props":2713,"children":2714},{"style":1721},[2715],{"type":45,"value":1742},{"type":40,"tag":652,"props":2717,"children":2718},{"style":1721},[2719],{"type":45,"value":1747},{"type":40,"tag":652,"props":2721,"children":2722},{"style":1721},[2723],{"type":45,"value":1752},{"type":40,"tag":652,"props":2725,"children":2726},{"style":1755},[2727],{"type":45,"value":2728},"provider\u002Fmodel-name",{"type":40,"tag":652,"props":2730,"children":2731},{"style":1721},[2732],{"type":45,"value":1742},{"type":40,"tag":652,"props":2734,"children":2735},{"style":1721},[2736],{"type":45,"value":1767},{"type":40,"tag":652,"props":2738,"children":2739},{"class":654,"line":673},[2740,2744,2749,2753,2757,2762,2766,2770,2774,2778,2782,2786,2790,2794,2798,2803,2807,2811,2815,2819,2823,2827,2831,2836,2840,2844,2848,2853,2857],{"type":40,"tag":652,"props":2741,"children":2742},{"style":1721},[2743],{"type":45,"value":1732},{"type":40,"tag":652,"props":2745,"children":2746},{"style":1735},[2747],{"type":45,"value":2748},"input",{"type":40,"tag":652,"props":2750,"children":2751},{"style":1721},[2752],{"type":45,"value":1742},{"type":40,"tag":652,"props":2754,"children":2755},{"style":1721},[2756],{"type":45,"value":1747},{"type":40,"tag":652,"props":2758,"children":2759},{"style":1721},[2760],{"type":45,"value":2761}," [{",{"type":40,"tag":652,"props":2763,"children":2764},{"style":1721},[2765],{"type":45,"value":1742},{"type":40,"tag":652,"props":2767,"children":2768},{"style":1877},[2769],{"type":45,"value":144},{"type":40,"tag":652,"props":2771,"children":2772},{"style":1721},[2773],{"type":45,"value":1742},{"type":40,"tag":652,"props":2775,"children":2776},{"style":1721},[2777],{"type":45,"value":1747},{"type":40,"tag":652,"props":2779,"children":2780},{"style":1721},[2781],{"type":45,"value":1752},{"type":40,"tag":652,"props":2783,"children":2784},{"style":1755},[2785],{"type":45,"value":451},{"type":40,"tag":652,"props":2787,"children":2788},{"style":1721},[2789],{"type":45,"value":1742},{"type":40,"tag":652,"props":2791,"children":2792},{"style":1721},[2793],{"type":45,"value":1990},{"type":40,"tag":652,"props":2795,"children":2796},{"style":1721},[2797],{"type":45,"value":1752},{"type":40,"tag":652,"props":2799,"children":2800},{"style":1877},[2801],{"type":45,"value":2802},"role",{"type":40,"tag":652,"props":2804,"children":2805},{"style":1721},[2806],{"type":45,"value":1742},{"type":40,"tag":652,"props":2808,"children":2809},{"style":1721},[2810],{"type":45,"value":1747},{"type":40,"tag":652,"props":2812,"children":2813},{"style":1721},[2814],{"type":45,"value":1752},{"type":40,"tag":652,"props":2816,"children":2817},{"style":1755},[2818],{"type":45,"value":570},{"type":40,"tag":652,"props":2820,"children":2821},{"style":1721},[2822],{"type":45,"value":1742},{"type":40,"tag":652,"props":2824,"children":2825},{"style":1721},[2826],{"type":45,"value":1990},{"type":40,"tag":652,"props":2828,"children":2829},{"style":1721},[2830],{"type":45,"value":1752},{"type":40,"tag":652,"props":2832,"children":2833},{"style":1877},[2834],{"type":45,"value":2835},"content",{"type":40,"tag":652,"props":2837,"children":2838},{"style":1721},[2839],{"type":45,"value":1742},{"type":40,"tag":652,"props":2841,"children":2842},{"style":1721},[2843],{"type":45,"value":1747},{"type":40,"tag":652,"props":2845,"children":2846},{"style":1721},[2847],{"type":45,"value":1752},{"type":40,"tag":652,"props":2849,"children":2850},{"style":1755},[2851],{"type":45,"value":2852},"Compare the weather in Paris and Tokyo.",{"type":40,"tag":652,"props":2854,"children":2855},{"style":1721},[2856],{"type":45,"value":1742},{"type":40,"tag":652,"props":2858,"children":2859},{"style":1721},[2860],{"type":45,"value":2861},"}],\n",{"type":40,"tag":652,"props":2863,"children":2864},{"class":654,"line":682},[2865,2869,2873,2877,2881,2885,2889,2893,2897,2901,2905,2909,2913,2917,2921,2925,2929,2933,2937,2941,2945,2949,2953,2957,2961,2965,2969,2974,2978,2982,2986,2990,2994,2998,3002,3006,3010,3014,3018,3022,3026,3030,3034,3038,3042,3046,3050,3054,3058,3062,3066,3070,3074,3078,3083,3087,3091,3095,3099,3103,3108,3112,3116,3120,3124,3128,3132,3136,3140],{"type":40,"tag":652,"props":2866,"children":2867},{"style":1721},[2868],{"type":45,"value":1732},{"type":40,"tag":652,"props":2870,"children":2871},{"style":1735},[2872],{"type":45,"value":1658},{"type":40,"tag":652,"props":2874,"children":2875},{"style":1721},[2876],{"type":45,"value":1742},{"type":40,"tag":652,"props":2878,"children":2879},{"style":1721},[2880],{"type":45,"value":1747},{"type":40,"tag":652,"props":2882,"children":2883},{"style":1721},[2884],{"type":45,"value":2761},{"type":40,"tag":652,"props":2886,"children":2887},{"style":1721},[2888],{"type":45,"value":1742},{"type":40,"tag":652,"props":2890,"children":2891},{"style":1877},[2892],{"type":45,"value":144},{"type":40,"tag":652,"props":2894,"children":2895},{"style":1721},[2896],{"type":45,"value":1742},{"type":40,"tag":652,"props":2898,"children":2899},{"style":1721},[2900],{"type":45,"value":1747},{"type":40,"tag":652,"props":2902,"children":2903},{"style":1721},[2904],{"type":45,"value":1752},{"type":40,"tag":652,"props":2906,"children":2907},{"style":1755},[2908],{"type":45,"value":1758},{"type":40,"tag":652,"props":2910,"children":2911},{"style":1721},[2912],{"type":45,"value":1742},{"type":40,"tag":652,"props":2914,"children":2915},{"style":1721},[2916],{"type":45,"value":1990},{"type":40,"tag":652,"props":2918,"children":2919},{"style":1721},[2920],{"type":45,"value":1752},{"type":40,"tag":652,"props":2922,"children":2923},{"style":1877},[2924],{"type":45,"value":1779},{"type":40,"tag":652,"props":2926,"children":2927},{"style":1721},[2928],{"type":45,"value":1742},{"type":40,"tag":652,"props":2930,"children":2931},{"style":1721},[2932],{"type":45,"value":1747},{"type":40,"tag":652,"props":2934,"children":2935},{"style":1721},[2936],{"type":45,"value":1752},{"type":40,"tag":652,"props":2938,"children":2939},{"style":1755},[2940],{"type":45,"value":1796},{"type":40,"tag":652,"props":2942,"children":2943},{"style":1721},[2944],{"type":45,"value":1742},{"type":40,"tag":652,"props":2946,"children":2947},{"style":1721},[2948],{"type":45,"value":1990},{"type":40,"tag":652,"props":2950,"children":2951},{"style":1721},[2952],{"type":45,"value":1752},{"type":40,"tag":652,"props":2954,"children":2955},{"style":1877},[2956],{"type":45,"value":1816},{"type":40,"tag":652,"props":2958,"children":2959},{"style":1721},[2960],{"type":45,"value":1742},{"type":40,"tag":652,"props":2962,"children":2963},{"style":1721},[2964],{"type":45,"value":1747},{"type":40,"tag":652,"props":2966,"children":2967},{"style":1721},[2968],{"type":45,"value":1752},{"type":40,"tag":652,"props":2970,"children":2971},{"style":1755},[2972],{"type":45,"value":2973},"Get current weather for a city",{"type":40,"tag":652,"props":2975,"children":2976},{"style":1721},[2977],{"type":45,"value":1742},{"type":40,"tag":652,"props":2979,"children":2980},{"style":1721},[2981],{"type":45,"value":1990},{"type":40,"tag":652,"props":2983,"children":2984},{"style":1721},[2985],{"type":45,"value":1752},{"type":40,"tag":652,"props":2987,"children":2988},{"style":1877},[2989],{"type":45,"value":1853},{"type":40,"tag":652,"props":2991,"children":2992},{"style":1721},[2993],{"type":45,"value":1742},{"type":40,"tag":652,"props":2995,"children":2996},{"style":1721},[2997],{"type":45,"value":1747},{"type":40,"tag":652,"props":2999,"children":3000},{"style":1721},[3001],{"type":45,"value":1955},{"type":40,"tag":652,"props":3003,"children":3004},{"style":1721},[3005],{"type":45,"value":1742},{"type":40,"tag":652,"props":3007,"children":3008},{"style":1939},[3009],{"type":45,"value":144},{"type":40,"tag":652,"props":3011,"children":3012},{"style":1721},[3013],{"type":45,"value":1742},{"type":40,"tag":652,"props":3015,"children":3016},{"style":1721},[3017],{"type":45,"value":1747},{"type":40,"tag":652,"props":3019,"children":3020},{"style":1721},[3021],{"type":45,"value":1752},{"type":40,"tag":652,"props":3023,"children":3024},{"style":1755},[3025],{"type":45,"value":1896},{"type":40,"tag":652,"props":3027,"children":3028},{"style":1721},[3029],{"type":45,"value":1742},{"type":40,"tag":652,"props":3031,"children":3032},{"style":1721},[3033],{"type":45,"value":1990},{"type":40,"tag":652,"props":3035,"children":3036},{"style":1721},[3037],{"type":45,"value":1752},{"type":40,"tag":652,"props":3039,"children":3040},{"style":1939},[3041],{"type":45,"value":1916},{"type":40,"tag":652,"props":3043,"children":3044},{"style":1721},[3045],{"type":45,"value":1742},{"type":40,"tag":652,"props":3047,"children":3048},{"style":1721},[3049],{"type":45,"value":1747},{"type":40,"tag":652,"props":3051,"children":3052},{"style":1721},[3053],{"type":45,"value":1955},{"type":40,"tag":652,"props":3055,"children":3056},{"style":1721},[3057],{"type":45,"value":1742},{"type":40,"tag":652,"props":3059,"children":3060},{"style":1962},[3061],{"type":45,"value":1942},{"type":40,"tag":652,"props":3063,"children":3064},{"style":1721},[3065],{"type":45,"value":1742},{"type":40,"tag":652,"props":3067,"children":3068},{"style":1721},[3069],{"type":45,"value":1747},{"type":40,"tag":652,"props":3071,"children":3072},{"style":1721},[3073],{"type":45,"value":1955},{"type":40,"tag":652,"props":3075,"children":3076},{"style":1721},[3077],{"type":45,"value":1742},{"type":40,"tag":652,"props":3079,"children":3081},{"style":3080},"--shiki-light:#916B53;--shiki-default:#916B53;--shiki-dark:#916B53",[3082],{"type":45,"value":144},{"type":40,"tag":652,"props":3084,"children":3085},{"style":1721},[3086],{"type":45,"value":1742},{"type":40,"tag":652,"props":3088,"children":3089},{"style":1721},[3090],{"type":45,"value":1747},{"type":40,"tag":652,"props":3092,"children":3093},{"style":1721},[3094],{"type":45,"value":1752},{"type":40,"tag":652,"props":3096,"children":3097},{"style":1755},[3098],{"type":45,"value":1981},{"type":40,"tag":652,"props":3100,"children":3101},{"style":1721},[3102],{"type":45,"value":1742},{"type":40,"tag":652,"props":3104,"children":3105},{"style":1721},[3106],{"type":45,"value":3107},"}},",{"type":40,"tag":652,"props":3109,"children":3110},{"style":1721},[3111],{"type":45,"value":1752},{"type":40,"tag":652,"props":3113,"children":3114},{"style":1939},[3115],{"type":45,"value":2157},{"type":40,"tag":652,"props":3117,"children":3118},{"style":1721},[3119],{"type":45,"value":1742},{"type":40,"tag":652,"props":3121,"children":3122},{"style":1721},[3123],{"type":45,"value":1747},{"type":40,"tag":652,"props":3125,"children":3126},{"style":1721},[3127],{"type":45,"value":2102},{"type":40,"tag":652,"props":3129,"children":3130},{"style":1721},[3131],{"type":45,"value":1742},{"type":40,"tag":652,"props":3133,"children":3134},{"style":1755},[3135],{"type":45,"value":1942},{"type":40,"tag":652,"props":3137,"children":3138},{"style":1721},[3139],{"type":45,"value":1742},{"type":40,"tag":652,"props":3141,"children":3142},{"style":1721},[3143],{"type":45,"value":3144},"]}}]\n",{"type":40,"tag":652,"props":3146,"children":3147},{"class":654,"line":691},[3148],{"type":40,"tag":652,"props":3149,"children":3150},{"style":1721},[3151],{"type":45,"value":2202},{"type":40,"tag":48,"props":3153,"children":3154},{},[3155],{"type":40,"tag":61,"props":3156,"children":3157},{},[3158],{"type":45,"value":3159},"Turn 1 — Model emits two parallel function_call items:",{"type":40,"tag":641,"props":3161,"children":3163},{"className":1709,"code":3162,"language":1711,"meta":646,"style":646},"{\n  \"id\": \"resp_100\",\n  \"status\": \"completed\",\n  \"output\": [\n    {\"id\": \"item_101\", \"type\": \"function_call\", \"name\": \"get_weather\", \"call_id\": \"call_paris\", \"arguments\": \"{\\\"location\\\":\\\"Paris\\\"}\", \"status\": \"completed\"},\n    {\"id\": \"item_102\", \"type\": \"function_call\", \"name\": \"get_weather\", \"call_id\": \"call_tokyo\", \"arguments\": \"{\\\"location\\\":\\\"Tokyo\\\"}\", \"status\": \"completed\"}\n  ]\n}\n",[3164],{"type":40,"tag":82,"props":3165,"children":3166},{"__ignoreMap":646},[3167,3174,3210,3245,3268,3508,3742,3750],{"type":40,"tag":652,"props":3168,"children":3169},{"class":654,"line":655},[3170],{"type":40,"tag":652,"props":3171,"children":3172},{"style":1721},[3173],{"type":45,"value":1724},{"type":40,"tag":652,"props":3175,"children":3176},{"class":654,"line":664},[3177,3181,3185,3189,3193,3197,3202,3206],{"type":40,"tag":652,"props":3178,"children":3179},{"style":1721},[3180],{"type":45,"value":1732},{"type":40,"tag":652,"props":3182,"children":3183},{"style":1735},[3184],{"type":45,"value":429},{"type":40,"tag":652,"props":3186,"children":3187},{"style":1721},[3188],{"type":45,"value":1742},{"type":40,"tag":652,"props":3190,"children":3191},{"style":1721},[3192],{"type":45,"value":1747},{"type":40,"tag":652,"props":3194,"children":3195},{"style":1721},[3196],{"type":45,"value":1752},{"type":40,"tag":652,"props":3198,"children":3199},{"style":1755},[3200],{"type":45,"value":3201},"resp_100",{"type":40,"tag":652,"props":3203,"children":3204},{"style":1721},[3205],{"type":45,"value":1742},{"type":40,"tag":652,"props":3207,"children":3208},{"style":1721},[3209],{"type":45,"value":1767},{"type":40,"tag":652,"props":3211,"children":3212},{"class":654,"line":673},[3213,3217,3221,3225,3229,3233,3237,3241],{"type":40,"tag":652,"props":3214,"children":3215},{"style":1721},[3216],{"type":45,"value":1732},{"type":40,"tag":652,"props":3218,"children":3219},{"style":1735},[3220],{"type":45,"value":443},{"type":40,"tag":652,"props":3222,"children":3223},{"style":1721},[3224],{"type":45,"value":1742},{"type":40,"tag":652,"props":3226,"children":3227},{"style":1721},[3228],{"type":45,"value":1747},{"type":40,"tag":652,"props":3230,"children":3231},{"style":1721},[3232],{"type":45,"value":1752},{"type":40,"tag":652,"props":3234,"children":3235},{"style":1755},[3236],{"type":45,"value":1329},{"type":40,"tag":652,"props":3238,"children":3239},{"style":1721},[3240],{"type":45,"value":1742},{"type":40,"tag":652,"props":3242,"children":3243},{"style":1721},[3244],{"type":45,"value":1767},{"type":40,"tag":652,"props":3246,"children":3247},{"class":654,"line":682},[3248,3252,3256,3260,3264],{"type":40,"tag":652,"props":3249,"children":3250},{"style":1721},[3251],{"type":45,"value":1732},{"type":40,"tag":652,"props":3253,"children":3254},{"style":1735},[3255],{"type":45,"value":540},{"type":40,"tag":652,"props":3257,"children":3258},{"style":1721},[3259],{"type":45,"value":1742},{"type":40,"tag":652,"props":3261,"children":3262},{"style":1721},[3263],{"type":45,"value":1747},{"type":40,"tag":652,"props":3265,"children":3266},{"style":1721},[3267],{"type":45,"value":2447},{"type":40,"tag":652,"props":3269,"children":3270},{"class":654,"line":691},[3271,3276,3280,3284,3288,3292,3296,3301,3305,3309,3313,3317,3321,3325,3329,3333,3337,3341,3345,3349,3353,3357,3361,3365,3369,3373,3377,3381,3385,3389,3393,3398,3402,3406,3410,3415,3419,3423,3427,3432,3438,3442,3446,3450,3454,3459,3463,3468,3472,3476,3480,3484,3488,3492,3496,3500,3504],{"type":40,"tag":652,"props":3272,"children":3273},{"style":1721},[3274],{"type":45,"value":3275},"    {",{"type":40,"tag":652,"props":3277,"children":3278},{"style":1721},[3279],{"type":45,"value":1742},{"type":40,"tag":652,"props":3281,"children":3282},{"style":1877},[3283],{"type":45,"value":429},{"type":40,"tag":652,"props":3285,"children":3286},{"style":1721},[3287],{"type":45,"value":1742},{"type":40,"tag":652,"props":3289,"children":3290},{"style":1721},[3291],{"type":45,"value":1747},{"type":40,"tag":652,"props":3293,"children":3294},{"style":1721},[3295],{"type":45,"value":1752},{"type":40,"tag":652,"props":3297,"children":3298},{"style":1755},[3299],{"type":45,"value":3300},"item_101",{"type":40,"tag":652,"props":3302,"children":3303},{"style":1721},[3304],{"type":45,"value":1742},{"type":40,"tag":652,"props":3306,"children":3307},{"style":1721},[3308],{"type":45,"value":1990},{"type":40,"tag":652,"props":3310,"children":3311},{"style":1721},[3312],{"type":45,"value":1752},{"type":40,"tag":652,"props":3314,"children":3315},{"style":1877},[3316],{"type":45,"value":144},{"type":40,"tag":652,"props":3318,"children":3319},{"style":1721},[3320],{"type":45,"value":1742},{"type":40,"tag":652,"props":3322,"children":3323},{"style":1721},[3324],{"type":45,"value":1747},{"type":40,"tag":652,"props":3326,"children":3327},{"style":1721},[3328],{"type":45,"value":1752},{"type":40,"tag":652,"props":3330,"children":3331},{"style":1755},[3332],{"type":45,"value":308},{"type":40,"tag":652,"props":3334,"children":3335},{"style":1721},[3336],{"type":45,"value":1742},{"type":40,"tag":652,"props":3338,"children":3339},{"style":1721},[3340],{"type":45,"value":1990},{"type":40,"tag":652,"props":3342,"children":3343},{"style":1721},[3344],{"type":45,"value":1752},{"type":40,"tag":652,"props":3346,"children":3347},{"style":1877},[3348],{"type":45,"value":1779},{"type":40,"tag":652,"props":3350,"children":3351},{"style":1721},[3352],{"type":45,"value":1742},{"type":40,"tag":652,"props":3354,"children":3355},{"style":1721},[3356],{"type":45,"value":1747},{"type":40,"tag":652,"props":3358,"children":3359},{"style":1721},[3360],{"type":45,"value":1752},{"type":40,"tag":652,"props":3362,"children":3363},{"style":1755},[3364],{"type":45,"value":1796},{"type":40,"tag":652,"props":3366,"children":3367},{"style":1721},[3368],{"type":45,"value":1742},{"type":40,"tag":652,"props":3370,"children":3371},{"style":1721},[3372],{"type":45,"value":1990},{"type":40,"tag":652,"props":3374,"children":3375},{"style":1721},[3376],{"type":45,"value":1752},{"type":40,"tag":652,"props":3378,"children":3379},{"style":1877},[3380],{"type":45,"value":533},{"type":40,"tag":652,"props":3382,"children":3383},{"style":1721},[3384],{"type":45,"value":1742},{"type":40,"tag":652,"props":3386,"children":3387},{"style":1721},[3388],{"type":45,"value":1747},{"type":40,"tag":652,"props":3390,"children":3391},{"style":1721},[3392],{"type":45,"value":1752},{"type":40,"tag":652,"props":3394,"children":3395},{"style":1755},[3396],{"type":45,"value":3397},"call_paris",{"type":40,"tag":652,"props":3399,"children":3400},{"style":1721},[3401],{"type":45,"value":1742},{"type":40,"tag":652,"props":3403,"children":3404},{"style":1721},[3405],{"type":45,"value":1990},{"type":40,"tag":652,"props":3407,"children":3408},{"style":1721},[3409],{"type":45,"value":1752},{"type":40,"tag":652,"props":3411,"children":3412},{"style":1877},[3413],{"type":45,"value":3414},"arguments",{"type":40,"tag":652,"props":3416,"children":3417},{"style":1721},[3418],{"type":45,"value":1742},{"type":40,"tag":652,"props":3420,"children":3421},{"style":1721},[3422],{"type":45,"value":1747},{"type":40,"tag":652,"props":3424,"children":3425},{"style":1721},[3426],{"type":45,"value":1752},{"type":40,"tag":652,"props":3428,"children":3429},{"style":1755},[3430],{"type":45,"value":3431},"{",{"type":40,"tag":652,"props":3433,"children":3435},{"style":3434},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[3436],{"type":45,"value":3437},"\\\"",{"type":40,"tag":652,"props":3439,"children":3440},{"style":1755},[3441],{"type":45,"value":1942},{"type":40,"tag":652,"props":3443,"children":3444},{"style":3434},[3445],{"type":45,"value":3437},{"type":40,"tag":652,"props":3447,"children":3448},{"style":1755},[3449],{"type":45,"value":1747},{"type":40,"tag":652,"props":3451,"children":3452},{"style":3434},[3453],{"type":45,"value":3437},{"type":40,"tag":652,"props":3455,"children":3456},{"style":1755},[3457],{"type":45,"value":3458},"Paris",{"type":40,"tag":652,"props":3460,"children":3461},{"style":3434},[3462],{"type":45,"value":3437},{"type":40,"tag":652,"props":3464,"children":3465},{"style":1755},[3466],{"type":45,"value":3467},"}",{"type":40,"tag":652,"props":3469,"children":3470},{"style":1721},[3471],{"type":45,"value":1742},{"type":40,"tag":652,"props":3473,"children":3474},{"style":1721},[3475],{"type":45,"value":1990},{"type":40,"tag":652,"props":3477,"children":3478},{"style":1721},[3479],{"type":45,"value":1752},{"type":40,"tag":652,"props":3481,"children":3482},{"style":1877},[3483],{"type":45,"value":443},{"type":40,"tag":652,"props":3485,"children":3486},{"style":1721},[3487],{"type":45,"value":1742},{"type":40,"tag":652,"props":3489,"children":3490},{"style":1721},[3491],{"type":45,"value":1747},{"type":40,"tag":652,"props":3493,"children":3494},{"style":1721},[3495],{"type":45,"value":1752},{"type":40,"tag":652,"props":3497,"children":3498},{"style":1755},[3499],{"type":45,"value":1329},{"type":40,"tag":652,"props":3501,"children":3502},{"style":1721},[3503],{"type":45,"value":1742},{"type":40,"tag":652,"props":3505,"children":3506},{"style":1721},[3507],{"type":45,"value":2024},{"type":40,"tag":652,"props":3509,"children":3510},{"class":654,"line":701},[3511,3515,3519,3523,3527,3531,3535,3540,3544,3548,3552,3556,3560,3564,3568,3572,3576,3580,3584,3588,3592,3596,3600,3604,3608,3612,3616,3620,3624,3628,3632,3637,3641,3645,3649,3653,3657,3661,3665,3669,3673,3677,3681,3685,3689,3694,3698,3702,3706,3710,3714,3718,3722,3726,3730,3734,3738],{"type":40,"tag":652,"props":3512,"children":3513},{"style":1721},[3514],{"type":45,"value":3275},{"type":40,"tag":652,"props":3516,"children":3517},{"style":1721},[3518],{"type":45,"value":1742},{"type":40,"tag":652,"props":3520,"children":3521},{"style":1877},[3522],{"type":45,"value":429},{"type":40,"tag":652,"props":3524,"children":3525},{"style":1721},[3526],{"type":45,"value":1742},{"type":40,"tag":652,"props":3528,"children":3529},{"style":1721},[3530],{"type":45,"value":1747},{"type":40,"tag":652,"props":3532,"children":3533},{"style":1721},[3534],{"type":45,"value":1752},{"type":40,"tag":652,"props":3536,"children":3537},{"style":1755},[3538],{"type":45,"value":3539},"item_102",{"type":40,"tag":652,"props":3541,"children":3542},{"style":1721},[3543],{"type":45,"value":1742},{"type":40,"tag":652,"props":3545,"children":3546},{"style":1721},[3547],{"type":45,"value":1990},{"type":40,"tag":652,"props":3549,"children":3550},{"style":1721},[3551],{"type":45,"value":1752},{"type":40,"tag":652,"props":3553,"children":3554},{"style":1877},[3555],{"type":45,"value":144},{"type":40,"tag":652,"props":3557,"children":3558},{"style":1721},[3559],{"type":45,"value":1742},{"type":40,"tag":652,"props":3561,"children":3562},{"style":1721},[3563],{"type":45,"value":1747},{"type":40,"tag":652,"props":3565,"children":3566},{"style":1721},[3567],{"type":45,"value":1752},{"type":40,"tag":652,"props":3569,"children":3570},{"style":1755},[3571],{"type":45,"value":308},{"type":40,"tag":652,"props":3573,"children":3574},{"style":1721},[3575],{"type":45,"value":1742},{"type":40,"tag":652,"props":3577,"children":3578},{"style":1721},[3579],{"type":45,"value":1990},{"type":40,"tag":652,"props":3581,"children":3582},{"style":1721},[3583],{"type":45,"value":1752},{"type":40,"tag":652,"props":3585,"children":3586},{"style":1877},[3587],{"type":45,"value":1779},{"type":40,"tag":652,"props":3589,"children":3590},{"style":1721},[3591],{"type":45,"value":1742},{"type":40,"tag":652,"props":3593,"children":3594},{"style":1721},[3595],{"type":45,"value":1747},{"type":40,"tag":652,"props":3597,"children":3598},{"style":1721},[3599],{"type":45,"value":1752},{"type":40,"tag":652,"props":3601,"children":3602},{"style":1755},[3603],{"type":45,"value":1796},{"type":40,"tag":652,"props":3605,"children":3606},{"style":1721},[3607],{"type":45,"value":1742},{"type":40,"tag":652,"props":3609,"children":3610},{"style":1721},[3611],{"type":45,"value":1990},{"type":40,"tag":652,"props":3613,"children":3614},{"style":1721},[3615],{"type":45,"value":1752},{"type":40,"tag":652,"props":3617,"children":3618},{"style":1877},[3619],{"type":45,"value":533},{"type":40,"tag":652,"props":3621,"children":3622},{"style":1721},[3623],{"type":45,"value":1742},{"type":40,"tag":652,"props":3625,"children":3626},{"style":1721},[3627],{"type":45,"value":1747},{"type":40,"tag":652,"props":3629,"children":3630},{"style":1721},[3631],{"type":45,"value":1752},{"type":40,"tag":652,"props":3633,"children":3634},{"style":1755},[3635],{"type":45,"value":3636},"call_tokyo",{"type":40,"tag":652,"props":3638,"children":3639},{"style":1721},[3640],{"type":45,"value":1742},{"type":40,"tag":652,"props":3642,"children":3643},{"style":1721},[3644],{"type":45,"value":1990},{"type":40,"tag":652,"props":3646,"children":3647},{"style":1721},[3648],{"type":45,"value":1752},{"type":40,"tag":652,"props":3650,"children":3651},{"style":1877},[3652],{"type":45,"value":3414},{"type":40,"tag":652,"props":3654,"children":3655},{"style":1721},[3656],{"type":45,"value":1742},{"type":40,"tag":652,"props":3658,"children":3659},{"style":1721},[3660],{"type":45,"value":1747},{"type":40,"tag":652,"props":3662,"children":3663},{"style":1721},[3664],{"type":45,"value":1752},{"type":40,"tag":652,"props":3666,"children":3667},{"style":1755},[3668],{"type":45,"value":3431},{"type":40,"tag":652,"props":3670,"children":3671},{"style":3434},[3672],{"type":45,"value":3437},{"type":40,"tag":652,"props":3674,"children":3675},{"style":1755},[3676],{"type":45,"value":1942},{"type":40,"tag":652,"props":3678,"children":3679},{"style":3434},[3680],{"type":45,"value":3437},{"type":40,"tag":652,"props":3682,"children":3683},{"style":1755},[3684],{"type":45,"value":1747},{"type":40,"tag":652,"props":3686,"children":3687},{"style":3434},[3688],{"type":45,"value":3437},{"type":40,"tag":652,"props":3690,"children":3691},{"style":1755},[3692],{"type":45,"value":3693},"Tokyo",{"type":40,"tag":652,"props":3695,"children":3696},{"style":3434},[3697],{"type":45,"value":3437},{"type":40,"tag":652,"props":3699,"children":3700},{"style":1755},[3701],{"type":45,"value":3467},{"type":40,"tag":652,"props":3703,"children":3704},{"style":1721},[3705],{"type":45,"value":1742},{"type":40,"tag":652,"props":3707,"children":3708},{"style":1721},[3709],{"type":45,"value":1990},{"type":40,"tag":652,"props":3711,"children":3712},{"style":1721},[3713],{"type":45,"value":1752},{"type":40,"tag":652,"props":3715,"children":3716},{"style":1877},[3717],{"type":45,"value":443},{"type":40,"tag":652,"props":3719,"children":3720},{"style":1721},[3721],{"type":45,"value":1742},{"type":40,"tag":652,"props":3723,"children":3724},{"style":1721},[3725],{"type":45,"value":1747},{"type":40,"tag":652,"props":3727,"children":3728},{"style":1721},[3729],{"type":45,"value":1752},{"type":40,"tag":652,"props":3731,"children":3732},{"style":1755},[3733],{"type":45,"value":1329},{"type":40,"tag":652,"props":3735,"children":3736},{"style":1721},[3737],{"type":45,"value":1742},{"type":40,"tag":652,"props":3739,"children":3740},{"style":1721},[3741],{"type":45,"value":2202},{"type":40,"tag":652,"props":3743,"children":3744},{"class":654,"line":710},[3745],{"type":40,"tag":652,"props":3746,"children":3747},{"style":1721},[3748],{"type":45,"value":3749},"  ]\n",{"type":40,"tag":652,"props":3751,"children":3752},{"class":654,"line":719},[3753],{"type":40,"tag":652,"props":3754,"children":3755},{"style":1721},[3756],{"type":45,"value":2202},{"type":40,"tag":48,"props":3758,"children":3759},{},[3760],{"type":40,"tag":61,"props":3761,"children":3762},{},[3763],{"type":45,"value":3764},"Turn 2 — Developer returns tool results:",{"type":40,"tag":641,"props":3766,"children":3768},{"className":1709,"code":3767,"language":1711,"meta":646,"style":646},"{\n  \"model\": \"provider\u002Fmodel-name\",\n  \"previous_response_id\": \"resp_100\",\n  \"input\": [\n    {\"type\": \"function_call_output\", \"call_id\": \"call_paris\", \"output\": \"{\\\"temperature\\\":18,\\\"condition\\\":\\\"partly cloudy\\\"}\"},\n    {\"type\": \"function_call_output\", \"call_id\": \"call_tokyo\", \"output\": \"{\\\"temperature\\\":24,\\\"condition\\\":\\\"sunny\\\"}\"}\n  ],\n  \"tools\": [...]\n}\n",[3769],{"type":40,"tag":82,"props":3770,"children":3771},{"__ignoreMap":646},[3772,3779,3814,3849,3872,4027,4180,4188,4220],{"type":40,"tag":652,"props":3773,"children":3774},{"class":654,"line":655},[3775],{"type":40,"tag":652,"props":3776,"children":3777},{"style":1721},[3778],{"type":45,"value":1724},{"type":40,"tag":652,"props":3780,"children":3781},{"class":654,"line":664},[3782,3786,3790,3794,3798,3802,3806,3810],{"type":40,"tag":652,"props":3783,"children":3784},{"style":1721},[3785],{"type":45,"value":1732},{"type":40,"tag":652,"props":3787,"children":3788},{"style":1735},[3789],{"type":45,"value":2711},{"type":40,"tag":652,"props":3791,"children":3792},{"style":1721},[3793],{"type":45,"value":1742},{"type":40,"tag":652,"props":3795,"children":3796},{"style":1721},[3797],{"type":45,"value":1747},{"type":40,"tag":652,"props":3799,"children":3800},{"style":1721},[3801],{"type":45,"value":1752},{"type":40,"tag":652,"props":3803,"children":3804},{"style":1755},[3805],{"type":45,"value":2728},{"type":40,"tag":652,"props":3807,"children":3808},{"style":1721},[3809],{"type":45,"value":1742},{"type":40,"tag":652,"props":3811,"children":3812},{"style":1721},[3813],{"type":45,"value":1767},{"type":40,"tag":652,"props":3815,"children":3816},{"class":654,"line":673},[3817,3821,3825,3829,3833,3837,3841,3845],{"type":40,"tag":652,"props":3818,"children":3819},{"style":1721},[3820],{"type":45,"value":1732},{"type":40,"tag":652,"props":3822,"children":3823},{"style":1735},[3824],{"type":45,"value":87},{"type":40,"tag":652,"props":3826,"children":3827},{"style":1721},[3828],{"type":45,"value":1742},{"type":40,"tag":652,"props":3830,"children":3831},{"style":1721},[3832],{"type":45,"value":1747},{"type":40,"tag":652,"props":3834,"children":3835},{"style":1721},[3836],{"type":45,"value":1752},{"type":40,"tag":652,"props":3838,"children":3839},{"style":1755},[3840],{"type":45,"value":3201},{"type":40,"tag":652,"props":3842,"children":3843},{"style":1721},[3844],{"type":45,"value":1742},{"type":40,"tag":652,"props":3846,"children":3847},{"style":1721},[3848],{"type":45,"value":1767},{"type":40,"tag":652,"props":3850,"children":3851},{"class":654,"line":682},[3852,3856,3860,3864,3868],{"type":40,"tag":652,"props":3853,"children":3854},{"style":1721},[3855],{"type":45,"value":1732},{"type":40,"tag":652,"props":3857,"children":3858},{"style":1735},[3859],{"type":45,"value":2748},{"type":40,"tag":652,"props":3861,"children":3862},{"style":1721},[3863],{"type":45,"value":1742},{"type":40,"tag":652,"props":3865,"children":3866},{"style":1721},[3867],{"type":45,"value":1747},{"type":40,"tag":652,"props":3869,"children":3870},{"style":1721},[3871],{"type":45,"value":2447},{"type":40,"tag":652,"props":3873,"children":3874},{"class":654,"line":691},[3875,3879,3883,3887,3891,3895,3899,3903,3907,3911,3915,3919,3923,3927,3931,3935,3939,3943,3947,3951,3955,3959,3963,3967,3971,3976,3980,3985,3989,3994,3998,4002,4006,4011,4015,4019,4023],{"type":40,"tag":652,"props":3876,"children":3877},{"style":1721},[3878],{"type":45,"value":3275},{"type":40,"tag":652,"props":3880,"children":3881},{"style":1721},[3882],{"type":45,"value":1742},{"type":40,"tag":652,"props":3884,"children":3885},{"style":1877},[3886],{"type":45,"value":144},{"type":40,"tag":652,"props":3888,"children":3889},{"style":1721},[3890],{"type":45,"value":1742},{"type":40,"tag":652,"props":3892,"children":3893},{"style":1721},[3894],{"type":45,"value":1747},{"type":40,"tag":652,"props":3896,"children":3897},{"style":1721},[3898],{"type":45,"value":1752},{"type":40,"tag":652,"props":3900,"children":3901},{"style":1755},[3902],{"type":45,"value":525},{"type":40,"tag":652,"props":3904,"children":3905},{"style":1721},[3906],{"type":45,"value":1742},{"type":40,"tag":652,"props":3908,"children":3909},{"style":1721},[3910],{"type":45,"value":1990},{"type":40,"tag":652,"props":3912,"children":3913},{"style":1721},[3914],{"type":45,"value":1752},{"type":40,"tag":652,"props":3916,"children":3917},{"style":1877},[3918],{"type":45,"value":533},{"type":40,"tag":652,"props":3920,"children":3921},{"style":1721},[3922],{"type":45,"value":1742},{"type":40,"tag":652,"props":3924,"children":3925},{"style":1721},[3926],{"type":45,"value":1747},{"type":40,"tag":652,"props":3928,"children":3929},{"style":1721},[3930],{"type":45,"value":1752},{"type":40,"tag":652,"props":3932,"children":3933},{"style":1755},[3934],{"type":45,"value":3397},{"type":40,"tag":652,"props":3936,"children":3937},{"style":1721},[3938],{"type":45,"value":1742},{"type":40,"tag":652,"props":3940,"children":3941},{"style":1721},[3942],{"type":45,"value":1990},{"type":40,"tag":652,"props":3944,"children":3945},{"style":1721},[3946],{"type":45,"value":1752},{"type":40,"tag":652,"props":3948,"children":3949},{"style":1877},[3950],{"type":45,"value":540},{"type":40,"tag":652,"props":3952,"children":3953},{"style":1721},[3954],{"type":45,"value":1742},{"type":40,"tag":652,"props":3956,"children":3957},{"style":1721},[3958],{"type":45,"value":1747},{"type":40,"tag":652,"props":3960,"children":3961},{"style":1721},[3962],{"type":45,"value":1752},{"type":40,"tag":652,"props":3964,"children":3965},{"style":1755},[3966],{"type":45,"value":3431},{"type":40,"tag":652,"props":3968,"children":3969},{"style":3434},[3970],{"type":45,"value":3437},{"type":40,"tag":652,"props":3972,"children":3973},{"style":1755},[3974],{"type":45,"value":3975},"temperature",{"type":40,"tag":652,"props":3977,"children":3978},{"style":3434},[3979],{"type":45,"value":3437},{"type":40,"tag":652,"props":3981,"children":3982},{"style":1755},[3983],{"type":45,"value":3984},":18,",{"type":40,"tag":652,"props":3986,"children":3987},{"style":3434},[3988],{"type":45,"value":3437},{"type":40,"tag":652,"props":3990,"children":3991},{"style":1755},[3992],{"type":45,"value":3993},"condition",{"type":40,"tag":652,"props":3995,"children":3996},{"style":3434},[3997],{"type":45,"value":3437},{"type":40,"tag":652,"props":3999,"children":4000},{"style":1755},[4001],{"type":45,"value":1747},{"type":40,"tag":652,"props":4003,"children":4004},{"style":3434},[4005],{"type":45,"value":3437},{"type":40,"tag":652,"props":4007,"children":4008},{"style":1755},[4009],{"type":45,"value":4010},"partly cloudy",{"type":40,"tag":652,"props":4012,"children":4013},{"style":3434},[4014],{"type":45,"value":3437},{"type":40,"tag":652,"props":4016,"children":4017},{"style":1755},[4018],{"type":45,"value":3467},{"type":40,"tag":652,"props":4020,"children":4021},{"style":1721},[4022],{"type":45,"value":1742},{"type":40,"tag":652,"props":4024,"children":4025},{"style":1721},[4026],{"type":45,"value":2024},{"type":40,"tag":652,"props":4028,"children":4029},{"class":654,"line":701},[4030,4034,4038,4042,4046,4050,4054,4058,4062,4066,4070,4074,4078,4082,4086,4090,4094,4098,4102,4106,4110,4114,4118,4122,4126,4130,4134,4139,4143,4147,4151,4155,4159,4164,4168,4172,4176],{"type":40,"tag":652,"props":4031,"children":4032},{"style":1721},[4033],{"type":45,"value":3275},{"type":40,"tag":652,"props":4035,"children":4036},{"style":1721},[4037],{"type":45,"value":1742},{"type":40,"tag":652,"props":4039,"children":4040},{"style":1877},[4041],{"type":45,"value":144},{"type":40,"tag":652,"props":4043,"children":4044},{"style":1721},[4045],{"type":45,"value":1742},{"type":40,"tag":652,"props":4047,"children":4048},{"style":1721},[4049],{"type":45,"value":1747},{"type":40,"tag":652,"props":4051,"children":4052},{"style":1721},[4053],{"type":45,"value":1752},{"type":40,"tag":652,"props":4055,"children":4056},{"style":1755},[4057],{"type":45,"value":525},{"type":40,"tag":652,"props":4059,"children":4060},{"style":1721},[4061],{"type":45,"value":1742},{"type":40,"tag":652,"props":4063,"children":4064},{"style":1721},[4065],{"type":45,"value":1990},{"type":40,"tag":652,"props":4067,"children":4068},{"style":1721},[4069],{"type":45,"value":1752},{"type":40,"tag":652,"props":4071,"children":4072},{"style":1877},[4073],{"type":45,"value":533},{"type":40,"tag":652,"props":4075,"children":4076},{"style":1721},[4077],{"type":45,"value":1742},{"type":40,"tag":652,"props":4079,"children":4080},{"style":1721},[4081],{"type":45,"value":1747},{"type":40,"tag":652,"props":4083,"children":4084},{"style":1721},[4085],{"type":45,"value":1752},{"type":40,"tag":652,"props":4087,"children":4088},{"style":1755},[4089],{"type":45,"value":3636},{"type":40,"tag":652,"props":4091,"children":4092},{"style":1721},[4093],{"type":45,"value":1742},{"type":40,"tag":652,"props":4095,"children":4096},{"style":1721},[4097],{"type":45,"value":1990},{"type":40,"tag":652,"props":4099,"children":4100},{"style":1721},[4101],{"type":45,"value":1752},{"type":40,"tag":652,"props":4103,"children":4104},{"style":1877},[4105],{"type":45,"value":540},{"type":40,"tag":652,"props":4107,"children":4108},{"style":1721},[4109],{"type":45,"value":1742},{"type":40,"tag":652,"props":4111,"children":4112},{"style":1721},[4113],{"type":45,"value":1747},{"type":40,"tag":652,"props":4115,"children":4116},{"style":1721},[4117],{"type":45,"value":1752},{"type":40,"tag":652,"props":4119,"children":4120},{"style":1755},[4121],{"type":45,"value":3431},{"type":40,"tag":652,"props":4123,"children":4124},{"style":3434},[4125],{"type":45,"value":3437},{"type":40,"tag":652,"props":4127,"children":4128},{"style":1755},[4129],{"type":45,"value":3975},{"type":40,"tag":652,"props":4131,"children":4132},{"style":3434},[4133],{"type":45,"value":3437},{"type":40,"tag":652,"props":4135,"children":4136},{"style":1755},[4137],{"type":45,"value":4138},":24,",{"type":40,"tag":652,"props":4140,"children":4141},{"style":3434},[4142],{"type":45,"value":3437},{"type":40,"tag":652,"props":4144,"children":4145},{"style":1755},[4146],{"type":45,"value":3993},{"type":40,"tag":652,"props":4148,"children":4149},{"style":3434},[4150],{"type":45,"value":3437},{"type":40,"tag":652,"props":4152,"children":4153},{"style":1755},[4154],{"type":45,"value":1747},{"type":40,"tag":652,"props":4156,"children":4157},{"style":3434},[4158],{"type":45,"value":3437},{"type":40,"tag":652,"props":4160,"children":4161},{"style":1755},[4162],{"type":45,"value":4163},"sunny",{"type":40,"tag":652,"props":4165,"children":4166},{"style":3434},[4167],{"type":45,"value":3437},{"type":40,"tag":652,"props":4169,"children":4170},{"style":1755},[4171],{"type":45,"value":3467},{"type":40,"tag":652,"props":4173,"children":4174},{"style":1721},[4175],{"type":45,"value":1742},{"type":40,"tag":652,"props":4177,"children":4178},{"style":1721},[4179],{"type":45,"value":2202},{"type":40,"tag":652,"props":4181,"children":4182},{"class":654,"line":710},[4183],{"type":40,"tag":652,"props":4184,"children":4185},{"style":1721},[4186],{"type":45,"value":4187},"  ],\n",{"type":40,"tag":652,"props":4189,"children":4190},{"class":654,"line":719},[4191,4195,4199,4203,4207,4211,4216],{"type":40,"tag":652,"props":4192,"children":4193},{"style":1721},[4194],{"type":45,"value":1732},{"type":40,"tag":652,"props":4196,"children":4197},{"style":1735},[4198],{"type":45,"value":1658},{"type":40,"tag":652,"props":4200,"children":4201},{"style":1721},[4202],{"type":45,"value":1742},{"type":40,"tag":652,"props":4204,"children":4205},{"style":1721},[4206],{"type":45,"value":1747},{"type":40,"tag":652,"props":4208,"children":4209},{"style":1721},[4210],{"type":45,"value":2102},{"type":40,"tag":652,"props":4212,"children":4213},{"style":3434},[4214],{"type":45,"value":4215},"...",{"type":40,"tag":652,"props":4217,"children":4218},{"style":1721},[4219],{"type":45,"value":2186},{"type":40,"tag":652,"props":4221,"children":4222},{"class":654,"line":728},[4223],{"type":40,"tag":652,"props":4224,"children":4225},{"style":1721},[4226],{"type":45,"value":2202},{"type":40,"tag":48,"props":4228,"children":4229},{},[4230],{"type":40,"tag":61,"props":4231,"children":4232},{},[4233],{"type":45,"value":4234},"Turn 2 — Model synthesizes final answer (no function_call items = loop ends):",{"type":40,"tag":641,"props":4236,"children":4238},{"className":1709,"code":4237,"language":1711,"meta":646,"style":646},"{\n  \"id\": \"resp_101\",\n  \"status\": \"completed\",\n  \"output\": [\n    {\"id\": \"item_200\", \"type\": \"message\", \"role\": \"assistant\", \"status\": \"completed\", \"content\": [{\"type\": \"output_text\", \"text\": \"Paris is currently 18°C and partly cloudy. Tokyo is warmer at 24°C with sunny skies.\"}]}\n  ]\n}\n",[4239],{"type":40,"tag":82,"props":4240,"children":4241},{"__ignoreMap":646},[4242,4249,4285,4320,4343,4566,4573],{"type":40,"tag":652,"props":4243,"children":4244},{"class":654,"line":655},[4245],{"type":40,"tag":652,"props":4246,"children":4247},{"style":1721},[4248],{"type":45,"value":1724},{"type":40,"tag":652,"props":4250,"children":4251},{"class":654,"line":664},[4252,4256,4260,4264,4268,4272,4277,4281],{"type":40,"tag":652,"props":4253,"children":4254},{"style":1721},[4255],{"type":45,"value":1732},{"type":40,"tag":652,"props":4257,"children":4258},{"style":1735},[4259],{"type":45,"value":429},{"type":40,"tag":652,"props":4261,"children":4262},{"style":1721},[4263],{"type":45,"value":1742},{"type":40,"tag":652,"props":4265,"children":4266},{"style":1721},[4267],{"type":45,"value":1747},{"type":40,"tag":652,"props":4269,"children":4270},{"style":1721},[4271],{"type":45,"value":1752},{"type":40,"tag":652,"props":4273,"children":4274},{"style":1755},[4275],{"type":45,"value":4276},"resp_101",{"type":40,"tag":652,"props":4278,"children":4279},{"style":1721},[4280],{"type":45,"value":1742},{"type":40,"tag":652,"props":4282,"children":4283},{"style":1721},[4284],{"type":45,"value":1767},{"type":40,"tag":652,"props":4286,"children":4287},{"class":654,"line":673},[4288,4292,4296,4300,4304,4308,4312,4316],{"type":40,"tag":652,"props":4289,"children":4290},{"style":1721},[4291],{"type":45,"value":1732},{"type":40,"tag":652,"props":4293,"children":4294},{"style":1735},[4295],{"type":45,"value":443},{"type":40,"tag":652,"props":4297,"children":4298},{"style":1721},[4299],{"type":45,"value":1742},{"type":40,"tag":652,"props":4301,"children":4302},{"style":1721},[4303],{"type":45,"value":1747},{"type":40,"tag":652,"props":4305,"children":4306},{"style":1721},[4307],{"type":45,"value":1752},{"type":40,"tag":652,"props":4309,"children":4310},{"style":1755},[4311],{"type":45,"value":1329},{"type":40,"tag":652,"props":4313,"children":4314},{"style":1721},[4315],{"type":45,"value":1742},{"type":40,"tag":652,"props":4317,"children":4318},{"style":1721},[4319],{"type":45,"value":1767},{"type":40,"tag":652,"props":4321,"children":4322},{"class":654,"line":682},[4323,4327,4331,4335,4339],{"type":40,"tag":652,"props":4324,"children":4325},{"style":1721},[4326],{"type":45,"value":1732},{"type":40,"tag":652,"props":4328,"children":4329},{"style":1735},[4330],{"type":45,"value":540},{"type":40,"tag":652,"props":4332,"children":4333},{"style":1721},[4334],{"type":45,"value":1742},{"type":40,"tag":652,"props":4336,"children":4337},{"style":1721},[4338],{"type":45,"value":1747},{"type":40,"tag":652,"props":4340,"children":4341},{"style":1721},[4342],{"type":45,"value":2447},{"type":40,"tag":652,"props":4344,"children":4345},{"class":654,"line":691},[4346,4350,4354,4358,4362,4366,4370,4375,4379,4383,4387,4391,4395,4399,4403,4407,4411,4415,4419,4423,4427,4431,4435,4439,4443,4447,4451,4455,4459,4463,4467,4471,4475,4479,4483,4487,4491,4495,4499,4503,4507,4511,4515,4519,4524,4528,4532,4536,4540,4544,4548,4552,4557,4561],{"type":40,"tag":652,"props":4347,"children":4348},{"style":1721},[4349],{"type":45,"value":3275},{"type":40,"tag":652,"props":4351,"children":4352},{"style":1721},[4353],{"type":45,"value":1742},{"type":40,"tag":652,"props":4355,"children":4356},{"style":1877},[4357],{"type":45,"value":429},{"type":40,"tag":652,"props":4359,"children":4360},{"style":1721},[4361],{"type":45,"value":1742},{"type":40,"tag":652,"props":4363,"children":4364},{"style":1721},[4365],{"type":45,"value":1747},{"type":40,"tag":652,"props":4367,"children":4368},{"style":1721},[4369],{"type":45,"value":1752},{"type":40,"tag":652,"props":4371,"children":4372},{"style":1755},[4373],{"type":45,"value":4374},"item_200",{"type":40,"tag":652,"props":4376,"children":4377},{"style":1721},[4378],{"type":45,"value":1742},{"type":40,"tag":652,"props":4380,"children":4381},{"style":1721},[4382],{"type":45,"value":1990},{"type":40,"tag":652,"props":4384,"children":4385},{"style":1721},[4386],{"type":45,"value":1752},{"type":40,"tag":652,"props":4388,"children":4389},{"style":1877},[4390],{"type":45,"value":144},{"type":40,"tag":652,"props":4392,"children":4393},{"style":1721},[4394],{"type":45,"value":1742},{"type":40,"tag":652,"props":4396,"children":4397},{"style":1721},[4398],{"type":45,"value":1747},{"type":40,"tag":652,"props":4400,"children":4401},{"style":1721},[4402],{"type":45,"value":1752},{"type":40,"tag":652,"props":4404,"children":4405},{"style":1755},[4406],{"type":45,"value":451},{"type":40,"tag":652,"props":4408,"children":4409},{"style":1721},[4410],{"type":45,"value":1742},{"type":40,"tag":652,"props":4412,"children":4413},{"style":1721},[4414],{"type":45,"value":1990},{"type":40,"tag":652,"props":4416,"children":4417},{"style":1721},[4418],{"type":45,"value":1752},{"type":40,"tag":652,"props":4420,"children":4421},{"style":1877},[4422],{"type":45,"value":2802},{"type":40,"tag":652,"props":4424,"children":4425},{"style":1721},[4426],{"type":45,"value":1742},{"type":40,"tag":652,"props":4428,"children":4429},{"style":1721},[4430],{"type":45,"value":1747},{"type":40,"tag":652,"props":4432,"children":4433},{"style":1721},[4434],{"type":45,"value":1752},{"type":40,"tag":652,"props":4436,"children":4437},{"style":1755},[4438],{"type":45,"value":577},{"type":40,"tag":652,"props":4440,"children":4441},{"style":1721},[4442],{"type":45,"value":1742},{"type":40,"tag":652,"props":4444,"children":4445},{"style":1721},[4446],{"type":45,"value":1990},{"type":40,"tag":652,"props":4448,"children":4449},{"style":1721},[4450],{"type":45,"value":1752},{"type":40,"tag":652,"props":4452,"children":4453},{"style":1877},[4454],{"type":45,"value":443},{"type":40,"tag":652,"props":4456,"children":4457},{"style":1721},[4458],{"type":45,"value":1742},{"type":40,"tag":652,"props":4460,"children":4461},{"style":1721},[4462],{"type":45,"value":1747},{"type":40,"tag":652,"props":4464,"children":4465},{"style":1721},[4466],{"type":45,"value":1752},{"type":40,"tag":652,"props":4468,"children":4469},{"style":1755},[4470],{"type":45,"value":1329},{"type":40,"tag":652,"props":4472,"children":4473},{"style":1721},[4474],{"type":45,"value":1742},{"type":40,"tag":652,"props":4476,"children":4477},{"style":1721},[4478],{"type":45,"value":1990},{"type":40,"tag":652,"props":4480,"children":4481},{"style":1721},[4482],{"type":45,"value":1752},{"type":40,"tag":652,"props":4484,"children":4485},{"style":1877},[4486],{"type":45,"value":2835},{"type":40,"tag":652,"props":4488,"children":4489},{"style":1721},[4490],{"type":45,"value":1742},{"type":40,"tag":652,"props":4492,"children":4493},{"style":1721},[4494],{"type":45,"value":1747},{"type":40,"tag":652,"props":4496,"children":4497},{"style":1721},[4498],{"type":45,"value":2761},{"type":40,"tag":652,"props":4500,"children":4501},{"style":1721},[4502],{"type":45,"value":1742},{"type":40,"tag":652,"props":4504,"children":4505},{"style":1939},[4506],{"type":45,"value":144},{"type":40,"tag":652,"props":4508,"children":4509},{"style":1721},[4510],{"type":45,"value":1742},{"type":40,"tag":652,"props":4512,"children":4513},{"style":1721},[4514],{"type":45,"value":1747},{"type":40,"tag":652,"props":4516,"children":4517},{"style":1721},[4518],{"type":45,"value":1752},{"type":40,"tag":652,"props":4520,"children":4521},{"style":1755},[4522],{"type":45,"value":4523},"output_text",{"type":40,"tag":652,"props":4525,"children":4526},{"style":1721},[4527],{"type":45,"value":1742},{"type":40,"tag":652,"props":4529,"children":4530},{"style":1721},[4531],{"type":45,"value":1990},{"type":40,"tag":652,"props":4533,"children":4534},{"style":1721},[4535],{"type":45,"value":1752},{"type":40,"tag":652,"props":4537,"children":4538},{"style":1939},[4539],{"type":45,"value":45},{"type":40,"tag":652,"props":4541,"children":4542},{"style":1721},[4543],{"type":45,"value":1742},{"type":40,"tag":652,"props":4545,"children":4546},{"style":1721},[4547],{"type":45,"value":1747},{"type":40,"tag":652,"props":4549,"children":4550},{"style":1721},[4551],{"type":45,"value":1752},{"type":40,"tag":652,"props":4553,"children":4554},{"style":1755},[4555],{"type":45,"value":4556},"Paris is currently 18°C and partly cloudy. Tokyo is warmer at 24°C with sunny skies.",{"type":40,"tag":652,"props":4558,"children":4559},{"style":1721},[4560],{"type":45,"value":1742},{"type":40,"tag":652,"props":4562,"children":4563},{"style":1721},[4564],{"type":45,"value":4565},"}]}\n",{"type":40,"tag":652,"props":4567,"children":4568},{"class":654,"line":701},[4569],{"type":40,"tag":652,"props":4570,"children":4571},{"style":1721},[4572],{"type":45,"value":3749},{"type":40,"tag":652,"props":4574,"children":4575},{"class":654,"line":710},[4576],{"type":40,"tag":652,"props":4577,"children":4578},{"style":1721},[4579],{"type":45,"value":2202},{"type":40,"tag":91,"props":4581,"children":4583},{"id":4582},"multi-turn-conversations",[4584],{"type":45,"value":4585},"Multi-Turn Conversations",{"type":40,"tag":48,"props":4587,"children":4588},{},[4589,4591,4596],{"type":45,"value":4590},"Multi-turn conversations use ",{"type":40,"tag":82,"props":4592,"children":4594},{"className":4593},[],[4595],{"type":45,"value":87},{"type":45,"value":4597}," to chain context. The server reconstructs the full conversation by walking the response chain (providers may also support server-side persistence as an extension):",{"type":40,"tag":641,"props":4599,"children":4602},{"className":4600,"code":4601,"language":45},[2577],"Server loads: previous_response.input + previous_response.output + new_input\n",[4603],{"type":40,"tag":82,"props":4604,"children":4605},{"__ignoreMap":646},[4606],{"type":45,"value":4601},{"type":40,"tag":641,"props":4608,"children":4610},{"className":1709,"code":4609,"language":1711,"meta":646,"style":646},"\u002F\u002F Turn 1\n{\"model\": \"provider\u002Fmodel-name\", \"input\": [{\"type\": \"message\", \"role\": \"user\", \"content\": \"What is the population of France?\"}]}\n\u002F\u002F Response: {\"id\": \"resp_200\", ...}\n\n\u002F\u002F Turn 2 — references Turn 1\n{\"model\": \"provider\u002Fmodel-name\", \"previous_response_id\": \"resp_200\", \"input\": [{\"type\": \"message\", \"role\": \"user\", \"content\": \"And what about Germany?\"}]}\n",[4611],{"type":40,"tag":82,"props":4612,"children":4613},{"__ignoreMap":646},[4614,4623,4779,4787,4794,4802],{"type":40,"tag":652,"props":4615,"children":4616},{"class":654,"line":655},[4617],{"type":40,"tag":652,"props":4618,"children":4620},{"style":4619},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[4621],{"type":45,"value":4622},"\u002F\u002F Turn 1\n",{"type":40,"tag":652,"props":4624,"children":4625},{"class":654,"line":664},[4626,4630,4634,4638,4642,4646,4650,4654,4658,4662,4666,4670,4674,4678,4682,4686,4690,4694,4698,4702,4706,4710,4714,4718,4722,4726,4730,4734,4738,4742,4746,4750,4754,4758,4762,4766,4771,4775],{"type":40,"tag":652,"props":4627,"children":4628},{"style":1721},[4629],{"type":45,"value":3431},{"type":40,"tag":652,"props":4631,"children":4632},{"style":1721},[4633],{"type":45,"value":1742},{"type":40,"tag":652,"props":4635,"children":4636},{"style":1735},[4637],{"type":45,"value":2711},{"type":40,"tag":652,"props":4639,"children":4640},{"style":1721},[4641],{"type":45,"value":1742},{"type":40,"tag":652,"props":4643,"children":4644},{"style":1721},[4645],{"type":45,"value":1747},{"type":40,"tag":652,"props":4647,"children":4648},{"style":1721},[4649],{"type":45,"value":1752},{"type":40,"tag":652,"props":4651,"children":4652},{"style":1755},[4653],{"type":45,"value":2728},{"type":40,"tag":652,"props":4655,"children":4656},{"style":1721},[4657],{"type":45,"value":1742},{"type":40,"tag":652,"props":4659,"children":4660},{"style":1721},[4661],{"type":45,"value":1990},{"type":40,"tag":652,"props":4663,"children":4664},{"style":1721},[4665],{"type":45,"value":1752},{"type":40,"tag":652,"props":4667,"children":4668},{"style":1735},[4669],{"type":45,"value":2748},{"type":40,"tag":652,"props":4671,"children":4672},{"style":1721},[4673],{"type":45,"value":1742},{"type":40,"tag":652,"props":4675,"children":4676},{"style":1721},[4677],{"type":45,"value":1747},{"type":40,"tag":652,"props":4679,"children":4680},{"style":1721},[4681],{"type":45,"value":2761},{"type":40,"tag":652,"props":4683,"children":4684},{"style":1721},[4685],{"type":45,"value":1742},{"type":40,"tag":652,"props":4687,"children":4688},{"style":1877},[4689],{"type":45,"value":144},{"type":40,"tag":652,"props":4691,"children":4692},{"style":1721},[4693],{"type":45,"value":1742},{"type":40,"tag":652,"props":4695,"children":4696},{"style":1721},[4697],{"type":45,"value":1747},{"type":40,"tag":652,"props":4699,"children":4700},{"style":1721},[4701],{"type":45,"value":1752},{"type":40,"tag":652,"props":4703,"children":4704},{"style":1755},[4705],{"type":45,"value":451},{"type":40,"tag":652,"props":4707,"children":4708},{"style":1721},[4709],{"type":45,"value":1742},{"type":40,"tag":652,"props":4711,"children":4712},{"style":1721},[4713],{"type":45,"value":1990},{"type":40,"tag":652,"props":4715,"children":4716},{"style":1721},[4717],{"type":45,"value":1752},{"type":40,"tag":652,"props":4719,"children":4720},{"style":1877},[4721],{"type":45,"value":2802},{"type":40,"tag":652,"props":4723,"children":4724},{"style":1721},[4725],{"type":45,"value":1742},{"type":40,"tag":652,"props":4727,"children":4728},{"style":1721},[4729],{"type":45,"value":1747},{"type":40,"tag":652,"props":4731,"children":4732},{"style":1721},[4733],{"type":45,"value":1752},{"type":40,"tag":652,"props":4735,"children":4736},{"style":1755},[4737],{"type":45,"value":570},{"type":40,"tag":652,"props":4739,"children":4740},{"style":1721},[4741],{"type":45,"value":1742},{"type":40,"tag":652,"props":4743,"children":4744},{"style":1721},[4745],{"type":45,"value":1990},{"type":40,"tag":652,"props":4747,"children":4748},{"style":1721},[4749],{"type":45,"value":1752},{"type":40,"tag":652,"props":4751,"children":4752},{"style":1877},[4753],{"type":45,"value":2835},{"type":40,"tag":652,"props":4755,"children":4756},{"style":1721},[4757],{"type":45,"value":1742},{"type":40,"tag":652,"props":4759,"children":4760},{"style":1721},[4761],{"type":45,"value":1747},{"type":40,"tag":652,"props":4763,"children":4764},{"style":1721},[4765],{"type":45,"value":1752},{"type":40,"tag":652,"props":4767,"children":4768},{"style":1755},[4769],{"type":45,"value":4770},"What is the population of France?",{"type":40,"tag":652,"props":4772,"children":4773},{"style":1721},[4774],{"type":45,"value":1742},{"type":40,"tag":652,"props":4776,"children":4777},{"style":1721},[4778],{"type":45,"value":4565},{"type":40,"tag":652,"props":4780,"children":4781},{"class":654,"line":673},[4782],{"type":40,"tag":652,"props":4783,"children":4784},{"style":4619},[4785],{"type":45,"value":4786},"\u002F\u002F Response: {\"id\": \"resp_200\", ...}\n",{"type":40,"tag":652,"props":4788,"children":4789},{"class":654,"line":682},[4790],{"type":40,"tag":652,"props":4791,"children":4792},{"emptyLinePlaceholder":695},[4793],{"type":45,"value":698},{"type":40,"tag":652,"props":4795,"children":4796},{"class":654,"line":691},[4797],{"type":40,"tag":652,"props":4798,"children":4799},{"style":4619},[4800],{"type":45,"value":4801},"\u002F\u002F Turn 2 — references Turn 1\n",{"type":40,"tag":652,"props":4803,"children":4804},{"class":654,"line":701},[4805,4809,4813,4817,4821,4825,4829,4833,4837,4841,4845,4849,4853,4857,4861,4866,4870,4874,4878,4882,4886,4890,4894,4898,4902,4906,4910,4914,4918,4922,4926,4930,4934,4938,4942,4946,4950,4954,4958,4962,4966,4970,4974,4978,4983,4987],{"type":40,"tag":652,"props":4806,"children":4807},{"style":1721},[4808],{"type":45,"value":3431},{"type":40,"tag":652,"props":4810,"children":4811},{"style":1721},[4812],{"type":45,"value":1742},{"type":40,"tag":652,"props":4814,"children":4815},{"style":1735},[4816],{"type":45,"value":2711},{"type":40,"tag":652,"props":4818,"children":4819},{"style":1721},[4820],{"type":45,"value":1742},{"type":40,"tag":652,"props":4822,"children":4823},{"style":1721},[4824],{"type":45,"value":1747},{"type":40,"tag":652,"props":4826,"children":4827},{"style":1721},[4828],{"type":45,"value":1752},{"type":40,"tag":652,"props":4830,"children":4831},{"style":1755},[4832],{"type":45,"value":2728},{"type":40,"tag":652,"props":4834,"children":4835},{"style":1721},[4836],{"type":45,"value":1742},{"type":40,"tag":652,"props":4838,"children":4839},{"style":1721},[4840],{"type":45,"value":1990},{"type":40,"tag":652,"props":4842,"children":4843},{"style":1721},[4844],{"type":45,"value":1752},{"type":40,"tag":652,"props":4846,"children":4847},{"style":1735},[4848],{"type":45,"value":87},{"type":40,"tag":652,"props":4850,"children":4851},{"style":1721},[4852],{"type":45,"value":1742},{"type":40,"tag":652,"props":4854,"children":4855},{"style":1721},[4856],{"type":45,"value":1747},{"type":40,"tag":652,"props":4858,"children":4859},{"style":1721},[4860],{"type":45,"value":1752},{"type":40,"tag":652,"props":4862,"children":4863},{"style":1755},[4864],{"type":45,"value":4865},"resp_200",{"type":40,"tag":652,"props":4867,"children":4868},{"style":1721},[4869],{"type":45,"value":1742},{"type":40,"tag":652,"props":4871,"children":4872},{"style":1721},[4873],{"type":45,"value":1990},{"type":40,"tag":652,"props":4875,"children":4876},{"style":1721},[4877],{"type":45,"value":1752},{"type":40,"tag":652,"props":4879,"children":4880},{"style":1735},[4881],{"type":45,"value":2748},{"type":40,"tag":652,"props":4883,"children":4884},{"style":1721},[4885],{"type":45,"value":1742},{"type":40,"tag":652,"props":4887,"children":4888},{"style":1721},[4889],{"type":45,"value":1747},{"type":40,"tag":652,"props":4891,"children":4892},{"style":1721},[4893],{"type":45,"value":2761},{"type":40,"tag":652,"props":4895,"children":4896},{"style":1721},[4897],{"type":45,"value":1742},{"type":40,"tag":652,"props":4899,"children":4900},{"style":1877},[4901],{"type":45,"value":144},{"type":40,"tag":652,"props":4903,"children":4904},{"style":1721},[4905],{"type":45,"value":1742},{"type":40,"tag":652,"props":4907,"children":4908},{"style":1721},[4909],{"type":45,"value":1747},{"type":40,"tag":652,"props":4911,"children":4912},{"style":1721},[4913],{"type":45,"value":1752},{"type":40,"tag":652,"props":4915,"children":4916},{"style":1755},[4917],{"type":45,"value":451},{"type":40,"tag":652,"props":4919,"children":4920},{"style":1721},[4921],{"type":45,"value":1742},{"type":40,"tag":652,"props":4923,"children":4924},{"style":1721},[4925],{"type":45,"value":1990},{"type":40,"tag":652,"props":4927,"children":4928},{"style":1721},[4929],{"type":45,"value":1752},{"type":40,"tag":652,"props":4931,"children":4932},{"style":1877},[4933],{"type":45,"value":2802},{"type":40,"tag":652,"props":4935,"children":4936},{"style":1721},[4937],{"type":45,"value":1742},{"type":40,"tag":652,"props":4939,"children":4940},{"style":1721},[4941],{"type":45,"value":1747},{"type":40,"tag":652,"props":4943,"children":4944},{"style":1721},[4945],{"type":45,"value":1752},{"type":40,"tag":652,"props":4947,"children":4948},{"style":1755},[4949],{"type":45,"value":570},{"type":40,"tag":652,"props":4951,"children":4952},{"style":1721},[4953],{"type":45,"value":1742},{"type":40,"tag":652,"props":4955,"children":4956},{"style":1721},[4957],{"type":45,"value":1990},{"type":40,"tag":652,"props":4959,"children":4960},{"style":1721},[4961],{"type":45,"value":1752},{"type":40,"tag":652,"props":4963,"children":4964},{"style":1877},[4965],{"type":45,"value":2835},{"type":40,"tag":652,"props":4967,"children":4968},{"style":1721},[4969],{"type":45,"value":1742},{"type":40,"tag":652,"props":4971,"children":4972},{"style":1721},[4973],{"type":45,"value":1747},{"type":40,"tag":652,"props":4975,"children":4976},{"style":1721},[4977],{"type":45,"value":1752},{"type":40,"tag":652,"props":4979,"children":4980},{"style":1755},[4981],{"type":45,"value":4982},"And what about Germany?",{"type":40,"tag":652,"props":4984,"children":4985},{"style":1721},[4986],{"type":45,"value":1742},{"type":40,"tag":652,"props":4988,"children":4989},{"style":1721},[4990],{"type":45,"value":4565},{"type":40,"tag":184,"props":4992,"children":4993},{},[],{"type":40,"tag":188,"props":4995,"children":4997},{"id":4996},"extensions",[4998],{"type":45,"value":4999},"Extensions",{"type":40,"tag":48,"props":5001,"children":5002},{},[5003,5005,5010],{"type":45,"value":5004},"Open Responses supports four extension mechanisms, all using vendor-prefixed names to prevent collisions. For full details with examples, load ",{"type":40,"tag":82,"props":5006,"children":5008},{"className":5007},[],[5009],{"type":45,"value":287},{"type":45,"value":398},{"type":40,"tag":200,"props":5012,"children":5013},{},[5014,5040],{"type":40,"tag":204,"props":5015,"children":5016},{},[5017],{"type":40,"tag":208,"props":5018,"children":5019},{},[5020,5025,5030,5035],{"type":40,"tag":212,"props":5021,"children":5022},{},[5023],{"type":45,"value":5024},"Mechanism",{"type":40,"tag":212,"props":5026,"children":5027},{},[5028],{"type":45,"value":5029},"Naming Pattern",{"type":40,"tag":212,"props":5031,"children":5032},{},[5033],{"type":45,"value":5034},"Required Fields",{"type":40,"tag":212,"props":5036,"children":5037},{},[5038],{"type":45,"value":5039},"Constraint",{"type":40,"tag":228,"props":5041,"children":5042},{},[5043,5085,5121,5144],{"type":40,"tag":208,"props":5044,"children":5045},{},[5046,5051,5060,5080],{"type":40,"tag":235,"props":5047,"children":5048},{},[5049],{"type":45,"value":5050},"Custom Items",{"type":40,"tag":235,"props":5052,"children":5053},{},[5054],{"type":40,"tag":82,"props":5055,"children":5057},{"className":5056},[],[5058],{"type":45,"value":5059},"vendor:type_name",{"type":40,"tag":235,"props":5061,"children":5062},{},[5063,5068,5069,5074,5075],{"type":40,"tag":82,"props":5064,"children":5066},{"className":5065},[],[5067],{"type":45,"value":429},{"type":45,"value":310},{"type":40,"tag":82,"props":5070,"children":5072},{"className":5071},[],[5073],{"type":45,"value":144},{"type":45,"value":310},{"type":40,"tag":82,"props":5076,"children":5078},{"className":5077},[],[5079],{"type":45,"value":443},{"type":40,"tag":235,"props":5081,"children":5082},{},[5083],{"type":45,"value":5084},"Must follow item state machine, must round-trip",{"type":40,"tag":208,"props":5086,"children":5087},{},[5088,5093,5102,5116],{"type":40,"tag":235,"props":5089,"children":5090},{},[5091],{"type":45,"value":5092},"Custom Events",{"type":40,"tag":235,"props":5094,"children":5095},{},[5096],{"type":40,"tag":82,"props":5097,"children":5099},{"className":5098},[],[5100],{"type":45,"value":5101},"vendor:event_name",{"type":40,"tag":235,"props":5103,"children":5104},{},[5105,5110,5111],{"type":40,"tag":82,"props":5106,"children":5108},{"className":5107},[],[5109],{"type":45,"value":144},{"type":45,"value":310},{"type":40,"tag":82,"props":5112,"children":5114},{"className":5113},[],[5115],{"type":45,"value":1495},{"type":40,"tag":235,"props":5117,"children":5118},{},[5119],{"type":45,"value":5120},"Must not alter core semantics or token order",{"type":40,"tag":208,"props":5122,"children":5123},{},[5124,5129,5134,5139],{"type":40,"tag":235,"props":5125,"children":5126},{},[5127],{"type":45,"value":5128},"Schema Extensions",{"type":40,"tag":235,"props":5130,"children":5131},{},[5132],{"type":45,"value":5133},"vendor-prefixed fields",{"type":40,"tag":235,"props":5135,"children":5136},{},[5137],{"type":45,"value":5138},"N\u002FA (optional fields)",{"type":40,"tag":235,"props":5140,"children":5141},{},[5142],{"type":45,"value":5143},"Must not break clients ignoring unknown fields",{"type":40,"tag":208,"props":5145,"children":5146},{},[5147,5152,5157,5161],{"type":40,"tag":235,"props":5148,"children":5149},{},[5150],{"type":45,"value":5151},"Governance Path",{"type":40,"tag":235,"props":5153,"children":5154},{},[5155],{"type":45,"value":5156},"N\u002FA",{"type":40,"tag":235,"props":5158,"children":5159},{},[5160],{"type":45,"value":5156},{"type":40,"tag":235,"props":5162,"children":5163},{},[5164],{"type":45,"value":5165},"Broad adoption -> TSC proposal -> core spec",{"type":40,"tag":48,"props":5167,"children":5168},{},[5169],{"type":45,"value":5170},"Clients must silently ignore unknown item types and event types — this is the forward-compatibility contract.",{"type":40,"tag":184,"props":5172,"children":5173},{},[],{"type":40,"tag":188,"props":5175,"children":5177},{"id":5176},"compliance",[5178],{"type":45,"value":5179},"Compliance",{"type":40,"tag":48,"props":5181,"children":5182},{},[5183,5185,5191],{"type":45,"value":5184},"An API is Open Responses-compliant if it implements the spec directly or is a proper superset. The published acceptance test suite is available at ",{"type":40,"tag":176,"props":5186,"children":5189},{"href":5187,"rel":5188},"https:\u002F\u002Fwww.openresponses.org\u002F",[180],[5190],{"type":45,"value":5187},{"type":45,"value":398},{"type":40,"tag":91,"props":5193,"children":5195},{"id":5194},"core-compliance-tests",[5196],{"type":45,"value":5197},"Core Compliance Tests",{"type":40,"tag":200,"props":5199,"children":5200},{},[5201,5217],{"type":40,"tag":204,"props":5202,"children":5203},{},[5204],{"type":40,"tag":208,"props":5205,"children":5206},{},[5207,5212],{"type":40,"tag":212,"props":5208,"children":5209},{},[5210],{"type":45,"value":5211},"Test",{"type":40,"tag":212,"props":5213,"children":5214},{},[5215],{"type":45,"value":5216},"Validates",{"type":40,"tag":228,"props":5218,"children":5219},{},[5220,5233,5246,5264,5277,5290],{"type":40,"tag":208,"props":5221,"children":5222},{},[5223,5228],{"type":40,"tag":235,"props":5224,"children":5225},{},[5226],{"type":45,"value":5227},"Basic Text Response",{"type":40,"tag":235,"props":5229,"children":5230},{},[5231],{"type":45,"value":5232},"ResponseResource schema, item structure, usage",{"type":40,"tag":208,"props":5234,"children":5235},{},[5236,5241],{"type":40,"tag":235,"props":5237,"children":5238},{},[5239],{"type":45,"value":5240},"Streaming Response",{"type":40,"tag":235,"props":5242,"children":5243},{},[5244],{"type":45,"value":5245},"SSE events, correct ordering, final structure",{"type":40,"tag":208,"props":5247,"children":5248},{},[5249,5254],{"type":40,"tag":235,"props":5250,"children":5251},{},[5252],{"type":45,"value":5253},"System Prompt",{"type":40,"tag":235,"props":5255,"children":5256},{},[5257,5262],{"type":40,"tag":82,"props":5258,"children":5260},{"className":5259},[],[5261],{"type":45,"value":606},{"type":45,"value":5263}," parameter, system role handling",{"type":40,"tag":208,"props":5265,"children":5266},{},[5267,5272],{"type":40,"tag":235,"props":5268,"children":5269},{},[5270],{"type":45,"value":5271},"Tool Calling",{"type":40,"tag":235,"props":5273,"children":5274},{},[5275],{"type":45,"value":5276},"Function tool definition, function_call output, round-tripping",{"type":40,"tag":208,"props":5278,"children":5279},{},[5280,5285],{"type":40,"tag":235,"props":5281,"children":5282},{},[5283],{"type":45,"value":5284},"Image Input",{"type":40,"tag":235,"props":5286,"children":5287},{},[5288],{"type":45,"value":5289},"Image URL in user content",{"type":40,"tag":208,"props":5291,"children":5292},{},[5293,5298],{"type":40,"tag":235,"props":5294,"children":5295},{},[5296],{"type":45,"value":5297},"Multi-turn Conversation",{"type":40,"tag":235,"props":5299,"children":5300},{},[5301],{"type":45,"value":5302},"Message history, assistant + user turns",{"type":40,"tag":91,"props":5304,"children":5306},{"id":5305},"server-implementation-checklist",[5307],{"type":45,"value":5308},"Server Implementation Checklist",{"type":40,"tag":98,"props":5310,"children":5313},{"className":5311},[5312],"contains-task-list",[5314,5339,5367,5395,5439,5488,5509,5532,5547,5570,5585,5620],{"type":40,"tag":102,"props":5315,"children":5318},{"className":5316},[5317],"task-list-item",[5319,5323,5324,5329,5331,5337],{"type":40,"tag":2748,"props":5320,"children":5322},{"disabled":695,"type":5321},"checkbox",[],{"type":45,"value":174},{"type":40,"tag":82,"props":5325,"children":5327},{"className":5326},[],[5328],{"type":45,"value":364},{"type":45,"value":5330}," endpoint with ",{"type":40,"tag":82,"props":5332,"children":5334},{"className":5333},[],[5335],{"type":45,"value":5336},"Authorization",{"type":45,"value":5338}," header",{"type":40,"tag":102,"props":5340,"children":5342},{"className":5341},[5317],[5343,5346,5348,5353,5354,5359,5360,5365],{"type":40,"tag":2748,"props":5344,"children":5345},{"disabled":695,"type":5321},[],{"type":45,"value":5347}," Valid output items with ",{"type":40,"tag":82,"props":5349,"children":5351},{"className":5350},[],[5352],{"type":45,"value":429},{"type":45,"value":310},{"type":40,"tag":82,"props":5355,"children":5357},{"className":5356},[],[5358],{"type":45,"value":144},{"type":45,"value":310},{"type":40,"tag":82,"props":5361,"children":5363},{"className":5362},[],[5364],{"type":45,"value":443},{"type":45,"value":5366},"; input items per their type requirements",{"type":40,"tag":102,"props":5368,"children":5370},{"className":5369},[5317],[5371,5374,5376,5381,5383,5388,5390],{"type":40,"tag":2748,"props":5372,"children":5373},{"disabled":695,"type":5321},[],{"type":45,"value":5375}," Item state machine: ",{"type":40,"tag":82,"props":5377,"children":5379},{"className":5378},[],[5380],{"type":45,"value":1312},{"type":45,"value":5382}," -> ",{"type":40,"tag":82,"props":5384,"children":5386},{"className":5385},[],[5387],{"type":45,"value":1329},{"type":45,"value":5389}," \u002F ",{"type":40,"tag":82,"props":5391,"children":5393},{"className":5392},[],[5394],{"type":45,"value":975},{"type":40,"tag":102,"props":5396,"children":5398},{"className":5397},[5317],[5399,5402,5404,5409,5410,5415,5416,5421,5422,5427,5428,5433,5434],{"type":40,"tag":2748,"props":5400,"children":5401},{"disabled":695,"type":5321},[],{"type":45,"value":5403}," Response state machine: ",{"type":40,"tag":82,"props":5405,"children":5407},{"className":5406},[],[5408],{"type":45,"value":1271},{"type":45,"value":5382},{"type":40,"tag":82,"props":5411,"children":5413},{"className":5412},[],[5414],{"type":45,"value":1292},{"type":45,"value":5382},{"type":40,"tag":82,"props":5417,"children":5419},{"className":5418},[],[5420],{"type":45,"value":1312},{"type":45,"value":5382},{"type":40,"tag":82,"props":5423,"children":5425},{"className":5424},[],[5426],{"type":45,"value":1329},{"type":45,"value":5389},{"type":40,"tag":82,"props":5429,"children":5431},{"className":5430},[],[5432],{"type":45,"value":975},{"type":45,"value":5389},{"type":40,"tag":82,"props":5435,"children":5437},{"className":5436},[],[5438],{"type":45,"value":1381},{"type":40,"tag":102,"props":5440,"children":5442},{"className":5441},[5317],[5443,5446,5448,5453,5454,5460,5461,5467,5468,5474,5475,5481,5482],{"type":40,"tag":2748,"props":5444,"children":5445},{"disabled":695,"type":5321},[],{"type":45,"value":5447}," Emit all 6 lifecycle events: ",{"type":40,"tag":82,"props":5449,"children":5451},{"className":5450},[],[5452],{"type":45,"value":1597},{"type":45,"value":310},{"type":40,"tag":82,"props":5455,"children":5457},{"className":5456},[],[5458],{"type":45,"value":5459},".queued",{"type":45,"value":310},{"type":40,"tag":82,"props":5462,"children":5464},{"className":5463},[],[5465],{"type":45,"value":5466},".in_progress",{"type":45,"value":310},{"type":40,"tag":82,"props":5469,"children":5471},{"className":5470},[],[5472],{"type":45,"value":5473},".completed",{"type":45,"value":310},{"type":40,"tag":82,"props":5476,"children":5478},{"className":5477},[],[5479],{"type":45,"value":5480},".incomplete",{"type":45,"value":310},{"type":40,"tag":82,"props":5483,"children":5485},{"className":5484},[],[5486],{"type":45,"value":5487},".failed",{"type":40,"tag":102,"props":5489,"children":5491},{"className":5490},[5317],[5492,5495,5497,5502,5504],{"type":40,"tag":2748,"props":5493,"children":5494},{"disabled":695,"type":5321},[],{"type":45,"value":5496}," Response ",{"type":40,"tag":82,"props":5498,"children":5500},{"className":5499},[],[5501],{"type":45,"value":975},{"type":45,"value":5503}," when any item ends ",{"type":40,"tag":82,"props":5505,"children":5507},{"className":5506},[],[5508],{"type":45,"value":975},{"type":40,"tag":102,"props":5510,"children":5512},{"className":5511},[5317],[5513,5516,5518,5523,5525,5530],{"type":40,"tag":2748,"props":5514,"children":5515},{"disabled":695,"type":5321},[],{"type":45,"value":5517}," Non-streaming JSON and streaming SSE with ",{"type":40,"tag":82,"props":5519,"children":5521},{"className":5520},[],[5522],{"type":45,"value":1643},{"type":45,"value":5524},"\u002F",{"type":40,"tag":82,"props":5526,"children":5528},{"className":5527},[],[5529],{"type":45,"value":144},{"type":45,"value":5531}," matching",{"type":40,"tag":102,"props":5533,"children":5535},{"className":5534},[5317],[5536,5539,5540,5545],{"type":40,"tag":2748,"props":5537,"children":5538},{"disabled":695,"type":5321},[],{"type":45,"value":174},{"type":40,"tag":82,"props":5541,"children":5543},{"className":5542},[],[5544],{"type":45,"value":396},{"type":45,"value":5546}," terminal marker",{"type":40,"tag":102,"props":5548,"children":5550},{"className":5549},[5317],[5551,5554,5556,5561,5563,5568],{"type":40,"tag":2748,"props":5552,"children":5553},{"disabled":695,"type":5321},[],{"type":45,"value":5555}," Function tools: ",{"type":40,"tag":82,"props":5557,"children":5559},{"className":5558},[],[5560],{"type":45,"value":308},{"type":45,"value":5562}," items, ",{"type":40,"tag":82,"props":5564,"children":5566},{"className":5565},[],[5567],{"type":45,"value":525},{"type":45,"value":5569}," round-tripping",{"type":40,"tag":102,"props":5571,"children":5573},{"className":5572},[5317],[5574,5577,5578,5583],{"type":40,"tag":2748,"props":5575,"children":5576},{"disabled":695,"type":5321},[],{"type":45,"value":174},{"type":40,"tag":82,"props":5579,"children":5581},{"className":5580},[],[5582],{"type":45,"value":87},{"type":45,"value":5584}," for conversation continuation",{"type":40,"tag":102,"props":5586,"children":5588},{"className":5587},[5317],[5589,5592,5594,5599,5600,5605,5606,5612,5613,5618],{"type":40,"tag":2748,"props":5590,"children":5591},{"disabled":695,"type":5321},[],{"type":45,"value":5593}," Error objects: ",{"type":40,"tag":82,"props":5595,"children":5597},{"className":5596},[],[5598],{"type":45,"value":144},{"type":45,"value":310},{"type":40,"tag":82,"props":5601,"children":5603},{"className":5602},[],[5604],{"type":45,"value":82},{"type":45,"value":310},{"type":40,"tag":82,"props":5607,"children":5609},{"className":5608},[],[5610],{"type":45,"value":5611},"param",{"type":45,"value":310},{"type":40,"tag":82,"props":5614,"children":5616},{"className":5615},[],[5617],{"type":45,"value":451},{"type":45,"value":5619}," with correct HTTP status codes",{"type":40,"tag":102,"props":5621,"children":5623},{"className":5622},[5317],[5624,5627],{"type":40,"tag":2748,"props":5625,"children":5626},{"disabled":695,"type":5321},[],{"type":45,"value":5628}," Vendor-prefixed extensions (if applicable)",{"type":40,"tag":91,"props":5630,"children":5632},{"id":5631},"client-implementation-checklist",[5633],{"type":45,"value":5634},"Client Implementation Checklist",{"type":40,"tag":98,"props":5636,"children":5638},{"className":5637},[5312],[5639,5662,5678,5687,5717,5726,5735,5751],{"type":40,"tag":102,"props":5640,"children":5642},{"className":5641},[5317],[5643,5646,5648,5653,5654,5660],{"type":40,"tag":2748,"props":5644,"children":5645},{"disabled":695,"type":5321},[],{"type":45,"value":5647}," Send ",{"type":40,"tag":82,"props":5649,"children":5651},{"className":5650},[],[5652],{"type":45,"value":5336},{"type":45,"value":374},{"type":40,"tag":82,"props":5655,"children":5657},{"className":5656},[],[5658],{"type":45,"value":5659},"Content-Type",{"type":45,"value":5661}," headers",{"type":40,"tag":102,"props":5663,"children":5665},{"className":5664},[5317],[5666,5669,5671,5676],{"type":40,"tag":2748,"props":5667,"children":5668},{"disabled":695,"type":5321},[],{"type":45,"value":5670}," Parse polymorphic items by ",{"type":40,"tag":82,"props":5672,"children":5674},{"className":5673},[],[5675],{"type":45,"value":144},{"type":45,"value":5677}," field",{"type":40,"tag":102,"props":5679,"children":5681},{"className":5680},[5317],[5682,5685],{"type":40,"tag":2748,"props":5683,"children":5684},{"disabled":695,"type":5321},[],{"type":45,"value":5686}," Track item and response state machines",{"type":40,"tag":102,"props":5688,"children":5690},{"className":5689},[5317],[5691,5694,5696,5702,5704,5710,5712],{"type":40,"tag":2748,"props":5692,"children":5693},{"disabled":695,"type":5321},[],{"type":45,"value":5695}," Process SSE: parse ",{"type":40,"tag":82,"props":5697,"children":5699},{"className":5698},[],[5700],{"type":45,"value":5701},"event:",{"type":45,"value":5703}," + ",{"type":40,"tag":82,"props":5705,"children":5707},{"className":5706},[],[5708],{"type":45,"value":5709},"data:",{"type":45,"value":5711}," lines, handle ",{"type":40,"tag":82,"props":5713,"children":5715},{"className":5714},[],[5716],{"type":45,"value":1343},{"type":40,"tag":102,"props":5718,"children":5720},{"className":5719},[5317],[5721,5724],{"type":40,"tag":2748,"props":5722,"children":5723},{"disabled":695,"type":5321},[],{"type":45,"value":5725}," Implement agentic loop for externally-hosted tools",{"type":40,"tag":102,"props":5727,"children":5729},{"className":5728},[5317],[5730,5733],{"type":40,"tag":2748,"props":5731,"children":5732},{"disabled":695,"type":5321},[],{"type":45,"value":5734}," Silently ignore unknown item types and event types",{"type":40,"tag":102,"props":5736,"children":5738},{"className":5737},[5317],[5739,5742,5744,5749],{"type":40,"tag":2748,"props":5740,"children":5741},{"disabled":695,"type":5321},[],{"type":45,"value":5743}," Support ",{"type":40,"tag":82,"props":5745,"children":5747},{"className":5746},[],[5748],{"type":45,"value":87},{"type":45,"value":5750}," for multi-turn conversations",{"type":40,"tag":102,"props":5752,"children":5754},{"className":5753},[5317],[5755,5758],{"type":40,"tag":2748,"props":5756,"children":5757},{"disabled":695,"type":5321},[],{"type":45,"value":5759}," Handle parallel tool calls in a single response",{"type":40,"tag":184,"props":5761,"children":5762},{},[],{"type":40,"tag":188,"props":5764,"children":5766},{"id":5765},"quick-reference",[5767],{"type":45,"value":5768},"Quick Reference",{"type":40,"tag":91,"props":5770,"children":5772},{"id":5771},"streaming-event-types",[5773],{"type":45,"value":5774},"Streaming Event Types",{"type":40,"tag":200,"props":5776,"children":5777},{},[5778,5794],{"type":40,"tag":204,"props":5779,"children":5780},{},[5781],{"type":40,"tag":208,"props":5782,"children":5783},{},[5784,5789],{"type":40,"tag":212,"props":5785,"children":5786},{},[5787],{"type":45,"value":5788},"Event",{"type":40,"tag":212,"props":5790,"children":5791},{},[5792],{"type":45,"value":5793},"Category",{"type":40,"tag":228,"props":5795,"children":5796},{},[5797,5813,5828,5843,5858,5873,5888,5910,5932,5953,5974,5996],{"type":40,"tag":208,"props":5798,"children":5799},{},[5800,5808],{"type":40,"tag":235,"props":5801,"children":5802},{},[5803],{"type":40,"tag":82,"props":5804,"children":5806},{"className":5805},[],[5807],{"type":45,"value":1597},{"type":40,"tag":235,"props":5809,"children":5810},{},[5811],{"type":45,"value":5812},"Lifecycle",{"type":40,"tag":208,"props":5814,"children":5815},{},[5816,5824],{"type":40,"tag":235,"props":5817,"children":5818},{},[5819],{"type":40,"tag":82,"props":5820,"children":5822},{"className":5821},[],[5823],{"type":45,"value":1604},{"type":40,"tag":235,"props":5825,"children":5826},{},[5827],{"type":45,"value":5812},{"type":40,"tag":208,"props":5829,"children":5830},{},[5831,5839],{"type":40,"tag":235,"props":5832,"children":5833},{},[5834],{"type":40,"tag":82,"props":5835,"children":5837},{"className":5836},[],[5838],{"type":45,"value":1611},{"type":40,"tag":235,"props":5840,"children":5841},{},[5842],{"type":45,"value":5812},{"type":40,"tag":208,"props":5844,"children":5845},{},[5846,5854],{"type":40,"tag":235,"props":5847,"children":5848},{},[5849],{"type":40,"tag":82,"props":5850,"children":5852},{"className":5851},[],[5853],{"type":45,"value":1618},{"type":40,"tag":235,"props":5855,"children":5856},{},[5857],{"type":45,"value":5812},{"type":40,"tag":208,"props":5859,"children":5860},{},[5861,5869],{"type":40,"tag":235,"props":5862,"children":5863},{},[5864],{"type":40,"tag":82,"props":5865,"children":5867},{"className":5866},[],[5868],{"type":45,"value":1625},{"type":40,"tag":235,"props":5870,"children":5871},{},[5872],{"type":45,"value":5812},{"type":40,"tag":208,"props":5874,"children":5875},{},[5876,5884],{"type":40,"tag":235,"props":5877,"children":5878},{},[5879],{"type":40,"tag":82,"props":5880,"children":5882},{"className":5881},[],[5883],{"type":45,"value":1632},{"type":40,"tag":235,"props":5885,"children":5886},{},[5887],{"type":45,"value":5812},{"type":40,"tag":208,"props":5889,"children":5890},{},[5891,5905],{"type":40,"tag":235,"props":5892,"children":5893},{},[5894,5899,5900],{"type":40,"tag":82,"props":5895,"children":5897},{"className":5896},[],[5898],{"type":45,"value":1572},{"type":45,"value":5389},{"type":40,"tag":82,"props":5901,"children":5903},{"className":5902},[],[5904],{"type":45,"value":1445},{"type":40,"tag":235,"props":5906,"children":5907},{},[5908],{"type":45,"value":5909},"Delta",{"type":40,"tag":208,"props":5911,"children":5912},{},[5913,5928],{"type":40,"tag":235,"props":5914,"children":5915},{},[5916,5922,5923],{"type":40,"tag":82,"props":5917,"children":5919},{"className":5918},[],[5920],{"type":45,"value":5921},"response.content_part.added",{"type":45,"value":5389},{"type":40,"tag":82,"props":5924,"children":5926},{"className":5925},[],[5927],{"type":45,"value":1445},{"type":40,"tag":235,"props":5929,"children":5930},{},[5931],{"type":45,"value":5909},{"type":40,"tag":208,"props":5933,"children":5934},{},[5935,5949],{"type":40,"tag":235,"props":5936,"children":5937},{},[5938,5943,5944],{"type":40,"tag":82,"props":5939,"children":5941},{"className":5940},[],[5942],{"type":45,"value":1558},{"type":45,"value":5389},{"type":40,"tag":82,"props":5945,"children":5947},{"className":5946},[],[5948],{"type":45,"value":1445},{"type":40,"tag":235,"props":5950,"children":5951},{},[5952],{"type":45,"value":5909},{"type":40,"tag":208,"props":5954,"children":5955},{},[5956,5970],{"type":40,"tag":235,"props":5957,"children":5958},{},[5959,5964,5965],{"type":40,"tag":82,"props":5960,"children":5962},{"className":5961},[],[5963],{"type":45,"value":1565},{"type":45,"value":5389},{"type":40,"tag":82,"props":5966,"children":5968},{"className":5967},[],[5969],{"type":45,"value":1445},{"type":40,"tag":235,"props":5971,"children":5972},{},[5973],{"type":45,"value":5909},{"type":40,"tag":208,"props":5975,"children":5976},{},[5977,5992],{"type":40,"tag":235,"props":5978,"children":5979},{},[5980,5986,5987],{"type":40,"tag":82,"props":5981,"children":5983},{"className":5982},[],[5984],{"type":45,"value":5985},"response.reasoning_summary_text.delta",{"type":45,"value":5389},{"type":40,"tag":82,"props":5988,"children":5990},{"className":5989},[],[5991],{"type":45,"value":1445},{"type":40,"tag":235,"props":5993,"children":5994},{},[5995],{"type":45,"value":5909},{"type":40,"tag":208,"props":5997,"children":5998},{},[5999,6008],{"type":40,"tag":235,"props":6000,"children":6001},{},[6002],{"type":40,"tag":82,"props":6003,"children":6005},{"className":6004},[],[6006],{"type":45,"value":6007},"vendor:custom_event",{"type":40,"tag":235,"props":6009,"children":6010},{},[6011],{"type":45,"value":6012},"Custom",{"type":40,"tag":91,"props":6014,"children":6016},{"id":6015},"item-types",[6017],{"type":45,"value":6018},"Item Types",{"type":40,"tag":200,"props":6020,"children":6021},{},[6022,6037],{"type":40,"tag":204,"props":6023,"children":6024},{},[6025],{"type":40,"tag":208,"props":6026,"children":6027},{},[6028,6033],{"type":40,"tag":212,"props":6029,"children":6030},{},[6031],{"type":45,"value":6032},"Type",{"type":40,"tag":212,"props":6034,"children":6035},{},[6036],{"type":45,"value":5793},{"type":40,"tag":228,"props":6038,"children":6039},{},[6040,6056,6071,6086,6101],{"type":40,"tag":208,"props":6041,"children":6042},{},[6043,6051],{"type":40,"tag":235,"props":6044,"children":6045},{},[6046],{"type":40,"tag":82,"props":6047,"children":6049},{"className":6048},[],[6050],{"type":45,"value":451},{"type":40,"tag":235,"props":6052,"children":6053},{},[6054],{"type":45,"value":6055},"Core",{"type":40,"tag":208,"props":6057,"children":6058},{},[6059,6067],{"type":40,"tag":235,"props":6060,"children":6061},{},[6062],{"type":40,"tag":82,"props":6063,"children":6065},{"className":6064},[],[6066],{"type":45,"value":308},{"type":40,"tag":235,"props":6068,"children":6069},{},[6070],{"type":45,"value":6055},{"type":40,"tag":208,"props":6072,"children":6073},{},[6074,6082],{"type":40,"tag":235,"props":6075,"children":6076},{},[6077],{"type":40,"tag":82,"props":6078,"children":6080},{"className":6079},[],[6081],{"type":45,"value":525},{"type":40,"tag":235,"props":6083,"children":6084},{},[6085],{"type":45,"value":6055},{"type":40,"tag":208,"props":6087,"children":6088},{},[6089,6097],{"type":40,"tag":235,"props":6090,"children":6091},{},[6092],{"type":40,"tag":82,"props":6093,"children":6095},{"className":6094},[],[6096],{"type":45,"value":464},{"type":40,"tag":235,"props":6098,"children":6099},{},[6100],{"type":45,"value":6055},{"type":40,"tag":208,"props":6102,"children":6103},{},[6104,6113],{"type":40,"tag":235,"props":6105,"children":6106},{},[6107],{"type":40,"tag":82,"props":6108,"children":6110},{"className":6109},[],[6111],{"type":45,"value":6112},"vendor:custom_type",{"type":40,"tag":235,"props":6114,"children":6115},{},[6116],{"type":45,"value":6117},"Extension",{"type":40,"tag":91,"props":6119,"children":6121},{"id":6120},"state-summary",[6122],{"type":45,"value":6123},"State Summary",{"type":40,"tag":200,"props":6125,"children":6126},{},[6127,6148],{"type":40,"tag":204,"props":6128,"children":6129},{},[6130],{"type":40,"tag":208,"props":6131,"children":6132},{},[6133,6138,6143],{"type":40,"tag":212,"props":6134,"children":6135},{},[6136],{"type":45,"value":6137},"Object",{"type":40,"tag":212,"props":6139,"children":6140},{},[6141],{"type":45,"value":6142},"States",{"type":40,"tag":212,"props":6144,"children":6145},{},[6146],{"type":45,"value":6147},"Terminal",{"type":40,"tag":228,"props":6149,"children":6150},{},[6151,6169],{"type":40,"tag":208,"props":6152,"children":6153},{},[6154,6159,6164],{"type":40,"tag":235,"props":6155,"children":6156},{},[6157],{"type":45,"value":6158},"Response",{"type":40,"tag":235,"props":6160,"children":6161},{},[6162],{"type":45,"value":6163},"created -> queued -> in_progress -> completed \u002F incomplete \u002F failed",{"type":40,"tag":235,"props":6165,"children":6166},{},[6167],{"type":45,"value":6168},"completed, incomplete, failed",{"type":40,"tag":208,"props":6170,"children":6171},{},[6172,6177,6182],{"type":40,"tag":235,"props":6173,"children":6174},{},[6175],{"type":45,"value":6176},"Item",{"type":40,"tag":235,"props":6178,"children":6179},{},[6180],{"type":45,"value":6181},"in_progress -> completed \u002F incomplete",{"type":40,"tag":235,"props":6183,"children":6184},{},[6185],{"type":45,"value":6186},"completed, incomplete",{"type":40,"tag":48,"props":6188,"children":6189},{},[6190,6192,6197,6199,6204],{"type":45,"value":6191},"If any item ends ",{"type":40,"tag":82,"props":6193,"children":6195},{"className":6194},[],[6196],{"type":45,"value":975},{"type":45,"value":6198},", the containing response MUST also be ",{"type":40,"tag":82,"props":6200,"children":6202},{"className":6201},[],[6203],{"type":45,"value":975},{"type":45,"value":398},{"type":40,"tag":91,"props":6206,"children":6208},{"id":6207},"error-types",[6209],{"type":45,"value":6210},"Error Types",{"type":40,"tag":200,"props":6212,"children":6213},{},[6214,6234],{"type":40,"tag":204,"props":6215,"children":6216},{},[6217],{"type":40,"tag":208,"props":6218,"children":6219},{},[6220,6224,6229],{"type":40,"tag":212,"props":6221,"children":6222},{},[6223],{"type":45,"value":6032},{"type":40,"tag":212,"props":6225,"children":6226},{},[6227],{"type":45,"value":6228},"HTTP",{"type":40,"tag":212,"props":6230,"children":6231},{},[6232],{"type":45,"value":6233},"Retry",{"type":40,"tag":228,"props":6235,"children":6236},{},[6237,6259,6280,6302,6323],{"type":40,"tag":208,"props":6238,"children":6239},{},[6240,6249,6254],{"type":40,"tag":235,"props":6241,"children":6242},{},[6243],{"type":40,"tag":82,"props":6244,"children":6246},{"className":6245},[],[6247],{"type":45,"value":6248},"invalid_request",{"type":40,"tag":235,"props":6250,"children":6251},{},[6252],{"type":45,"value":6253},"400",{"type":40,"tag":235,"props":6255,"children":6256},{},[6257],{"type":45,"value":6258},"No",{"type":40,"tag":208,"props":6260,"children":6261},{},[6262,6271,6276],{"type":40,"tag":235,"props":6263,"children":6264},{},[6265],{"type":40,"tag":82,"props":6266,"children":6268},{"className":6267},[],[6269],{"type":45,"value":6270},"not_found",{"type":40,"tag":235,"props":6272,"children":6273},{},[6274],{"type":45,"value":6275},"404",{"type":40,"tag":235,"props":6277,"children":6278},{},[6279],{"type":45,"value":6258},{"type":40,"tag":208,"props":6281,"children":6282},{},[6283,6292,6297],{"type":40,"tag":235,"props":6284,"children":6285},{},[6286],{"type":40,"tag":82,"props":6287,"children":6289},{"className":6288},[],[6290],{"type":45,"value":6291},"too_many_requests",{"type":40,"tag":235,"props":6293,"children":6294},{},[6295],{"type":45,"value":6296},"429",{"type":40,"tag":235,"props":6298,"children":6299},{},[6300],{"type":45,"value":6301},"Yes",{"type":40,"tag":208,"props":6303,"children":6304},{},[6305,6314,6319],{"type":40,"tag":235,"props":6306,"children":6307},{},[6308],{"type":40,"tag":82,"props":6309,"children":6311},{"className":6310},[],[6312],{"type":45,"value":6313},"server_error",{"type":40,"tag":235,"props":6315,"children":6316},{},[6317],{"type":45,"value":6318},"500",{"type":40,"tag":235,"props":6320,"children":6321},{},[6322],{"type":45,"value":6301},{"type":40,"tag":208,"props":6324,"children":6325},{},[6326,6335,6339],{"type":40,"tag":235,"props":6327,"children":6328},{},[6329],{"type":40,"tag":82,"props":6330,"children":6332},{"className":6331},[],[6333],{"type":45,"value":6334},"model_error",{"type":40,"tag":235,"props":6336,"children":6337},{},[6338],{"type":45,"value":6318},{"type":40,"tag":235,"props":6340,"children":6341},{},[6342],{"type":45,"value":6343},"Maybe",{"type":40,"tag":6345,"props":6346,"children":6347},"style",{},[6348],{"type":45,"value":6349},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":6351,"total":800},[6352,6369,6379,6385,6399,6410,6419,6431,6443,6452,6463,6472],{"slug":6353,"name":6353,"fn":6354,"description":6355,"org":6356,"tags":6357,"stars":23,"repoUrl":24,"updatedAt":6368},"create-agent-tui","scaffold terminal agents with OpenRouter","Scaffolds a complete agent TUI in TypeScript using @openrouter\u002Fagent — like create-react-app for terminal agents. Generates a customizable terminal interface with three input styles, four tool display modes, ASCII banners, streaming output, session persistence, and configurable tools. Use when building an agent, creating a TUI, scaffolding an agent project, or building a coding assistant.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6358,6361,6364,6365],{"name":6359,"slug":6360,"type":16},"Agents","agents",{"name":6362,"slug":6363,"type":16},"CLI","cli",{"name":9,"slug":8,"type":16},{"name":6366,"slug":6367,"type":16},"TypeScript","typescript","2026-07-14T05:38:18.849741",{"slug":6370,"name":6370,"fn":6371,"description":6372,"org":6373,"tags":6374,"stars":23,"repoUrl":24,"updatedAt":6378},"create-headless-agent","scaffold headless agents with OpenRouter","Scaffolds a headless agent in TypeScript using @openrouter\u002Fagent and Bun — for CLI tools, API servers, queue workers, and pipelines. No terminal UI. Use when building a headless agent, programmatic agent, CLI tool that uses AI, batch agent, pipeline agent, API agent, agent without a UI, or agent service.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6375,6376,6377],{"name":6359,"slug":6360,"type":16},{"name":6362,"slug":6363,"type":16},{"name":6366,"slug":6367,"type":16},"2026-07-14T05:38:30.178029",{"slug":4,"name":4,"fn":5,"description":6,"org":6380,"tags":6381,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6382,6383,6384],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":6386,"name":6386,"fn":6387,"description":6388,"org":6389,"tags":6390,"stars":23,"repoUrl":24,"updatedAt":6398},"openrouter-agent-migration","migrate OpenRouter SDK to agent patterns","Migration guide from @openrouter\u002Fsdk to @openrouter\u002Fagent for callModel, tool(), stop conditions, and agent features. This skill should be used when code imports callModel, tool(), or stop conditions from @openrouter\u002Fsdk and needs to migrate to @openrouter\u002Fagent.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6391,6394,6397],{"name":6392,"slug":6393,"type":16},"Migration","migration",{"name":6395,"slug":6396,"type":16},"SDK","sdk",{"name":6366,"slug":6367,"type":16},"2026-07-14T05:38:28.914981",{"slug":6400,"name":6400,"fn":6401,"description":6402,"org":6403,"tags":6404,"stars":23,"repoUrl":24,"updatedAt":6409},"openrouter-analytics","analyze OpenRouter usage and spend","Answer natural-language questions about a user's OpenRouter usage data — spend, request volume, model breakdown, latency, token usage, and cost optimization. Use when the user asks about their API usage, billing, costs, top models, traffic patterns, or wants to optimize their OpenRouter spend.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6405,6408],{"name":6406,"slug":6407,"type":16},"Analytics","analytics",{"name":9,"slug":8,"type":16},"2026-07-30T05:30:15.098344",{"slug":6411,"name":6411,"fn":6412,"description":6413,"org":6414,"tags":6415,"stars":23,"repoUrl":24,"updatedAt":6418},"openrouter-analytics-query","execute analytics queries against OpenRouter","Construct and execute analytics queries against the OpenRouter API — full parameter reference for metrics, dimensions, filters, time ranges, ordering, and pagination. Use when building or debugging an analytics query, understanding the request\u002Fresponse shape, or handling query errors.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6416,6417],{"name":6406,"slug":6407,"type":16},{"name":21,"slug":22,"type":16},"2026-07-14T05:38:26.402047",{"slug":6420,"name":6420,"fn":6421,"description":6422,"org":6423,"tags":6424,"stars":23,"repoUrl":24,"updatedAt":6430},"openrouter-analytics-schema","query OpenRouter analytics schema","Discover the OpenRouter analytics schema — available metrics, dimensions, filter operators, and granularities. Use when you need to know what analytics data is queryable, what dimensions you can break down by, or how to map a user's question to the right metric\u002Fdimension combination.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6425,6426,6427],{"name":6406,"slug":6407,"type":16},{"name":14,"slug":15,"type":16},{"name":6428,"slug":6429,"type":16},"Reporting","reporting","2026-07-14T05:38:32.721796",{"slug":6432,"name":6432,"fn":6433,"description":6434,"org":6435,"tags":6436,"stars":23,"repoUrl":24,"updatedAt":6442},"openrouter-benchmarks","query OpenRouter model benchmarks","Query OpenRouter's Benchmarks API for model benchmark rankings and scores. Use when the user asks for benchmark-backed model selection, model rankings by coding\u002Fintelligence\u002Fagentic ability, Artificial Analysis or Design Arena ELO\u002Fwin-rate results, benchmark citations, or wants to call GET \u002Fapi\u002Fv1\u002Fbenchmarks. Also use alongside openrouter-models when the user asks what model should power an app, product, workflow, or use case and benchmark evidence could inform or rule out part of the recommendation, including creative writing, editing, coding, design, agentic, or intelligence-heavy apps. Do not use for OpenRouter usage analytics, billing\u002Fspend analysis, generation metadata, provider uptime\u002Flatency, generic model pricing\u002Fcapability lookup without any selection or benchmark-relevance decision, or creating an evaluation suite for a local app.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6437,6438,6441],{"name":6406,"slug":6407,"type":16},{"name":6439,"slug":6440,"type":16},"Benchmarking","benchmarking",{"name":14,"slug":15,"type":16},"2026-07-14T05:38:27.658475",{"slug":6444,"name":6444,"fn":6445,"description":6446,"org":6447,"tags":6448,"stars":23,"repoUrl":24,"updatedAt":6451},"openrouter-generations","retrieve metadata for OpenRouter generations","Retrieve detailed metadata and stored content for individual OpenRouter generations. Use when the user wants to inspect a specific request — its cost, latency, token usage, provider routing, or the actual prompt\u002Fcompletion text — or is debugging a failed or unexpected generation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6449,6450],{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},"2026-07-14T05:38:25.132801",{"slug":6453,"name":6453,"fn":6454,"description":6455,"org":6456,"tags":6457,"stars":23,"repoUrl":24,"updatedAt":6462},"openrouter-images","generate images with OpenRouter","Generate images from text prompts and edit existing images using OpenRouter's dedicated Image API. Use when the user asks to create, generate, or make an image, picture, or illustration from a description, or wants to edit, modify, transform, or alter an existing image with a text prompt.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6458,6461],{"name":6459,"slug":6460,"type":16},"Image Generation","image-generation",{"name":9,"slug":8,"type":16},"2026-07-14T05:38:21.393411",{"slug":6464,"name":6464,"fn":6465,"description":6466,"org":6467,"tags":6468,"stars":23,"repoUrl":24,"updatedAt":6471},"openrouter-models","query OpenRouter model metadata and pricing","Query OpenRouter for available AI models, pricing, capabilities, throughput, and provider performance. Use when the user asks about available OpenRouter models, model pricing, model context lengths, model capabilities, provider latency or uptime, throughput limits, supported parameters, wants to search\u002Ffilter\u002Fcompare models, or find the fastest provider for a model.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6469,6470],{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},"2026-07-14T05:38:22.650307",{"slug":6473,"name":6473,"fn":6474,"description":6475,"org":6476,"tags":6477,"stars":23,"repoUrl":24,"updatedAt":6485},"openrouter-oauth","implement OpenRouter OAuth authentication","Implement \"Sign In with OpenRouter\" using OAuth PKCE — framework-agnostic, no SDK or client registration required. Use when the user wants to add OpenRouter login, authentication, sign-in buttons, OAuth, or AI model inference API keys for browser-based apps. No client registration, no backend, no secrets required.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6478,6481,6484],{"name":6479,"slug":6480,"type":16},"Auth","auth",{"name":6482,"slug":6483,"type":16},"OAuth","oauth",{"name":9,"slug":8,"type":16},"2026-07-14T05:38:20.116308",{"items":6487,"total":800},[6488,6495,6501,6507,6513,6518,6523],{"slug":6353,"name":6353,"fn":6354,"description":6355,"org":6489,"tags":6490,"stars":23,"repoUrl":24,"updatedAt":6368},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6491,6492,6493,6494],{"name":6359,"slug":6360,"type":16},{"name":6362,"slug":6363,"type":16},{"name":9,"slug":8,"type":16},{"name":6366,"slug":6367,"type":16},{"slug":6370,"name":6370,"fn":6371,"description":6372,"org":6496,"tags":6497,"stars":23,"repoUrl":24,"updatedAt":6378},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6498,6499,6500],{"name":6359,"slug":6360,"type":16},{"name":6362,"slug":6363,"type":16},{"name":6366,"slug":6367,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":6502,"tags":6503,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6504,6505,6506],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":6386,"name":6386,"fn":6387,"description":6388,"org":6508,"tags":6509,"stars":23,"repoUrl":24,"updatedAt":6398},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6510,6511,6512],{"name":6392,"slug":6393,"type":16},{"name":6395,"slug":6396,"type":16},{"name":6366,"slug":6367,"type":16},{"slug":6400,"name":6400,"fn":6401,"description":6402,"org":6514,"tags":6515,"stars":23,"repoUrl":24,"updatedAt":6409},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6516,6517],{"name":6406,"slug":6407,"type":16},{"name":9,"slug":8,"type":16},{"slug":6411,"name":6411,"fn":6412,"description":6413,"org":6519,"tags":6520,"stars":23,"repoUrl":24,"updatedAt":6418},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6521,6522],{"name":6406,"slug":6407,"type":16},{"name":21,"slug":22,"type":16},{"slug":6420,"name":6420,"fn":6421,"description":6422,"org":6524,"tags":6525,"stars":23,"repoUrl":24,"updatedAt":6430},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6526,6527,6528],{"name":6406,"slug":6407,"type":16},{"name":14,"slug":15,"type":16},{"name":6428,"slug":6429,"type":16}]