Package-level declarations
Types
Represents the content of a message in the OpenAI chat completion API. Can be either a simple text message or a complex content consisting of multiple parts.
Structured Outputs configuration options, including a JSON Schema.
Data about a previous audio response from the model.
Parameters for audio output.
Represents the supported audio output formats.
Represents the available voice options for audio output in OpenAI's system.
Base interface for LLM OpenAI API requests. Contains properties that are common across all supported LLM providers.
Base interface for all LLM OpenAI API responses. Contains properties that are common across different response types.
Represents a base interface for handling real-time streaming responses from OpenAI's LLM API. Provides a structure extending from the common attributes defined in OpenAIBaseLLMResponse
. Used as a foundation for streaming response data models in OpenAI integrations.
Chat completion choice
Represents a content part that can be used within OpenAI chat completion APIs. This is a sealed interface that defines various types of content components, like text, images, audio, and files, enabling diverse inputs and outputs in the API.
Function call from an OpenAI model, containing the function name and arguments.
Represents a message in the OpenAI chat completion API.
Specifies the supported modalities for OpenAI API operations.
Expected response format from OpenAI's chat completion API. This interface defines different types of response formats that can be requested:
Static predicted output content, such as the content of a text file that is being regenerated.
Options for streaming response.
Tool the model may call.
Tool call generated by the OpenAI model.
Controls which (if any) tool is called by the model.
Approximate location parameters for the search.
Constrains the amount of effort a reasoning-capable model spends on internal reasoning.
Service tier used to process a request.