Package-level declarations
Types
Assistant message builder.
A completion generated by OpenAI.
A completion generated by OpenAI.
An object containing a response from the chat completion api.
Builder of ChatCompletionFunction instances.
Creates a completion for the chat message.
Creates a completion for the chat message.
Generated chat message.
The messages to generate chat completions for.
Builder of ChatMessageBuilder instances.
Creates a list of ChatMessage.
An object specifying the format that the model must output.
Represents a chat message part.
Represents a function invocation with its name and serialized arguments as generated by the model.
This interface determines how the model handles function calls.
Creates a list of ChatCompletionFunction.
A description of what the function does, used by the model to choose when and how to call the function.
Tool call builder.
Represents the function to call by the model.
Image content part.
The chat message content as a list of content parts.
An object containing log probability information for the choice.
An object containing logprobs for a single token
Represents parameters that a function accepts, described as a JSON Schema object.
Options for streaming response.
Builder for StreamOptions.
System message builder.
The chat message content as text.
Text content part.
A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
Creates a list of Tool.
Details of the tool call chunk.
List of tool calls builder.
Controls which (if any) function is called by the model.
Tool message builder.
An object containing a token and their log probability.
User message builder.
Functions
Assistant chat message.
The function to generate chat completion function instances.
The messages to generate chat completions for.
The messages to generate chat completions for.
Tool: function call.
Create a new StreamOptions instance.
System chat message.
Tool chat message.
User chat message.