Skip to main content
OpenAIResponses is a class for interacting with OpenAI models using the Responses API, which is distinct from the Chat Completions API. It supports tool use, file processing, and knowledge retrieval.

Authentication

Set your OPENAI_API_KEY environment variable. You can get one from OpenAI here.

Example

Use OpenAIResponses with your Agent:
View more examples here.

Parameters

See the OpenAI Responses docs. OpenAIResponses is a subclass of the Model class and has access to the same params.