b92f75fd3b61
Responses
OpenAI-compatible Responses API endpoint.
Thin shell over :func:services.inference.adapters.openai_responses.run_responses. The adapter handles input-item to chat-message translation, LLM-passthrough vs Pioneer-task dispatch, SSE rendering, tool-call serialisation, persistence, and error mapping. The router keeps only HTTP-shaped concerns: route declaration, auth, rate limiting.
Args: body: Validated :class:ResponsesRequest. request: FastAPI request (forwarded so the adapter can read API-key billing context out of request.state for streaming responses). response: Response whose headers carry the deprecation and router-tip signals. auth: Authenticated request context.
Returns: JSON response payload or :class:StreamingResponse SSE stream in Responses API format.
Request body
Response
Successful Response