Interface ExternalApi

Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec.

interface ExternalApi {
    apiAuth?: ApiAuth;
    apiSpec?: ApiSpec;
    authConfig?: AuthConfig;
    elasticSearchParams?: ExternalApiElasticSearchParams;
    endpoint?: string;
    simpleSearchParams?: ExternalApiSimpleSearchParams;
}

Properties

apiAuth?: ApiAuth

The authentication config to access the API. Deprecated. Please use auth_config instead.

apiSpec?: ApiSpec

The API spec that the external API implements.

authConfig?: AuthConfig

The authentication config to access the API.

elasticSearchParams?: ExternalApiElasticSearchParams

Parameters for the elastic search API.

endpoint?: string

The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search

simpleSearchParams?: ExternalApiSimpleSearchParams

Parameters for the simple search API.