This module provides an implementation of the OpenAI Responses API. The API reference can be found at https://platform.openai.com/docs/api-reference/responses.
Summary
Functions
Cancels a background response.
Compacts a response, carrying prior state forward in fewer tokens.
Creates a new response.
Deletes a response.
Lists input items from a response. See https://platform.openai.com/docs/api-reference/responses/input-items
Returns the input token counts for a hypothetical response.
Retrieves a response.
Functions
Cancels a background response.
Only responses created with background: true can be cancelled.
https://platform.openai.com/docs/api-reference/responses/cancel
Compacts a response, carrying prior state forward in fewer tokens.
https://platform.openai.com/docs/api-reference/responses/compact
Creates a new response.
https://platform.openai.com/docs/api-reference/responses/create
Deletes a response.
See https://platform.openai.com/docs/api-reference/responses/delete
Lists input items from a response. See https://platform.openai.com/docs/api-reference/responses/input-items
Returns the input token counts for a hypothetical response.
https://platform.openai.com/docs/api-reference/responses/input_tokens
Retrieves a response.
https://platform.openai.com/docs/api-reference/responses/retrieve