projects

PATCH /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/agents/{agentsId}

Changed on

Updates the specified agent.

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
agentsId, 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").

updateMask, string google-fieldmask

Optional. Field mask is used to control which fields get updated. If the mask is not present, all fields will be updated.

Request body

Agent required

An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.

afterAgentCallbacks, Callback[]

Optional. The callbacks to execute after the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

afterModelCallbacks, Callback[]

Optional. The callbacks to execute after the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

afterToolCallbacks, Callback[]

Optional. The callbacks to execute after the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

beforeAgentCallbacks, Callback[]

Optional. The callbacks to execute before the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

beforeModelCallbacks, Callback[]

Optional. The callbacks to execute before the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

beforeToolCallbacks, Callback[]

Optional. The callbacks to execute before the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

childAgents, string[]

Optional. List of child agents in the agent tree. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

createTime, string google-datetime

Output only. Timestamp when the agent was created.

description, string

Optional. Human-readable description of the agent.

displayName, string

Required. Display name of the agent.

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.

generatedSummary, string

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

guardrails, string[]

Optional. List of guardrails for the agent. Format: projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}

instruction, string

Optional. Instructions for the LLM model to guide the agent's behavior.

llmAgent, AgentLlmAgent

Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model.

modelSettings, ModelSettings

Model settings contains various configurations for the LLM model.

name, string

Identifier. The unique identifier of the agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

remoteA2aAgent, AgentRemoteA2aAgent

The agent which will transfer execution to a remote A2A agent.

remoteDialogflowAgent, AgentRemoteDialogflowAgent

The agent which will transfer execution to a remote Dialogflow CX agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent.

tools, string[]

Optional. List of available tools for the agent. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}

toolsets, AgentAgentToolset[]

Optional. List of toolsets for the agent.

transferRules, TransferRule[]

Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.

updateTime, string google-datetime

Output only. Timestamp when the agent was last updated.

validationErrors, string[]

Output only. Misconfigurations or errors in the agent that may affect agent quality.

Response

Successful response

Agent required

An agent acts as the fundamental building block that provides instructions to the Large Language Model (LLM) for executing specific tasks.

afterAgentCallbacks, Callback[]

Optional. The callbacks to execute after the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

afterModelCallbacks, Callback[]

Optional. The callbacks to execute after the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

afterToolCallbacks, Callback[]

Optional. The callbacks to execute after the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

beforeAgentCallbacks, Callback[]

Optional. The callbacks to execute before the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

beforeModelCallbacks, Callback[]

Optional. The callbacks to execute before the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

beforeToolCallbacks, Callback[]

Optional. The callbacks to execute before the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.

childAgents, string[]

Optional. List of child agents in the agent tree. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

createTime, string google-datetime

Output only. Timestamp when the agent was created.

description, string

Optional. Human-readable description of the agent.

displayName, string

Required. Display name of the agent.

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.

generatedSummary, string

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

guardrails, string[]

Optional. List of guardrails for the agent. Format: projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}

instruction, string

Optional. Instructions for the LLM model to guide the agent's behavior.

llmAgent, AgentLlmAgent

Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model.

modelSettings, ModelSettings

Model settings contains various configurations for the LLM model.

name, string

Identifier. The unique identifier of the agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

remoteA2aAgent, AgentRemoteA2aAgent

The agent which will transfer execution to a remote A2A agent.

remoteDialogflowAgent, AgentRemoteDialogflowAgent

The agent which will transfer execution to a remote Dialogflow CX agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent.

tools, string[]

Optional. List of available tools for the agent. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}

toolsets, AgentAgentToolset[]

Optional. List of toolsets for the agent.

transferRules, TransferRule[]

Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.

updateTime, string google-datetime

Output only. Timestamp when the agent was last updated.

validationErrors, string[]

Output only. Misconfigurations or errors in the agent that may affect agent quality.

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