public class GoogleAIPlatformAdapter : IPlatformAdapter
GoogleAIPlatformAdapter | Initializes a new instance of the GoogleAIPlatformAdapter class |
ApiVersion | Gets or sets the API version used for constructing API request URLs in the integration with the Google AI platform. This property must be set to a valid version string defined in ApiVersions. |
BaseUrl | Gets or sets the base URL used for making requests to the Google AI Generative API. By default, this property is initialized to the URL specified in GoogleGenerativeAI. It serves as the foundational endpoint for constructing resource-specific URLs. |
Credentials | Gets the credentials used for authentication when making requests to the Google AI platform. This property provides an instance of GoogleAICredentials which encapsulates the API key and optionally an access token required for authorization. |
AddAuthorizationAsync | Adds the required authorization headers to the provided HTTP request message. This includes both API key and OAuth2 Bearer token as applicable. |
AuthorizeAsync | |
CreateUrlForModel | Constructs a URL for a specific AI model and task by appending the model ID and task to the base URL and API version. |
CreateUrlForTunedModel | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetApiVersion | |
GetApiVersionForFile | |
GetBaseUrl | Constructs and retrieves the base URL for the Google Generative AI platform, optionally appending the API version to the URL. |
GetBaseUrlForFile | |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
ValidateCredentialsAsync(CancellationToken) | |
ValidateCredentialsAsync(Boolean, CancellationToken) |