Namespace Google.GenAI
Classes
- ApiClient
Abstract base class for an API client which issues HTTP requests to the GenAI APIs.
- ApiResponse
The API response contains a response to a call to the GenAI APIs. This class is abstract and implements IDisposable for resource management.
- AsyncSession
Represents a websocket connection to the Google's GenAI Live API. This class is not meant to be instantiated directly. Instead, use ConnectAsync(string, LiveConnectConfig, CancellationToken) to create an instance.
- Client
Client for making synchronous requests. Using this client to make a request to Gemini Developer API or Vertex AI API.
- ClientError
Represents a client error (4xx HTTP status codes) from the API.
- Common
Common utility methods for the GenAI SDK to work with JSON.
- HttpApiResponse
Wraps a real HTTP response (HttpResponseMessage) to expose the methods needed by the GenAI SDK.
- Live
Live class encapsulates the logic for connecting to Google's GenAI Live API. Use ConnectAsync(string, LiveConnectConfig, CancellationToken) to establish a websocket connection session.
- MimeTypes
Provides utilities for mapping file names and extensions to MIME-types.
- Models
Provides methods to interact with the Gen AI models. This class is not intended to be instantiated directly, instead it should be accessed through the Client class.
- Pager<TItem, TConfig, TResponse>
Pager class for iterating through paginated results. Supports asynchronous enumeration via
await foreachand explicit page fetching viaNextPageAsync().
- ServerError
Represents a server error (5xx HTTP status codes) from the API.
- Tokens
Provides methods for managing the ephemeral auth tokens. The tokens module is experimental.