Package-level declarations
Types
The functions the model may ask for during a chat, and the limits on running them.
A function you give to the model, and the handler that runs when the model asks for it.
The main entry point for the Google Gen AI SDK.
Exception thrown for 4xx client errors from the GenAI API.
Marks declarations that are experimental in the Google GenAI SDK.
Exception thrown when the GenAI API returns an error response.
Base exception class for all exceptions originating from the GenAI SDK.
Represents the credentials used to authenticate requests to the Google GenAI API.
Represents an active WebSocket session with the Live API.
Exception thrown for 5xx server errors from the GenAI API.
Functions
Makes a CallableFunction from a function that takes no parameters.
Makes a CallableFunction from a function that takes one @Serializable class of parameters.
Makes a CallableFunction from a function that takes one parameter.
Makes a CallableFunction from a function that takes two parameters.
Makes a CallableFunction from a function that takes three parameters.
Downloads a file from the API and streams it directly to a local file path.
Uploads a file at the specified path to the API.
Uploads a file to the API.