GoogleConfig

GoogleConfig is a configuration class for setting up and customizing integrations with the Google Generative Language API. It allows for specifying an API key, configuring timeouts, and setting the base URL used for API requests.

Parameters

apiKey

The API key required to authenticate requests to the Google Generative Language API.

Constructors

Link copied to clipboard
constructor()

Creates an instance of GoogleConfig with the provided API key.

Properties

Link copied to clipboard

Specifies the base URL for API requests to the Generative Language API. It determines the endpoint to which HTTP requests are made.

Link copied to clipboard

httpClient is an instance of HttpClient used for making HTTP requests to external services. This property is configurable and allows customization of the HTTP client settings, such as connection timeouts, headers, and other HTTP-specific configurations.

Link copied to clipboard

Represents the timeout configuration for network interactions with the Google API. This configuration includes parameters for setting the timeouts for request execution, connection establishment, and socket communication.

Functions

Link copied to clipboard

Configures the timeout settings for requests, connections, and socket operations. Applies the settings specified in the provided configuration block to update the timeoutConfig.