Google Cloud Ai Platform V1 Client - Class ParallelAiSearch (1.59.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ParallelAiSearch.

ParallelAiSearch tool type.

A tool that uses the Parallel.ai search engine for grounding.

Generated from protobuf message google.cloud.aiplatform.v1.Tool.ParallelAiSearch

Namespace

Google \ Cloud \ AIPlatform \ V1 \ Tool

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ api_key string

Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.

↳ custom_configs Google\Protobuf\Struct

Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only source_policy, excerpts, max_results, mode, fetch_policy can be set via this field. For example: { "source_policy": { "include_domains": ["google.com", "wikipedia.org"], "exclude_domains": ["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } }

getApiKey

Optional. The API key for ParallelAiSearch.

If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.

Returns
Type Description
string

setApiKey

Optional. The API key for ParallelAiSearch.

If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.

Parameter
Name Description
var string
Returns
Type Description
$this

getCustomConfigs

Optional. Custom configs for ParallelAiSearch.

This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only source_policy, excerpts, max_results, mode, fetch_policy can be set via this field. For example: { "source_policy": { "include_domains": ["google.com", "wikipedia.org"], "exclude_domains": ["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } }

Returns
Type Description
Google\Protobuf\Struct|null

hasCustomConfigs

clearCustomConfigs

setCustomConfigs

Optional. Custom configs for ParallelAiSearch.

This field can be used to pass any parameter from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of available parameters and their usage: https://docs.parallel.ai/api-reference/search-beta/search Currently only source_policy, excerpts, max_results, mode, fetch_policy can be set via this field. For example: { "source_policy": { "include_domains": ["google.com", "wikipedia.org"], "exclude_domains": ["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } }

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this