Package-level declarations
Types
Link copied to clipboard
The main entry point for the Google Gen AI SDK.
Link copied to clipboard
Exception thrown for 4xx client errors from the GenAI API.
Link copied to clipboard
Exception thrown when the GenAI API returns an error response.
Link copied to clipboard
Base exception class for all exceptions originating from the GenAI SDK.
Link copied to clipboard
Represents the credentials used to authenticate requests to the Google GenAI API.
Link copied to clipboard
Represents an active WebSocket session with the Live API.
Link copied to clipboard
Exception thrown for 5xx server errors from the GenAI API.
Functions
Link copied to clipboard
suspend fun Files.downloadToFile(file: File, outputPath: <Error class: unknown class>, config: DownloadFileConfig? = null)
suspend fun Files.downloadToFile(fileName: String, outputPath: <Error class: unknown class>, config: DownloadFileConfig? = null)
Downloads a file from the API and streams it directly to a local file path.
Link copied to clipboard
suspend fun Files.upload(path: <Error class: unknown class>, config: UploadFileConfig? = null): File
Uploads a file at the specified path to the API.
suspend fun Files.upload(file: <Error class: unknown class>, config: UploadFileConfig? = null): File
Uploads a file to the API.