GoogleModelOptions
Namespace: E2E
public sealed class GoogleModelOptionsInheritance: object
Properties
Section titled “Properties”ApiKey
Section titled “ApiKey”public string? ApiKey { get; init; }Value: string
ApiKeyEnv
Section titled “ApiKeyEnv”public string ApiKeyEnv { get; init; }Environment variable read when ApiKey is empty. Defaults to GOOGLE_GENERATIVE_AI_API_KEY, as the AI SDK.
Value: string
BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; init; }The API root; requests go to {BaseUrl}/models/{Model}:generateContent.
Value: string
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; init; }Value: IReadOnlyDictionary<string, string>
public required string Model { get; init; }Value: string
Provider
Section titled “Provider”public string Provider { get; init; }The key this client reads in ProviderOptions. Its fields (such as generationConfig) are added to the body.
Value: string
Methods
Section titled “Methods”ResolveApiKey()
Section titled “ResolveApiKey()”public string? ResolveApiKey()Returns: string