Open Responses
Open Responses is an open, vendor-neutral specification for large language model APIs, based on the OpenAI Responses API, published at openresponses.org with dated releases of a specification, an API reference and an OpenAPI document. It defines a shared schema, semantic streaming events and extensible tooling so clients and providers interoperate. With this skill the agent implements or reviews an Open Responses server, router or client, and checks it against the compliance suite.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. "Spec" is the 2026-04-24 specification and "Reference" its API reference; section names are their headings. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: server (provider or self-hosted model), router or proxy in front of several providers, or client.
- Transports: HTTP JSON, HTTP streaming over server-sent events, and optionally WebSocket mode.
- Tools: developer functions only, or also hosted tools and implementor extension types.
- Target version: Open Responses 2026-04-24 (default). Open Responses 2026-01-15 is supported: valid for peers that have not adopted WebSocket mode, compaction or
phase. No preview exists. Seereferences/versions.md. - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources, check the changelog and
public/openapi/in the repository for a newer dated release, and update the pins.
Invariants
- JSON in, JSON or SSE out. Clients send
application/jsonbodies withAuthorizationandContent-Type; non-streaming servers return onlyapplication/json; streaming servers returntext/event-stream(Spec § HTTP Requests, § HTTP Responses). - SSE framing. Each
event:field matches thetypein its JSONdata,idSHOULD NOT be used, and the stream ends with the literal[DONE](Spec § HTTP Responses). - Items are typed, addressable state machines. Every item has
id,typeandstatus;in_progress,incompleteandcompletedare the base states; anincompleteitem is the last item and makes the responseincomplete; acompleteditem never changes again (Spec § Items are state machines, § Extending Items). - Stream items in lifecycle order.
response.output_item.addedfirst, with every non-nullable field set; streamed content insideresponse.content_part.added…response.<type>.delta…response.<type>.done…response.content_part.done; thenresponse.output_item.done(Spec § Items are streamable). - Errors are structured and fail the stream. Error objects carry
type, optionalcode,paramandmessage; an error while streaming is followed byresponse.failed(Spec § Errors). previous_response_idmeansprevious.input + previous.output + input, in that semantic order, even under truncation or compaction (Spec § previous_response_id).allowed_toolsis a hard limit. Calls to tools outside it are rejected or suppressed by the server, never executed (Spec § allowed_tools).truncation: "disabled"never drops input; an oversized context fails with an error instead (Spec § truncation; Reference § TruncationEnum).- WebSocket mode is sequential. Each turn starts with
response.create, nostream,stream_optionsorbackground; one in-flight response per connection; same events as SSE;store: falsecontinuation only from connection-local state, elseprevious_response_not_found(Spec § WebSocket Transport, § WebSocket Continuation). - Extensions are slug-prefixed and ignorable. Custom items, hosted tools and streaming events use
slug:name; extended events carrytypeandsequence_numberand never change core semantics; clients tolerate unknown types (Spec § Items are extensible, § Extending Open Responses).
Workflow
- Pick the version. Target 2026-04-24; keep 2026-01-15 behavior working for peers that do not send WebSocket, compaction or
phase. ->references/versions.md✓ The implementation states which dated OpenAPI document it validates against. - Model the request and response.
model,input(string or items),instructions,tools,tool_choice,previous_response_id,store,truncation,reasoning,text, sampling and limits; theresponseobject withstatus,output,usage,errorandincomplete_details(Reference § Request Parameters, § Response Parameters). ->references/api.md✓ A non-streaming response validates againstResponseResourcein the pinned OpenAPI document. - Run the agentic loop. Emit
function_callitems for developer tools and acceptfunction_call_outputwith the matchingcall_id; execute hosted tools in-provider; honortool_choiceandallowed_tools(Spec § Agentic Loop, § Tools, § tool_choice, § allowed_tools). ->references/api.md✓ A tool round trip withprevious_response_idand only the new items reproduces the full-context result. - Stream. Emit state machine events (
response.created,response.in_progress,response.completed,response.failed,response.incomplete) and delta events in item and content-part order over SSE, ending with[DONE](Spec § Streaming, § Items are streamable). ->references/streaming.md✓sequence_numberincreases monotonically and every added item and part is closed. - Add WebSocket mode and compaction (only if offered).
response.createturns, connection-local continuation, cache eviction on failure, the 60-minute limit, error envelopes, andPOST /v1/responses/compact(Spec § WebSocket Transport to § WebSocket Errors; Reference § Compaction Endpoint). ->references/streaming.md✓ After compaction, a new WebSocket response starts withoutprevious_response_id. - Extend without breaking portability. Prefix custom items, tools and events with your slug, give hosted tools their own item type, and keep extra fields optional (Spec § Extending Open Responses).
->
references/extensions-and-compliance.md✓ A client that ignores every slug-prefixed type still reconstructs the canonical response. - Run the compliance suite. The browser tests at openresponses.org/compliance and the CLI tests for WebSocket (Compliance).
->
references/extensions-and-compliance.md✓ All browser-runnable tests pass, and the WebSocket CLI tests pass when WebSocket mode is offered. - Upgrade (only when asked). Move a 2026-01-15 implementation to 2026-04-24.
->
references/versions.md✓ The 2026-04-24 compliance tests pass and 2026-01-15 requests still succeed.
Verify before done
- Request bodies are JSON; non-streaming responses are
application/json; streams aretext/event-streamending in[DONE]witheventequal totype(Spec § HTTP Requests, § HTTP Responses). - Every item has
id,typeandstatus, and every streamed item and content part is opened and closed in order (Spec § Items). - Every streaming error is followed by
response.failed(Spec § Errors). -
allowed_toolsandtruncation: "disabled"are enforced, not advisory (Spec § allowed_tools, § truncation). - WebSocket turns are sequential, reject HTTP-only fields, and return
previous_response_not_foundandwebsocket_connection_limit_reachedas error envelopes (Spec § WebSocket Transport to § WebSocket Errors). - Non-standard types are slug-prefixed and clients ignore unknown ones (Spec § Extending Open Responses).
- The compliance suite passes against the deployed base URL (Compliance).
Reference index
references/versions.md: the 2026-04-24 and 2026-01-15 releases, what changed, and the upgrade checklist. Load for steps 1 and 8.references/api.md: endpoints, request and response fields, items, content, reasoning, tools,tool_choice,allowed_tools,previous_response_id,truncation,service_tier, errors and the compaction endpoint. Load for steps 2 and 3.references/streaming.md: SSE framing, the full event list, item and content-part ordering, and WebSocket mode with continuation, compaction, reconnects and errors. Load for steps 4 and 5.references/extensions-and-compliance.md: extended items, hosted tools, extended events and fields, and the compliance tests and CLI. Load for steps 6 and 7.
Related skills
server-sent-eventsfor thetext/event-streamformat the streaming transport uses:npx skills add ScaleDockHQ/scaledock-skills --skill server-sent-events.websocketfor the RFC 6455 protocol under WebSocket mode:npx skills add ScaleDockHQ/scaledock-skills --skill websocket.openapifor the dated OpenAPI documents the compliance suite validates against:npx skills add ScaleDockHQ/scaledock-skills --skill openapi.json-schemafor function toolparameters:npx skills add ScaleDockHQ/scaledock-skills --skill json-schema.mcpfor Model Context Protocol servers as externally hosted tools:npx skills add ScaleDockHQ/scaledock-skills --skill mcp.opentelemetry-genaifor tracing model calls made through the API:npx skills add ScaleDockHQ/scaledock-skills --skill opentelemetry-genai.ag-uifor streaming agent events on to a user interface:npx skills add ScaleDockHQ/scaledock-skills --skill ag-ui.
Sources
Status uses the publisher's own maturity term. Checked is the date the source was last read.
- Open Responses Specification 2026-04-24: Released (dated specification), 2026-04-24, checked 2026-10-09.
- Open Responses API Reference 2026-04-24: Released (dated reference), 2026-04-24, checked 2026-10-09.
- Open Responses OpenAPI 2026-04-24: Released (immutable dated OpenAPI 3.1 document), info.version 2026-04-24, checked 2026-10-09.
- Open Responses Acceptance Tests: Compliance suite, 10 browser and 7 CLI tests as of 2026-04-24, checked 2026-10-09.
- Open Responses Changelog: Changelog, latest entry 2026-04-24, checked 2026-10-09.
- openresponses/openresponses: Repository (TypeSpec source, dated OpenAPI releases, compliance CLI), main as of 2026-10-09, checked 2026-10-09.
- Open Responses Specification 2026-01-15: Released (dated specification), 2026-01-15, checked 2026-10-09.
- Open Responses OpenAPI 2026-01-15: Released (immutable dated OpenAPI 3.1 document), info.version 2026-01-15, checked 2026-10-09.