projects

POST /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/tools

Changed on

Creates a new tool in the given app.

Request

  • Base URL
    https://ces.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/ces
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/ces
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform

Path parameters

projectsId, string required
locationsId, string required
appsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

toolId, string

Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.

Request body

Tool required

A tool represents an action that the CES agent can take to achieve certain goals.

agentTool, AgentTool

Represents a tool that allows the agent to call another agent.

clientFunction, 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.

connectorTool, ConnectorTool

A ConnectorTool allows connections to different integrations. See: https://cloud.google.com/integration-connectors/docs/overview.

createTime, string google-datetime

Output only. Timestamp when the tool was created.

dataStoreTool, 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.

displayName, string

Output only. The display name of the tool, derived based on the tool's type. For example, display name of a ClientFunction is derived from its name property.

etag, string

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.

executionType, 'EXECUTION_TYPE_UNSPECIFIED' | 'SYNCHRONOUS' | 'ASYNCHRONOUS'

Optional. The execution type of the tool.

fileSearchTool, 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.

generatedSummary, string

Output only. If the tool is generated by the LLM assistant, this field contains a descriptive summary of the generation.

googleSearchTool, 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.

mcpTool, McpTool
name, string

Identifier. The resource name of the tool. Format: * projects/{project}/locations/{location}/apps/{app}/tools/{tool} for standalone tools. * projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool} for tools retrieved from a toolset. These tools are dynamic and output-only; they cannot be referenced directly where a tool is expected.

openApiTool, OpenApiTool

A remote API tool defined by an OpenAPI schema.

pythonFunction, PythonFunction

A Python function tool.

readOnly, boolean

Output only. Indicates whether the tool is read-only. If true, the tool cannot be modified by the user.

remoteAgentTool, RemoteAgentTool

Represents a tool that allows the agent to call another remote agent.

systemTool, SystemTool

Pre-defined system tool.

timeout, string google-duration

Optional. The timeout for the tool execution. If not set, the default timeout is 30 seconds for SYNCHRONOUS tools and 60 seconds for ASYNCHRONOUS tools.

toolFakeConfig, ToolFakeConfig

Configuration for tool behavior in fake mode.

updateTime, string google-datetime

Output only. Timestamp when the tool was last updated.

widgetTool, 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.

Response

Successful response

Tool required

A tool represents an action that the CES agent can take to achieve certain goals.

agentTool, AgentTool

Represents a tool that allows the agent to call another agent.

clientFunction, 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.

connectorTool, ConnectorTool

A ConnectorTool allows connections to different integrations. See: https://cloud.google.com/integration-connectors/docs/overview.

createTime, string google-datetime

Output only. Timestamp when the tool was created.

dataStoreTool, 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.

displayName, string

Output only. The display name of the tool, derived based on the tool's type. For example, display name of a ClientFunction is derived from its name property.

etag, string

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.

executionType, 'EXECUTION_TYPE_UNSPECIFIED' | 'SYNCHRONOUS' | 'ASYNCHRONOUS'

Optional. The execution type of the tool.

fileSearchTool, 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.

generatedSummary, string

Output only. If the tool is generated by the LLM assistant, this field contains a descriptive summary of the generation.

googleSearchTool, 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.

mcpTool, McpTool
name, string

Identifier. The resource name of the tool. Format: * projects/{project}/locations/{location}/apps/{app}/tools/{tool} for standalone tools. * projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool} for tools retrieved from a toolset. These tools are dynamic and output-only; they cannot be referenced directly where a tool is expected.

openApiTool, OpenApiTool

A remote API tool defined by an OpenAPI schema.

pythonFunction, PythonFunction

A Python function tool.

readOnly, boolean

Output only. Indicates whether the tool is read-only. If true, the tool cannot be modified by the user.

remoteAgentTool, RemoteAgentTool

Represents a tool that allows the agent to call another remote agent.

systemTool, SystemTool

Pre-defined system tool.

timeout, string google-duration

Optional. The timeout for the tool execution. If not set, the default timeout is 30 seconds for SYNCHRONOUS tools and 60 seconds for ASYNCHRONOUS tools.

toolFakeConfig, ToolFakeConfig

Configuration for tool behavior in fake mode.

updateTime, string google-datetime

Output only. Timestamp when the tool was last updated.

widgetTool, 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.

Changes

    • info

      the security scope https://www.googleapis.com/auth/ces was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/ces was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was removed from the endpoint's security scheme Oauth2

    1 more change in this revision