- Resource: Tool
- JSON representation
- ClientFunction
- OpenApiTool
- GoogleSearchTool
- GoogleSearchTool.PromptConfig
- ConnectorTool
- DataStoreTool
- DataStoreTool.DataStoreSource
- DataStore
- DataStore.DataStoreType
- DataStore.DocumentProcessingMode
- DataStore.ConnectorConfig
- DataStoreTool.EngineSource
- DataStoreTool.BoostSpecs
- DataStoreTool.BoostSpec
- DataStoreTool.BoostSpec.ConditionBoostSpec
- DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec
- DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType
- DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType
- DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint
- DataStoreTool.ModalityConfig
- DataStoreTool.ModalityConfig.ModalityType
- DataStoreTool.RewriterConfig
- DataStoreTool.SummarizationConfig
- DataStoreTool.GroundingConfig
- DataStoreTool.FilterParameterBehavior
- PythonFunction
- McpTool
- FileSearchTool
- FileSearchTool.CorpusType
- SystemTool
- WidgetTool
- WidgetTool.WidgetType
- Methods
Resource: Tool
A tool represents an action that the CES agent can take to achieve certain goals.
| JSON representation |
|---|
{ "name": string, "displayName": string, "executionType": enum ( |
| Fields | |
|---|---|
name |
Identifier. The unique identifier of the tool. Format: -
|
displayName |
Output only. The display name of the tool, derived based on the tool's type. For example, display name of a [ClientFunction][Tool.ClientFunction] is derived from its |
executionType |
Optional. The execution type of the tool. |
createTime |
Output only. Timestamp when the tool was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Timestamp when the tool was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
etag |
Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes. |
generatedSummary |
Output only. If the tool is generated by the LLM assistant, this field contains a descriptive summary of the generation. |
toolFakeConfig |
Optional. Configuration for tool behavior in fake mode. |
Union field tool_type. The type of the tool. tool_type can be only one of the following: |
|
clientFunction |
Optional. The client function. |
openApiTool |
Optional. The open API tool. |
googleSearchTool |
Optional. The google search tool. |
connectorTool |
Optional. The Integration Connector tool. |
dataStoreTool |
Optional. The data store tool. |
pythonFunction |
Optional. The python function tool. |
mcpTool |
Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the MCP toolset. |
fileSearchTool |
Optional. The file search tool. |
systemTool |
Optional. The system tool. |
widgetTool |
Optional. The widget tool. |
ClientFunction
Represents a client-side function that the agent can invoke. When the tool is chosen by the agent, control is handed off to the client. The client is responsible for executing the function and returning the result as a ToolResponse to continue the interaction with the agent.
| JSON representation |
|---|
{ "name": string, "description": string, "parameters": { object ( |
| Fields | |
|---|---|
name |
Required. The function name. |
description |
Optional. The function description. |
parameters |
Optional. The schema of the function parameters. |
response |
Optional. The schema of the function response. |
OpenApiTool
A remote API tool defined by an OpenAPI schema.
| JSON representation |
|---|
{ "openApiSchema": string, "name": string, "description": string, "apiAuthentication": { object ( |
| Fields | |
|---|---|
openApiSchema |
Required. The OpenAPI schema in JSON or YAML format. |
name |
Optional. The name of the tool. If not provided, the name of the tool will be derived from the OpenAPI schema, from |
description |
Optional. The description of the tool. If not provided, the description of the tool will be derived from the OpenAPI schema, from |
apiAuthentication |
Optional. Authentication information required by the API. |
tlsConfig |
Optional. The TLS configuration. Includes the custom server certificates that the client will trust. |
serviceDirectoryConfig |
Optional. Service Directory configuration. |
ignoreUnknownFields |
Optional. If true, the agent will ignore unknown fields in the API response. |
url |
Optional. The server URL of the Open API schema. This field is only set in tools in the environment dependencies during the export process if the schema contains a server url. During the import process, if this url is present in the environment dependencies and the schema has the $env_var placeholder, it will replace the placeholder in the schema. |
GoogleSearchTool
Represents a tool to perform Google web searches for grounding. See https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search.
| JSON representation |
|---|
{
"name": string,
"description": string,
"contextUrls": [
string
],
"preferredDomains": [
string
],
"excludeDomains": [
string
],
"promptConfig": {
object ( |
| Fields | |
|---|---|
name |
Required. The name of the tool. |
description |
Optional. Description of the tool's purpose. |
contextUrls[] |
Optional. Content will be fetched directly from these URLs for context and grounding. Example: "https://example.com/path.html". A maximum of 20 URLs are allowed. |
preferredDomains[] |
Optional. Specifies domains to restrict search results to. Example: "example.com", "another.site". A maximum of 20 domains can be specified. |
excludeDomains[] |
Optional. List of domains to be excluded from the search results. Example: "example.com". A maximum of 2000 domains can be excluded. |
promptConfig |
Optional. Prompt instructions passed to planner on how the search results should be processed for text and voice. |
GoogleSearchTool.PromptConfig
Prompt settings used by the model when processing or summarizing the google search results.
| JSON representation |
|---|
{ "textPrompt": string, "voicePrompt": string } |
| Fields | |
|---|---|
textPrompt |
Optional. Defines the prompt used for the system instructions when interacting with the agent in chat conversations. If not set, default prompt will be used. |
voicePrompt |
Optional. Defines the prompt used for the system instructions when interacting with the agent in voice conversations. If not set, default prompt will be used. |
ConnectorTool
A ConnectorTool allows connections to different integrations. See: https://cloud.google.com/integration-connectors/docs/overview.
| JSON representation |
|---|
{ "connection": string, "action": { object ( |
| Fields | |
|---|---|
connection |
Required. The full resource name of the referenced Integration Connectors Connection. Format: |
action |
Required. Action for the tool to use. |
authConfig |
Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details. |
name |
Optional. The name of the tool that can be used by the Agent to decide whether to call this ConnectorTool. |
description |
Optional. The description of the tool that can be used by the Agent to decide whether to call this ConnectorTool. |
DataStoreTool
Tool to retrieve from Vertex AI Search datastore or engine for grounding. Accepts either a datastore or an engine, but not both. See Vertex AI Search: https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
| JSON representation |
|---|
{ "name": string, "description": string, "boostSpecs": [ { object ( |
| Fields | |
|---|---|
name |
Required. The data store tool name. |
description |
Optional. The tool description. |
boostSpecs[] |
Optional. Boost specification to boost certain documents. |
modalityConfigs[] |
Optional. The modality configs for the data store. |
filterParameterBehavior |
Optional. The filter parameter behavior. |
Union field search_source. Defines the search source, either a single DataStore or an Engine. search_source can be only one of the following: |
|
dataStoreSource |
Optional. Search within a single specific DataStore. |
engineSource |
Optional. Search within an Engine (potentially across multiple DataStores). |
DataStoreTool.DataStoreSource
Configuration for searching within a specific DataStore.
| JSON representation |
|---|
{
"filter": string,
"dataStore": {
object ( |
| Fields | |
|---|---|
filter |
Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata |
dataStore |
Optional. The data store. |
DataStore
A DataStore resource in Vertex AI Search.
| JSON representation |
|---|
{ "name": string, "type": enum ( |
| Fields | |
|---|---|
name |
Required. Full resource name of the DataStore. Format: |
type |
Output only. The type of the data store. This field is readonly and populated by the server. |
documentProcessingMode |
Output only. The document processing mode for the data store connection. Only set for PUBLIC_WEB and UNSTRUCTURED data stores. |
displayName |
Output only. The display name of the data store. |
createTime |
Output only. Timestamp when the data store was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
connectorConfig |
Output only. The connector config for the data store connection. |
DataStore.DataStoreType
The type of the data store.
| Enums | |
|---|---|
DATA_STORE_TYPE_UNSPECIFIED |
Not specified. This value indicates that the data store type is not specified, so it will not be used during search. |
PUBLIC_WEB |
A data store that contains public web content. |
UNSTRUCTURED |
A data store that contains unstructured private data. |
FAQ |
A data store that contains structured data used as FAQ. |
CONNECTOR |
A data store that is a connector to a first-party or a third-party service. |
DataStore.DocumentProcessingMode
The document processing mode of the data store.
| Enums | |
|---|---|
DOCUMENT_PROCESSING_MODE_UNSPECIFIED |
Not specified. |
DOCUMENTS |
Documents are processed as documents. |
CHUNKS |
Documents are converted to chunks. |
DataStore.ConnectorConfig
The connector config for the data store connection.
| JSON representation |
|---|
{ "collection": string, "collectionDisplayName": string, "dataSource": string } |
| Fields | |
|---|---|
collection |
Resource name of the collection the data store belongs to. |
collectionDisplayName |
Display name of the collection the data store belongs to. |
dataSource |
The name of the data source. Example: |
DataStoreTool.EngineSource
Configuration for searching within an Engine, potentially targeting specific DataStores.
| JSON representation |
|---|
{
"engine": string,
"dataStoreSources": [
{
object ( |
| Fields | |
|---|---|
engine |
Required. Full resource name of the Engine. Format: |
dataStoreSources[] |
Optional. Use to target specific DataStores within the Engine. If empty, the search applies to all DataStores associated with the Engine. |
filter |
Optional. A filter applied to the search across the Engine. Not relevant and not used if 'dataStoreSources' is provided. See: https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata |
DataStoreTool.BoostSpecs
Boost specifications to boost certain documents. For more information, please refer to https://cloud.google.com/generative-ai-app-builder/docs/boosting.
| JSON representation |
|---|
{
"dataStores": [
string
],
"spec": [
{
object ( |
| Fields | |
|---|---|
dataStores[] |
Required. The Data Store where the boosting configuration is applied. Full resource name of DataStore, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. |
spec[] |
Required. A list of boosting specifications. |
DataStoreTool.BoostSpec
Boost specification to boost certain documents.
| JSON representation |
|---|
{
"conditionBoostSpecs": [
{
object ( |
| Fields | |
|---|---|
conditionBoostSpecs[] |
Required. A list of boosting specifications. |
DataStoreTool.BoostSpec.ConditionBoostSpec
Boost specification for a condition.
| JSON representation |
|---|
{
"condition": string,
"boost": number,
"boostControlSpec": {
object ( |
| Fields | |
|---|---|
condition |
Required. An expression which specifies a boost condition. The syntax is the same as filter expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) |
boost |
Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the suggestions a big demotion. However, other suggestions that are relevant might still be shown. Setting to 0.0 means no boost applied. The boosting condition is ignored. |
boostControlSpec |
Optional. Complex specification for custom ranking based on customer defined attribute value. |
DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec
Specification for custom ranking based on customer specified attribute value. It provides more controls for customized ranking than the simple (condition, boost) combination above.
| JSON representation |
|---|
{ "fieldName": string, "attributeType": enum ( |
| Fields | |
|---|---|
fieldName |
Optional. The name of the field whose value will be used to determine the boost amount. |
attributeType |
Optional. The attribute type to be used to determine the boost amount. The attribute value can be derived from the field value of the specified fieldName. In the case of numerical it is straightforward i.e. attributeValue = numerical_field_value. In the case of freshness however, attributeValue = (time.now() - datetime_field_value). |
interpolationType |
Optional. The interpolation type to be applied to connect the control points listed below. |
controlPoints[] |
Optional. The control points used to define the curve. The monotonic function (defined through the interpolationType above) passes through the control points listed here. |
DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType
The attribute(or function) for which the custom ranking is to be applied.
| Enums | |
|---|---|
ATTRIBUTE_TYPE_UNSPECIFIED |
Unspecified AttributeType. |
NUMERICAL |
The value of the numerical field will be used to dynamically update the boost amount. In this case, the attributeValue (the x value) of the control point will be the actual value of the numerical field for which the boostAmount is specified. |
FRESHNESS |
For the freshness use case the attribute value will be the duration between the current time and the date in the datetime field specified. The value must be formatted as an XSD dayTimeDuration value (a restricted subset of an ISO 8601 duration value). The pattern for this is: [nD][T[nH][nM][nS]]. E.g. 5D, 3DT12H30M, T24H. |
DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType
The interpolation type to be applied. Default will be linear (Piecewise Linear).
| Enums | |
|---|---|
INTERPOLATION_TYPE_UNSPECIFIED |
Interpolation type is unspecified. In this case, it defaults to Linear. |
LINEAR |
Piecewise linear interpolation will be applied. |
DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint
The control points used to define the curve. The curve defined through these control points can only be monotonically increasing or decreasing(constant values are acceptable).
| JSON representation |
|---|
{ "attributeValue": string, "boostAmount": number } |
| Fields | |
|---|---|
attributeValue |
Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The value must be formatted as an XSD |
boostAmount |
Optional. The value between -1 to 1 by which to boost the score if the attributeValue evaluates to the value specified above. |
DataStoreTool.ModalityConfig
If specified, will apply the given configuration for the specified modality.
| JSON representation |
|---|
{ "modalityType": enum ( |
| Fields | |
|---|---|
modalityType |
Required. The modality type. |
rewriterConfig |
Optional. The rewriter config. |
summarizationConfig |
Optional. The summarization config. |
groundingConfig |
Optional. The grounding configuration. |
DataStoreTool.ModalityConfig.ModalityType
The modality type.
| Enums | |
|---|---|
MODALITY_TYPE_UNSPECIFIED |
Unspecified modality type. |
TEXT |
Text modality. |
AUDIO |
Audio modality. |
DataStoreTool.RewriterConfig
Rewriter configuration.
| JSON representation |
|---|
{
"modelSettings": {
object ( |
| Fields | |
|---|---|
modelSettings |
Required. Configurations for the LLM model. |
prompt |
Optional. The prompt definition. If not set, default prompt will be used. |
disabled |
Optional. Whether the rewriter is disabled. |
DataStoreTool.SummarizationConfig
Summarization configuration.
| JSON representation |
|---|
{
"modelSettings": {
object ( |
| Fields | |
|---|---|
modelSettings |
Optional. Configurations for the LLM model. |
prompt |
Optional. The prompt definition. If not set, default prompt will be used. |
disabled |
Optional. Whether summarization is disabled. |
DataStoreTool.GroundingConfig
Grounding configuration.
| JSON representation |
|---|
{ "groundingLevel": number, "disabled": boolean } |
| Fields | |
|---|---|
groundingLevel |
Optional. The groundedness threshold of the answer based on the retrieved sources. The value has a configurable range of [1, 5]. The level is used to threshold the groundedness of the answer, meaning that all responses with a groundedness score below the threshold will fall back to returning relevant snippets only. For example, a level of 3 means that the groundedness score must be 3 or higher for the response to be returned. |
disabled |
Optional. Whether grounding is disabled. |
DataStoreTool.FilterParameterBehavior
Filter parameter behavior.
| Enums | |
|---|---|
FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED |
Default filter behavior. Include filter parameter for connector datastores. For the rest of the datastore types, the filter input parameter is omitted. |
ALWAYS_INCLUDE |
Always include filter parameter for all datastore types. |
NEVER_INCLUDE |
The filter parameter is never included in the list of tool parameters, regardless of the datastore type. |
PythonFunction
A Python function tool.
| JSON representation |
|---|
{ "name": string, "pythonCode": string, "description": string } |
| Fields | |
|---|---|
name |
Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used. |
pythonCode |
Optional. The Python code to execute for the tool. |
description |
Output only. The description of the Python function, parsed from the python code's docstring. |
McpTool
An MCP tool. See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more details.
| JSON representation |
|---|
{ "name": string, "description": string, "inputSchema": { object ( |
| Fields | |
|---|---|
name |
Required. The name of the MCP tool. |
description |
Optional. The description of the MCP tool. |
inputSchema |
Optional. The schema of the input arguments of the MCP tool. |
outputSchema |
Optional. The schema of the output arguments of the MCP tool. |
serverAddress |
Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. This is the same as the serverAddress in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details. |
apiAuthentication |
Optional. Authentication information required to execute the tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication. |
tlsConfig |
Optional. The TLS configuration. Includes the custom server certificates that the client should trust. |
serviceDirectoryConfig |
Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter. |
FileSearchTool
The file search tool allows the agent to search across the files uploaded by the app/agent developer. It has presets to give relatively good quality search over the uploaded files and summarization of the retrieved results.
| JSON representation |
|---|
{
"corpusType": enum ( |
| Fields | |
|---|---|
corpusType |
Optional. The type of the corpus. Default is FULLY_MANAGED. |
name |
Required. The tool name. |
description |
Optional. The tool description. |
fileCorpus |
Optional. The corpus where files are stored. Format: projects/{project}/locations/{location}/ragCorpora/{ragCorpus} |
FileSearchTool.CorpusType
The type of the Vertex RAG corpus.
| Enums | |
|---|---|
CORPUS_TYPE_UNSPECIFIED |
Unspecified corpus type. |
USER_OWNED |
The corpus is created and owned by the user. |
FULLY_MANAGED |
The corpus is created by the agent. |
SystemTool
Pre-defined system tool.
| JSON representation |
|---|
{ "name": string, "description": string } |
| Fields | |
|---|---|
name |
Required. The name of the system tool. |
description |
Output only. The description of the system tool. |
WidgetTool
Represents a widget tool that the agent can invoke. When the tool is chosen by the agent, agent will return the widget to the client. The client is responsible for processing the widget and generating the next user query to continue the interaction with the agent.
| JSON representation |
|---|
{ "name": string, "description": string, "widgetType": enum ( |
| Fields | |
|---|---|
name |
Required. The display name of the widget tool. |
description |
Optional. The description of the widget tool. |
widgetType |
Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED. |
Union field input. The input of the widget tool. input can be only one of the following: |
|
parameters |
Optional. The input parameters of the widget tool. |
WidgetTool.WidgetType
All available widget types. New values may be added to this enum in the future.
| Enums | |
|---|---|
WIDGET_TYPE_UNSPECIFIED |
Unspecified widget type. |
CUSTOM |
Custom widget type. |
PRODUCT_CAROUSEL |
Product carousel widget. |
PRODUCT_DETAILS |
Product details widget. |
QUICK_ACTIONS |
Quick actions widget. |
PRODUCT_COMPARISON |
Product comparison widget. |
ADVANCED_PRODUCT_DETAILS |
Advanced product details widget. |
SHORT_FORM |
Short form widget. |
OVERALL_SATISFACTION |
Overall satisfaction widget. |
ORDER_SUMMARY |
Order summary widget. |
APPOINTMENT_DETAILS |
Appointment details widget. |
APPOINTMENT_SCHEDULER |
Appointment scheduler widget. |
Methods |
|
|---|---|
|
Creates a new tool in the given app. |
|
Deletes the specified tool. |
|
Gets details of the specified tool. |
|
Lists tools in the given app. |
|
Updates the specified tool. |