---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/versions"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/versions"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/versions

`GET /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/versions`

## Request

- Base URL: `https://ces.googleapis.com`
- URL: `https://ces.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/versions`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/ces`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/ces`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists all app versions in the given app.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `appsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `orderBy` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- ListAppVersionsResponse: Response message for AgentService.ListAppVersions.
  - `appVersions` AppVersion[]: The list of app versions.
    - `createTime` string, google-datetime: Output only. Timestamp when the app version was created.
    - `creator` string: Output only. Email of the user who created the app version.
    - `description` string: Optional. The description of the app version.
    - `displayName` string: Optional. The display name of the app version.
    - `etag` string: Output only. 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.
    - `name` string: Identifier. The unique identifier of the app version. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
    - `snapshot` AppSnapshot: A snapshot of the app.
      - `agents` Agent[]: Optional. List of agents in the app.
        - `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.
          - `description` string: Optional. Human-readable description of the callback.
          - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
          - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
          - `pythonCode` string: Required. The python code to execute for the callback.
        - `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.
          - `description` string: Optional. Human-readable description of the callback.
          - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
          - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
          - `pythonCode` string: Required. The python code to execute for the callback.
        - `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.
          - `description` string: Optional. Human-readable description of the callback.
          - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
          - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
          - `pythonCode` string: Required. The python code to execute for the callback.
        - `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.
          - `description` string: Optional. Human-readable description of the callback.
          - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
          - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
          - `pythonCode` string: Required. The python code to execute for the callback.
        - `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.
          - `description` string: Optional. Human-readable description of the callback.
          - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
          - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
          - `pythonCode` string: Required. The python code to execute for the callback.
        - `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.
          - `description` string: Optional. Human-readable description of the callback.
          - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
          - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
          - `pythonCode` string: Required. The python code to execute for the callback.
        - `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.
          - `model` string: Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
          - `temperature` number, double: Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
          - `thinkingLevel` 'THINKING_LEVEL_UNSPECIFIED' | 'DEFAULT' | 'LOW' | 'MEDIUM' | 'HIGH': Optional. The thinking level of the 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](https://github.com/a2aproject/A2A) agent.
          - `a2aConfig` RemoteA2aConfig: Shared configuration for connecting to a remote [A2A](https://github.com/a2aproject/A2A) agent.
            - `agentCard` AgentCard: AgentCard conveys key information about a remote agent. It is a trimmed version of the AgentCard defined in the A2A protocol https://a2a-protocol.org/dev/specification/#441-agentcard
              - …
            - `agentRegistry` string: Optional. Reference to the agent in the Agent Registry. Format: `projects/{project}/locations/{location}/agents/{agent}`
            - `apiAuthentication` ApiAuthentication: Authentication information required for API calls.
              - …
            - `contextId` string: Optional. If not empty, interactions with the remote A2A agent will use this context ID. This context_id field can refer to a session variable like `$context.variables.order_agent_session_id`.
            - `inputVariableMapping` object: Optional. Mapping of input variable names of remote agent to GECX variable names.
            - `outputVariableMapping` object: Optional. Mapping of output variable names of remote agent to GECX variable names.
            - `streamingEnabled` boolean: Optional. Whether streaming is enabled for the remote agent.
        - `remoteDialogflowAgent` AgentRemoteDialogflowAgent: The agent which will transfer execution to a remote [Dialogflow CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) 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.
          - `agent` string: Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}`
          - `environmentId` string: Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not specified, the draft environment will be used.
          - `flowId` string: Optional. The flow ID of the flow in the Dialogflow agent.
          - `inputVariableMapping` object: Optional. The mapping of the app variables names to the Dialogflow session parameters names to be sent to the Dialogflow agent as input.
          - `languageCodeVariable` string: Optional. The name of the variable that contains the language code to be used for the Dialogflow session. If unspecified, the default language code of the Dialogflow agent will be used.
          - `outputVariableMapping` object: Optional. The mapping of the Dialogflow session parameters names to the app variables names to be sent back to the CES agent after the Dialogflow agent execution ends.
          - `respectResponseInterruptionSettings` boolean: Optional. Indicates whether to respect the message-level interruption settings configured in the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the app-level barge-in settings. * If true: response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to false will not be interruptable regardless of the app-level barge-in settings, all other messages follow the app-level barge-in settings.
        - `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.
          - `toolIds` string[]: Optional. The tools IDs to filter the toolset.
          - `toolset` string: Required. The resource name of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
        - `transferRules` TransferRule[]: Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
          - `childAgent` string: Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
          - `deterministicTransfer` TransferRuleDeterministicTransfer: Deterministic transfer rule. When the condition evaluates to true, the transfer occurs.
            - `expressionCondition` ExpressionCondition: Expression condition based on session state.
              - …
            - `pythonCodeCondition` PythonCodeCondition: Python code block to evaluate the condition.
              - …
          - `direction` 'DIRECTION_UNSPECIFIED' | 'PARENT_TO_CHILD' | 'CHILD_TO_PARENT': Required. The direction of the transfer.
          - `disablePlannerTransfer` TransferRuleDisablePlannerTransfer: A rule that prevents the planner from transferring to the target agent.
            - `expressionCondition` ExpressionCondition: Expression condition based on session state.
              - …
        - `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.
      - `app` App: An app serves as a top-level container for a group of agents, including the root agent and its sub-agents, along with their associated configurations. These agents work together to achieve specific goals within the app's context.
        - `audioProcessingConfig` AudioProcessingConfig: Configuration for how the input and output audio should be processed and delivered.
          - `ambientSoundConfig` AmbientSoundConfig: Configuration for the ambient sound to be played with the synthesized agent response, to enhance the naturalness of the conversation.
            - `gcsUri` string: Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud Storage object.
            - `prebuiltAmbientNoise` 'PREBUILT_AMBIENT_NOISE_UNSPECIFIED' | 'RETAIL_STORE' | 'CONVENTION_HALL' | 'OUTDOOR': Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of `prebuilt_ambient_sound`.
            - `prebuiltAmbientSound` string: Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - "room_4" - "room_5" - "air_conditioner"
            - `volumeGainDb` number, double: Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.
          - `bargeInConfig` BargeInConfig: Configuration for how the user barge-in activities should be handled.
            - `bargeInAwareness` boolean: Optional. If enabled, the agent will adapt its next response based on the assumption that the user hasn't heard the full preceding agent message. This should not be used in scenarios where agent responses are displayed visually.
            - `disableBargeIn` boolean: Optional. Deprecated: `disable_barge_in` is deprecated in favor of `disable_barge_in_control` in ChannelProfile. Disables user barge-in while the agent is speaking. If true, user input during agent response playback will be ignored.
          - `customVoiceSamples` CustomVoiceSample[]: Optional. Configures custom voice samples for voice cloning.
            - `consentAudioGcsUri` string: Optional. Consent audio for voice cloning.
            - `name` string: Optional. The user-defined name for the custom voice sample.
            - `previewAudioContent` string, byte: Output only. Synthesized preview audio for custom voice, formatted as canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
            - `previewText` string: Optional. Text for synthesizing preview audio for custom voice.
            - `voiceInstruction` string: Optional. Natural language instructions for voice style, tone, pacing, or pronunciation.
            - `voiceInstructionMode` 'VOICE_INSTRUCTION_MODE_UNSPECIFIED' | 'NO_INSTRUCTION' | 'GENERATE_INSTRUCTION' | 'CUSTOM_INSTRUCTION': Optional. Instruction mode for the voice sample. If unspecified, defaults to NO_INSTRUCTION.
            - `voiceSampleGcsUri` string: Optional. The Cloud Storage URI to the audio sample for voice cloning. The audio sample should be a mono-channel, 24kHz WAV file.
            - `warnings` CustomVoiceSampleWarning[]: Output only. Warning messages encountered during voice clone processing (e.g. low audio level).
              - …
          - `inactivityTimeout` string, google-duration: Optional. The duration of user inactivity (no speech or interaction) before the agent prompts the user for reengagement. If not set, the agent will not prompt the user for reengagement.
          - `synthesizeSpeechConfigs` object: Optional. Configuration of how the agent response should be synthesized, mapping from the language code to SynthesizeSpeechConfig. If the configuration for the specified language code is not found, the configuration for the root language code will be used. For example, if the map contains "en-us" and "en", and the specified language code is "en-gb", then "en" configuration will be used. Note: Language code is case-insensitive.
        - `clientCertificateSettings` ClientCertificateSettings: Settings for custom client certificates.
          - `passphrase` string: Optional. The name of the SecretManager secret version resource storing the passphrase to decrypt the private key. Should be left unset if the private key is not encrypted. Format: `projects/{project}/secrets/{secret}/versions/{version}`
          - `privateKey` string: Required. The name of the SecretManager secret version resource storing the private key encoded in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}`
          - `tlsCertificate` string: Required. The TLS certificate encoded in PEM format. This string must include the begin header and end footer lines.
        - `createTime` string, google-datetime: Output only. Timestamp when the app was created.
        - `dashboardSettings` DashboardSettings: Settings for dashboards associated with the app, that show up in the Monitoring view.
          - `defaultDashboard` string: Optional. The resource name of the default Contact Center Insights dashboard associated with the app. This is the dashboard that will be displayed when users navigate to the Monitoring view for the app. Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
        - `dataStoreSettings` DataStoreSettings: Data store related settings for the app.
          - `engines` DataStoreSettingsEngine[]: Output only. The engines for the app.
            - `name` string: Output only. The resource name of the engine. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            - `type` 'TYPE_UNSPECIFIED' | 'ENGINE_TYPE_SEARCH' | 'ENGINE_TYPE_CHAT': Output only. The type of the engine.
        - `defaultChannelProfile` ChannelProfile: A ChannelProfile configures the agent's behavior for a specific communication channel, such as web UI or telephony.
          - `channelType` 'UNKNOWN' | 'WEB_UI' | 'API' | 'TWILIO' | 'GOOGLE_TELEPHONY_PLATFORM' | 'CONTACT_CENTER_AS_A_SERVICE' | 'CONTACT_CENTER_AS_A_SERVICE_CHAT' | 'FIVE9' | 'CONTACT_CENTER_INTEGRATION' | 'WHATSAPP' | 'INSTAGRAM': Optional. The type of the channel profile.
          - `disableBargeInControl` boolean: Optional. Whether to disable user barge-in control in the conversation. - **true**: User interruptions are disabled while the agent is speaking. - **false**: The agent retains automatic control over when the user can interrupt.
          - `disableDtmf` boolean: Optional. Whether to disable DTMF (dual-tone multi-frequency).
          - `instagramConfig` ChannelProfileInstagramConfig: Configuration specific to Instagram deployments.
            - `description` string: Output only. The description of the Meta business page or profile.
            - `displayName` string: Output only. The fetched Meta business page name.
            - `instagramAccountId` string: Required. The Instagram Account ID.
            - `thumbnailUrl` string: Output only. The fetched Meta business profile thumbnail URL.
          - `noiseSuppressionLevel` string: Optional. The noise suppression level of the channel profile. Available values are "low", "moderate", "high", "very_high".
          - `personaProperty` ChannelProfilePersonaProperty: Represents the persona property of a channel.
            - `persona` 'UNKNOWN' | 'CONCISE' | 'CHATTY': Optional. The persona of the channel.
          - `profileId` string: Optional. The unique identifier of the channel profile.
          - `webWidgetConfig` ChannelProfileWebWidgetConfig: Message for configuration for the web widget.
            - `modality` 'MODALITY_UNSPECIFIED' | 'CHAT_AND_VOICE' | 'VOICE_ONLY' | 'CHAT_ONLY' | 'CHAT_VOICE_AND_VIDEO': Optional. The modality of the web widget.
            - `securitySettings` ChannelProfileWebWidgetConfigSecuritySettings: Security settings for the web widget.
              - …
            - `theme` 'THEME_UNSPECIFIED' | 'LIGHT' | 'DARK': Optional. The theme of the web widget.
            - `webWidgetTitle` string: Optional. The title of the web widget.
          - `whatsappConfig` ChannelProfileWhatsAppConfig: Configuration specific to WhatsApp deployments.
            - `description` string: Output only. The description of the Meta business page or profile.
            - `displayName` string: Output only. The fetched Meta business page name.
            - `phoneNumber` string: Optional. The phone number in E.164 format.
            - `phoneNumberId` string: Required. The Meta phone number ID.
            - `thumbnailUrl` string: Output only. The fetched Meta business profile thumbnail URL.
            - `wabaId` string: Required. The WhatsApp Business Account ID.
        - `deploymentCount` integer: Output only. Number of deployments in the app.
        - `description` string: Optional. Human-readable description of the app.
        - `displayName` string: Required. Display name of the app.
        - `errorHandlingSettings` ErrorHandlingSettings: Settings to describe how errors should be handled in the app.
          - `endSessionConfig` ErrorHandlingSettingsEndSessionConfig: Configuration for ending the session in case of system errors (e.g. LLM errors).
            - `escalateSession` boolean: Optional. Whether to escalate the session in EndSession. If session is escalated, metadata in EndSession will contain `session_escalated = true`. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent for details.
          - `errorHandlingStrategy` 'ERROR_HANDLING_STRATEGY_UNSPECIFIED' | 'NONE' | 'FALLBACK_RESPONSE' | 'END_SESSION': Optional. The strategy to use for error handling.
          - `fallbackResponseConfig` ErrorHandlingSettingsFallbackResponseConfig: Configuration for handling fallback responses.
            - `customFallbackMessages` object: Optional. The fallback messages in case of system errors (e.g. LLM errors), mapped by [supported language code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
            - `maxFallbackAttempts` integer: Optional. The maximum number of fallback attempts to make before the agent emitting EndSession Signal.
        - `etag` string: Output only. 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.
        - `evaluationMetricsThresholds` EvaluationMetricsThresholds: Threshold settings for metrics in an Evaluation.
          - `goldenEvaluationMetricsThresholds` EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds: Settings for golden evaluations.
            - `expectationLevelMetricsThresholds` EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds: Expectation level metrics thresholds.
              - …
            - `toolMatchingSettings` EvaluationMetricsThresholdsToolMatchingSettings: Settings for matching tool calls.
              - …
            - `turnLevelMetricsThresholds` EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds: Turn level metrics thresholds.
              - …
          - `goldenHallucinationMetricBehavior` 'HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED' | 'DISABLED' | 'ENABLED': Optional. The hallucination metric behavior for golden evaluations.
          - `hallucinationMetricBehavior` 'HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED' | 'DISABLED' | 'ENABLED': Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination metric behavior is currently used for golden evaluations.
          - `scenarioHallucinationMetricBehavior` 'HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED' | 'DISABLED' | 'ENABLED': Optional. The hallucination metric behavior for scenario evaluations.
        - `globalInstruction` string: Optional. Instructions for all the agents in the app. You can use this instruction to set up a stable identity or personality across all the agents.
        - `guardrails` string[]: Optional. List of guardrails for the app. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
        - `languageSettings` LanguageSettings: Language settings of the app.
          - `defaultLanguageCode` string: Optional. The default language code of the app.
          - `enableMultilingualSupport` boolean: Optional. Enables multilingual support. If `true`, agents in the app will use pre-built instructions to improve handling of multilingual input.
          - `fallbackAction` string: Optional. Deprecated: This feature is no longer supported. Use `enable_multilingual_support` instead to improve handling of multilingual input. The action to perform when an agent receives input in an unsupported language. This can be a predefined action or a custom tool call. Valid values are: - A tool's full resource name, which triggers a specific tool execution. - A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.
          - `supportedLanguageCodes` string[]: Optional. List of languages codes supported by the app, in addition to the `default_language_code`.
        - `locked` boolean: Optional. Indicates whether the app is locked for changes. If the app is locked, modifications to the app resources will be rejected.
        - `loggingSettings` LoggingSettings: Settings to describe the logging behaviors for the app.
          - `audioRecordingConfig` AudioRecordingConfig: Configuration for how the audio interactions should be recorded.
            - `gcsBucket` string: Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session audio recordings. The URI must start with "gs://". Please choose a bucket location that meets your data residency requirements. Note: If the Cloud Storage bucket is in a different project from the app, you should grant `storage.objects.create` permission to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
            - `gcsPathPrefix` string: Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the following placeholders, which will be dynamically substituted at serving time: - $project: project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format - $session: session ID If the path prefix is not specified, the default prefix `$project/$location/$app/$date/$session/` will be used.
          - `bigqueryExportSettings` BigQueryExportSettings: Settings to describe the BigQuery export behaviors for the app.
            - `dataset` string: Optional. The BigQuery **dataset ID** to export the data to.
            - `enabled` boolean: Optional. Indicates whether the BigQuery export is enabled.
            - `project` string: Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the BigQuery dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
          - `cloudLoggingSettings` CloudLoggingSettings: Settings to describe the Cloud Logging behaviors for the app.
            - `enableCloudLogging` boolean: Optional. Whether to enable Cloud Logging for the sessions.
          - `conversationLoggingSettings` ConversationLoggingSettings: Settings to describe the conversation logging behaviors for the app.
            - `disableConversationLogging` boolean: Optional. Whether to disable conversation logging for the sessions.
            - `retentionWindow` string, google-duration: Optional. Controls the retention window for the conversation. If not set, the conversation will be retained for 365 days.
          - `evaluationAudioRecordingConfig` AudioRecordingConfig: Configuration for how the audio interactions should be recorded.
            - `gcsBucket` string: Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session audio recordings. The URI must start with "gs://". Please choose a bucket location that meets your data residency requirements. Note: If the Cloud Storage bucket is in a different project from the app, you should grant `storage.objects.create` permission to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
            - `gcsPathPrefix` string: Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the following placeholders, which will be dynamically substituted at serving time: - $project: project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format - $session: session ID If the path prefix is not specified, the default prefix `$project/$location/$app/$date/$session/` will be used.
          - `metricAnalysisSettings` MetricAnalysisSettings: Settings to describe the conversation data collection behaviors for LLM analysis metrics pipeline.
            - `llmMetricsOptedOut` boolean: Optional. Whether to collect conversation data for llm analysis metrics. If true, conversation data will not be collected for llm analysis metrics; otherwise, conversation data will be collected.
          - `redactionConfig` RedactionConfig: Configuration to instruct how sensitive data should be handled.
            - `deidentifyTemplate` string: Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name to instruct on how to de-identify content. Format: `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
            - `enableRedaction` boolean: Optional. If `true`, redaction will be applied in various logging scenarios, including conversation history, Cloud Logging and audio recording.
            - `inspectTemplate` string: Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to configure detection of sensitive data types. Format: `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
          - `requiredRecordingConsent` boolean: Optional. Whether the app has to say what may be recorded before anything is kept. When true, a session starts with recording off and stays off until the client sends SessionInput.recording_control, which then decides every turn from that point on. This covers audio recording as well as conversation history, BigQuery export and Cloud Logging. When `false`, the default, the settings above decide on their own and the client does not have to send anything.
          - `unredactedAudioRecordingConfig` AudioRecordingConfig: Configuration for how the audio interactions should be recorded.
            - `gcsBucket` string: Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session audio recordings. The URI must start with "gs://". Please choose a bucket location that meets your data residency requirements. Note: If the Cloud Storage bucket is in a different project from the app, you should grant `storage.objects.create` permission to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
            - `gcsPathPrefix` string: Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the following placeholders, which will be dynamically substituted at serving time: - $project: project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format - $session: session ID If the path prefix is not specified, the default prefix `$project/$location/$app/$date/$session/` will be used.
          - `unredactedBigqueryExportSettings` BigQueryExportSettings: Settings to describe the BigQuery export behaviors for the app.
            - `dataset` string: Optional. The BigQuery **dataset ID** to export the data to.
            - `enabled` boolean: Optional. Indicates whether the BigQuery export is enabled.
            - `project` string: Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the BigQuery dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
        - `metadata` object: Optional. Metadata about the app. This field can be used to store additional information relevant to the app's details or intended usages.
        - `modelSettings` ModelSettings: Model settings contains various configurations for the LLM model.
          - `model` string: Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
          - `temperature` number, double: Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
          - `thinkingLevel` 'THINKING_LEVEL_UNSPECIFIED' | 'DEFAULT' | 'LOW' | 'MEDIUM' | 'HIGH': Optional. The thinking level of the model.
        - `name` string: Identifier. The unique identifier of the app. Format: `projects/{project}/locations/{location}/apps/{app}`
        - `pinned` boolean: Optional. Whether the app is pinned in the app list.
        - `predefinedVariableDeclarations` AppVariableDeclaration[]: Output only. The declarations of predefined variables for the app.
          - `description` string: Required. The description of the variable.
          - `name` string: Required. The name of the variable. The name must start with a letter or underscore and contain only letters, numbers, or underscores.
          - `schema` Schema: Represents a select subset of an OpenAPI 3.0 schema object.
            - `additionalProperties` Schema (recursive)
            - `anyOf` Schema[]: Optional. The value should be validated against any (one or more) of the subschemas in the list.
            - `default` unknown
            - `defs` object: Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema.
            - `description` string: Optional. The description of the data.
            - `enum` string[]: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
            - `items` Schema (recursive)
            - `maxItems` string, int64: Optional. Maximum number of the elements for Type.ARRAY.
            - `maximum` number, double: Optional. Maximum value for Type.INTEGER and Type.NUMBER.
            - `minItems` string, int64: Optional. Minimum number of the elements for Type.ARRAY.
            - `minimum` number, double: Optional. Minimum value for Type.INTEGER and Type.NUMBER.
            - `nullable` boolean: Optional. Indicates if the value may be null.
            - `prefixItems` Schema[]: Optional. Schemas of initial elements of Type.ARRAY.
            - `properties` object: Optional. Properties of Type.OBJECT.
            - `ref` string: Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named "Pet": ``` type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string ``` The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
            - `required` string[]: Optional. Required properties of Type.OBJECT.
            - `title` string: Optional. The title of the schema.
            - `type` 'TYPE_UNSPECIFIED' | 'STRING' | 'INTEGER' | 'NUMBER' | 'BOOLEAN' | 'OBJECT' | 'ARRAY': Required. The type of the data.
            - `uniqueItems` boolean: Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
        - `rootAgent` string: Optional. The root agent is the entry point of the app. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
        - `timeZoneSettings` TimeZoneSettings: TimeZone settings of the app.
          - `timeZone` string: Optional. The time zone of the app from the [time zone database](https://www.iana.org/time-zones), e.g., America/Los_Angeles, Europe/Paris.
        - `toolExecutionMode` 'TOOL_EXECUTION_MODE_UNSPECIFIED' | 'PARALLEL' | 'SEQUENTIAL': Optional. The tool execution mode for the app. If not provided, will default to PARALLEL.
        - `updateTime` string, google-datetime: Output only. Timestamp when the app was last updated.
        - `validationErrors` string[]: Output only. Misconfigurations or warnings in the app.
        - `variableDeclarations` AppVariableDeclaration[]: Optional. The declarations of the variables.
          - `description` string: Required. The description of the variable.
          - `name` string: Required. The name of the variable. The name must start with a letter or underscore and contain only letters, numbers, or underscores.
          - `schema` Schema: Represents a select subset of an OpenAPI 3.0 schema object.
            - `additionalProperties` Schema (recursive)
            - `anyOf` Schema[]: Optional. The value should be validated against any (one or more) of the subschemas in the list.
            - `default` unknown
            - `defs` object: Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema.
            - `description` string: Optional. The description of the data.
            - `enum` string[]: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
            - `items` Schema (recursive)
            - `maxItems` string, int64: Optional. Maximum number of the elements for Type.ARRAY.
            - `maximum` number, double: Optional. Maximum value for Type.INTEGER and Type.NUMBER.
            - `minItems` string, int64: Optional. Minimum number of the elements for Type.ARRAY.
            - `minimum` number, double: Optional. Minimum value for Type.INTEGER and Type.NUMBER.
            - `nullable` boolean: Optional. Indicates if the value may be null.
            - `prefixItems` Schema[]: Optional. Schemas of initial elements of Type.ARRAY.
            - `properties` object: Optional. Properties of Type.OBJECT.
            - `ref` string: Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named "Pet": ``` type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string ``` The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
            - `required` string[]: Optional. Required properties of Type.OBJECT.
            - `title` string: Optional. The title of the schema.
            - `type` 'TYPE_UNSPECIFIED' | 'STRING' | 'INTEGER' | 'NUMBER' | 'BOOLEAN' | 'OBJECT' | 'ARRAY': Required. The type of the data.
            - `uniqueItems` boolean: Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
        - `vpcScSettings` VpcScSettings: VPC-SC settings for the app.
          - `allowedOrigins` string[]: Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.
      - `examples` Example[]: Optional. List of examples in the app.
        - `createTime` string, google-datetime: Output only. Timestamp when the example was created.
        - `description` string: Optional. Human-readable description of the example.
        - `displayName` string: Required. Display name of the example.
        - `entryAgent` string: Optional. The agent that initially handles the conversation. If not specified, the example represents a conversation that is handled by the root agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{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.
        - `invalid` boolean: Output only. The example may become invalid if referencing resources are deleted. Invalid examples will not be used as few-shot examples.
        - `messages` Message[]: Optional. The collection of messages that make up the conversation.
          - `chunks` Chunk[]: Optional. Content of the message as a series of chunks.
            - `agentTransfer` AgentTransfer: Represents an event indicating the transfer of a conversation to a different agent.
              - …
            - `blob` Blob: Represents a blob input or output in the conversation.
              - …
            - `defaultVariables` object: A struct represents default variables at the start of the conversation, keyed by variable names.
            - `image` Image: Represents an image input or output in the conversation.
              - …
            - `payload` object: Optional. Custom payload data.
            - `text` string: Optional. Text data.
            - `toolCall` ToolCall: Request for the client or the agent to execute the specified tool.
              - …
            - `toolResponse` ToolResponse: The execution result of a specific tool from the client or the agent.
              - …
            - `transcript` string: Optional. Transcript associated with the audio.
            - `updatedVariables` object: A struct represents variables that were updated in the conversation, keyed by variable names.
          - `eventTime` string, google-datetime: Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example.
          - `role` string: Optional. The role within the conversation, e.g., user, agent.
        - `name` string: Identifier. The unique identifier of the example. Format: `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
        - `updateTime` string, google-datetime: Output only. Timestamp when the example was last updated.
      - `guardrails` Guardrail[]: Optional. List of guardrails in the app.
        - `action` TriggerAction: Action that is taken when a certain precondition is met.
          - `generativeAnswer` TriggerActionGenerativeAnswer: The agent will immediately respond with a generative answer.
            - `prompt` string: Required. The prompt to use for the generative answer.
          - `respondImmediately` TriggerActionRespondImmediately: The agent will immediately respond with a preconfigured response.
            - `responses` TriggerActionResponse[]: Required. The canned responses for the agent to choose from. The response is chosen randomly.
              - …
          - `transferAgent` TriggerActionTransferAgent: The agent will transfer the conversation to a different agent.
            - `agent` string: Required. The name of the agent to transfer the conversation to. The agent must be in the same app as the current agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
        - `codeCallback` GuardrailCodeCallback: Guardrail that blocks the conversation based on the code callbacks provided.
          - `afterAgentCallback` Callback: A callback defines the custom logic to be executed at various stages of agent interaction.
            - `description` string: Optional. Human-readable description of the callback.
            - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
            - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
            - `pythonCode` string: Required. The python code to execute for the callback.
          - `afterModelCallback` Callback: A callback defines the custom logic to be executed at various stages of agent interaction.
            - `description` string: Optional. Human-readable description of the callback.
            - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
            - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
            - `pythonCode` string: Required. The python code to execute for the callback.
          - `beforeAgentCallback` Callback: A callback defines the custom logic to be executed at various stages of agent interaction.
            - `description` string: Optional. Human-readable description of the callback.
            - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
            - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
            - `pythonCode` string: Required. The python code to execute for the callback.
          - `beforeModelCallback` Callback: A callback defines the custom logic to be executed at various stages of agent interaction.
            - `description` string: Optional. Human-readable description of the callback.
            - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
            - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
            - `pythonCode` string: Required. The python code to execute for the callback.
        - `contentFilter` GuardrailContentFilter: Guardrail that bans certain content from being used in the conversation.
          - `bannedContents` string[]: Optional. List of banned phrases. Applies to both user inputs and agent responses.
          - `bannedContentsInAgentResponse` string[]: Optional. List of banned phrases. Applies only to agent responses.
          - `bannedContentsInUserInput` string[]: Optional. List of banned phrases. Applies only to user inputs.
          - `disregardDiacritics` boolean: Optional. If true, diacritics are ignored during matching.
          - `matchType` 'MATCH_TYPE_UNSPECIFIED' | 'SIMPLE_STRING_MATCH' | 'WORD_BOUNDARY_STRING_MATCH' | 'REGEXP_MATCH' | 'SENSITIVE_WORDS': Required. Match type for the content filter.
          - `sensitiveWordsExemptions` string[]: Optional. Entries of the sensitive words list that this guardrail allows. Only valid when match_type is SENSITIVE_WORDS. Each value must equal a list entry (case-insensitive, surrounding whitespace ignored); other values have no effect. Applies to this guardrail only. At most 1000 entries of up to 256 characters each.
        - `createTime` string, google-datetime: Output only. Timestamp when the guardrail was created.
        - `description` string: Optional. Description of the guardrail.
        - `displayName` string: Required. Display name of the guardrail.
        - `enabled` boolean: Optional. Whether the guardrail is enabled.
        - `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.
        - `llmPolicy` GuardrailLlmPolicy: Guardrail that blocks the conversation if the LLM response is considered violating the policy based on the LLM classification.
          - `allowShortUtterance` boolean: Optional. By default, the LLM policy check is bypassed for short utterances. Enabling this setting applies the policy check to all utterances, including those that would normally be skipped.
          - `failOpen` boolean: Optional. If an error occurs during the policy check, fail open and do not trigger the guardrail.
          - `maxConversationMessages` integer: Optional. When checking this policy, consider the last 'n' messages in the conversation. When not set a default value of 10 will be used.
          - `modelSettings` ModelSettings: Model settings contains various configurations for the LLM model.
            - `model` string: Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
            - `temperature` number, double: Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
            - `thinkingLevel` 'THINKING_LEVEL_UNSPECIFIED' | 'DEFAULT' | 'LOW' | 'MEDIUM' | 'HIGH': Optional. The thinking level of the model.
          - `policyScope` 'POLICY_SCOPE_UNSPECIFIED' | 'USER_QUERY' | 'AGENT_RESPONSE' | 'USER_QUERY_AND_AGENT_RESPONSE': Required. Defines when to apply the policy check during the conversation. If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the user input. When applying the policy to the agent response, additional latency will be introduced before the agent can respond.
          - `prompt` string: Required. Policy prompt. Supports session variable placeholders (`{var}`) as well as `{agent_system_instruction}` to inject the agent's resolved system instructions.
        - `llmPromptSecurity` GuardrailLlmPromptSecurity: Guardrail that blocks the conversation if the input is considered unsafe based on the LLM classification.
          - `customPolicy` GuardrailLlmPolicy: Guardrail that blocks the conversation if the LLM response is considered violating the policy based on the LLM classification.
            - `allowShortUtterance` boolean: Optional. By default, the LLM policy check is bypassed for short utterances. Enabling this setting applies the policy check to all utterances, including those that would normally be skipped.
            - `failOpen` boolean: Optional. If an error occurs during the policy check, fail open and do not trigger the guardrail.
            - `maxConversationMessages` integer: Optional. When checking this policy, consider the last 'n' messages in the conversation. When not set a default value of 10 will be used.
            - `modelSettings` ModelSettings: Model settings contains various configurations for the LLM model.
              - …
            - `policyScope` 'POLICY_SCOPE_UNSPECIFIED' | 'USER_QUERY' | 'AGENT_RESPONSE' | 'USER_QUERY_AND_AGENT_RESPONSE': Required. Defines when to apply the policy check during the conversation. If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the user input. When applying the policy to the agent response, additional latency will be introduced before the agent can respond.
            - `prompt` string: Required. Policy prompt. Supports session variable placeholders (`{var}`) as well as `{agent_system_instruction}` to inject the agent's resolved system instructions.
          - `defaultSettings` GuardrailLlmPromptSecurityDefaultSecuritySettings: Configuration for default system security settings.
            - `defaultPromptTemplate` string: Output only. The default prompt template used by the system. This field is for display purposes to show the user what prompt the system uses by default. It is OUTPUT_ONLY.
          - `failOpen` boolean: Optional. Determines the behavior when the guardrail encounters an LLM error. - If true: the guardrail is bypassed. - If false (default): the guardrail triggers/blocks. Note: If a custom policy is provided, this field is ignored in favor of the policy's 'fail_open' configuration.
        - `modelSafety` GuardrailModelSafety: Model safety settings overrides. When this is set, it will override the default settings and trigger the guardrail if the response is considered unsafe.
          - `safetySettings` GuardrailModelSafetySafetySetting[]: Required. List of safety settings.
            - `category` 'HARM_CATEGORY_UNSPECIFIED' | 'HARM_CATEGORY_HATE_SPEECH' | 'HARM_CATEGORY_DANGEROUS_CONTENT' | 'HARM_CATEGORY_HARASSMENT' | 'HARM_CATEGORY_SEXUALLY_EXPLICIT' | 'HARM_CATEGORY_PROFANITY' | 'HARM_CATEGORY_TOXIC': Required. The harm category.
            - `threshold` 'HARM_BLOCK_THRESHOLD_UNSPECIFIED' | 'BLOCK_LOW_AND_ABOVE' | 'BLOCK_MEDIUM_AND_ABOVE' | 'BLOCK_ONLY_HIGH' | 'BLOCK_NONE' | 'OFF': Required. The harm block threshold.
        - `name` string: Identifier. The unique identifier of the guardrail. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
        - `supervisor` GuardrailSupervisor: Guardrail that runs supervisor intervention.
          - `detectionMode` 'DETECTION_MODE_UNSPECIFIED' | 'NON_BLOCKING' | 'BLOCKING': Optional. The detection mode of the supervisor.
          - `type` 'TYPE_UNSPECIFIED' | 'INVALID_TEXT' | 'LANGUAGE_SHIFT' | 'SPEAKER_SHIFT' | 'AUDIO_MISMATCH' | 'MISSING_TOOL_CALL' | 'CUSTOM' | 'CHOPPY_AUDIO' | 'PROFANITY' | 'THOUGHT_LEAKAGE' | 'AUTOMATED_BOT': Optional. The type of the supervisor.
        - `updateTime` string, google-datetime: Output only. Timestamp when the guardrail was last updated.
      - `tools` Tool[]: Optional. List of tools in the app.
        - `agentTool` AgentTool: Represents a tool that allows the agent to call another agent.
          - `agent` string: Optional. The resource name of the agent that is the entry point of the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
          - `description` string: Optional. Description of the tool's purpose.
          - `name` string: Required. The name of the agent tool.
        - `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.
          - `description` string: Optional. The function description.
          - `name` string: Required. The function name.
          - `parameters` Schema: Represents a select subset of an OpenAPI 3.0 schema object.
            - `additionalProperties` Schema (recursive)
            - `anyOf` Schema[]: Optional. The value should be validated against any (one or more) of the subschemas in the list.
            - `default` unknown
            - `defs` object: Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema.
            - `description` string: Optional. The description of the data.
            - `enum` string[]: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
            - `items` Schema (recursive)
            - `maxItems` string, int64: Optional. Maximum number of the elements for Type.ARRAY.
            - `maximum` number, double: Optional. Maximum value for Type.INTEGER and Type.NUMBER.
            - `minItems` string, int64: Optional. Minimum number of the elements for Type.ARRAY.
            - `minimum` number, double: Optional. Minimum value for Type.INTEGER and Type.NUMBER.
            - `nullable` boolean: Optional. Indicates if the value may be null.
            - `prefixItems` Schema[]: Optional. Schemas of initial elements of Type.ARRAY.
            - `properties` object: Optional. Properties of Type.OBJECT.
            - `ref` string: Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named "Pet": ``` type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string ``` The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
            - `required` string[]: Optional. Required properties of Type.OBJECT.
            - `title` string: Optional. The title of the schema.
            - `type` 'TYPE_UNSPECIFIED' | 'STRING' | 'INTEGER' | 'NUMBER' | 'BOOLEAN' | 'OBJECT' | 'ARRAY': Required. The type of the data.
            - `uniqueItems` boolean: Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
          - `response` Schema: Represents a select subset of an OpenAPI 3.0 schema object.
            - `additionalProperties` Schema (recursive)
            - `anyOf` Schema[]: Optional. The value should be validated against any (one or more) of the subschemas in the list.
            - `default` unknown
            - `defs` object: Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema.
            - `description` string: Optional. The description of the data.
            - `enum` string[]: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
            - `items` Schema (recursive)
            - `maxItems` string, int64: Optional. Maximum number of the elements for Type.ARRAY.
            - `maximum` number, double: Optional. Maximum value for Type.INTEGER and Type.NUMBER.
            - `minItems` string, int64: Optional. Minimum number of the elements for Type.ARRAY.
            - `minimum` number, double: Optional. Minimum value for Type.INTEGER and Type.NUMBER.
            - `nullable` boolean: Optional. Indicates if the value may be null.
            - `prefixItems` Schema[]: Optional. Schemas of initial elements of Type.ARRAY.
            - `properties` object: Optional. Properties of Type.OBJECT.
            - `ref` string: Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named "Pet": ``` type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string ``` The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
            - `required` string[]: Optional. Required properties of Type.OBJECT.
            - `title` string: Optional. The title of the schema.
            - `type` 'TYPE_UNSPECIFIED' | 'STRING' | 'INTEGER' | 'NUMBER' | 'BOOLEAN' | 'OBJECT' | 'ARRAY': Required. The type of the data.
            - `uniqueItems` boolean: Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
        - `connectorTool` ConnectorTool: A ConnectorTool allows connections to different integrations. See: https://cloud.google.com/integration-connectors/docs/overview.
          - `action` Action: Configuration of an Action for the tool to use. Note: This can be either an Action or an Operation. See https://cloud.google.com/integration-connectors/docs/entities-operation-action for details.
            - `connectionActionId` string: ID of a Connection action for the tool to use.
            - `entityOperation` ActionEntityOperation: Entity CRUD operation specification.
              - …
            - `inputFields` string[]: Optional. Entity fields to use as inputs for the operation. If no fields are specified, all fields of the Entity will be used.
            - `outputFields` string[]: Optional. Entity fields to return from the operation. If no fields are specified, all fields of the Entity will be returned.
          - `authConfig` EndUserAuthConfig: End-user authentication configuration used for Connection calls. The field values must be the names of context variables in the format `$context.variables.`.
            - `oauth2AuthCodeConfig` EndUserAuthConfigOauth2AuthCodeConfig: Oauth 2.0 Authorization Code authentication configuration.
              - …
            - `oauth2JwtBearerConfig` EndUserAuthConfigOauth2JwtBearerConfig: JWT Profile Oauth 2.0 Authorization Grant authentication configuration.
              - …
          - `connection` string: Required. The full resource name of the referenced Integration Connectors Connection. Format: `projects/{project}/locations/{location}/connections/{connection}`
          - `description` string: Optional. The description of the tool that can be used by the Agent to decide whether to call this ConnectorTool.
          - `name` string: Optional. The name of the tool that can be used by the Agent to decide whether to call this ConnectorTool.
        - `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.
          - `boostSpecs` DataStoreToolBoostSpecs[]: Optional. Boost specification to boost certain documents.
            - `dataStores` string[]: 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` DataStoreToolBoostSpec[]: Required. A list of boosting specifications.
              - …
          - `dataStoreSource` DataStoreToolDataStoreSource: Configuration for searching within a specific DataStore.
            - `dataStore` DataStore: A DataStore resource in Vertex AI Search.
              - …
            - `filter` string: Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
          - `description` string: Optional. The tool description.
          - `engineSource` DataStoreToolEngineSource: Configuration for searching within an Engine, potentially targeting specific DataStores.
            - `dataStoreSources` DataStoreToolDataStoreSource[]: Optional. Use to target specific DataStores within the Engine. If empty, the search applies to all DataStores associated with the Engine.
              - …
            - `engine` string: Required. Full resource name of the Engine. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            - `filter` string: Optional. A filter applied to the search across the Engine. Not relevant and not used if 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
          - `filterParameterBehavior` 'FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED' | 'ALWAYS_INCLUDE' | 'NEVER_INCLUDE': Optional. The filter parameter behavior.
          - `modalityConfigs` DataStoreToolModalityConfig[]: Optional. The modality configs for the data store.
            - `groundingConfig` DataStoreToolGroundingConfig: Grounding configuration.
              - …
            - `modalityType` 'MODALITY_TYPE_UNSPECIFIED' | 'TEXT' | 'AUDIO': Required. The modality type.
            - `rewriterConfig` DataStoreToolRewriterConfig: Rewriter configuration.
              - …
            - `snippetsConfig` DataStoreToolSnippetsConfig: Snippets configuration.
              - …
            - `summarizationConfig` DataStoreToolSummarizationConfig: Summarization configuration.
              - …
          - `name` string: Required. The data store tool name.
        - `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.
          - `corpusType` 'CORPUS_TYPE_UNSPECIFIED' | 'USER_OWNED' | 'FULLY_MANAGED': Optional. The type of the corpus. Default is FULLY_MANAGED.
          - `description` string: Optional. The tool description.
          - `fileCorpus` string: Optional. The corpus where files are stored. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
          - `name` string: Required. The tool name.
        - `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.
          - `contextUrls` string[]: 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.
          - `description` string: Optional. Description of the tool's purpose.
          - `excludeDomains` string[]: Optional. List of domains to be excluded from the search results. Example: "example.com". A maximum of 2000 domains can be excluded.
          - `name` string: Required. The name of the tool.
          - `preferredDomains` string[]: Optional. Specifies domains to restrict search results to. Example: "example.com", "another.site". A maximum of 20 domains can be specified.
          - `promptConfig` GoogleSearchToolPromptConfig: Prompt settings used by the model when processing or summarizing the google search results.
            - `textPrompt` string: 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` string: 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.
        - `mcpTool` McpTool: An MCP tool. See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more details.
          - `apiAuthentication` ApiAuthentication: Authentication information required for API calls.
            - `apiKeyConfig` ApiKeyConfig: Configurations for authentication with API key.
              - …
            - `bearerTokenConfig` BearerTokenConfig: Configurations for authentication with a bearer token.
              - …
            - `oauthConfig` OAuthConfig: Configurations for authentication with OAuth.
              - …
            - `serviceAccountAuthConfig` ServiceAccountAuthConfig: Configurations for authentication using a custom service account.
              - …
            - `serviceAgentIdTokenAuthConfig` ServiceAgentIdTokenAuthConfig: Configurations for authentication with [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent.
          - `customHeaders` object: Optional. The custom headers to send in the request to the MCP server. The values must be in the format `$context.variables.` and can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection for more details.
          - `description` string: Optional. The description of the MCP tool.
          - `inputSchema` Schema: Represents a select subset of an OpenAPI 3.0 schema object.
            - `additionalProperties` Schema (recursive)
            - `anyOf` Schema[]: Optional. The value should be validated against any (one or more) of the subschemas in the list.
            - `default` unknown
            - `defs` object: Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema.
            - `description` string: Optional. The description of the data.
            - `enum` string[]: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
            - `items` Schema (recursive)
            - `maxItems` string, int64: Optional. Maximum number of the elements for Type.ARRAY.
            - `maximum` number, double: Optional. Maximum value for Type.INTEGER and Type.NUMBER.
            - `minItems` string, int64: Optional. Minimum number of the elements for Type.ARRAY.
            - `minimum` number, double: Optional. Minimum value for Type.INTEGER and Type.NUMBER.
            - `nullable` boolean: Optional. Indicates if the value may be null.
            - `prefixItems` Schema[]: Optional. Schemas of initial elements of Type.ARRAY.
            - `properties` object: Optional. Properties of Type.OBJECT.
            - `ref` string: Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named "Pet": ``` type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string ``` The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
            - `required` string[]: Optional. Required properties of Type.OBJECT.
            - `title` string: Optional. The title of the schema.
            - `type` 'TYPE_UNSPECIFIED' | 'STRING' | 'INTEGER' | 'NUMBER' | 'BOOLEAN' | 'OBJECT' | 'ARRAY': Required. The type of the data.
            - `uniqueItems` boolean: Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
          - `name` string: Required. The name of the MCP tool.
          - `nameOverride` string: Optional. The name override of the MCP tool. This is populated if the name was overridden by a Toolset override.
          - `outputSchema` Schema: Represents a select subset of an OpenAPI 3.0 schema object.
            - `additionalProperties` Schema (recursive)
            - `anyOf` Schema[]: Optional. The value should be validated against any (one or more) of the subschemas in the list.
            - `default` unknown
            - `defs` object: Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema.
            - `description` string: Optional. The description of the data.
            - `enum` string[]: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
            - `items` Schema (recursive)
            - `maxItems` string, int64: Optional. Maximum number of the elements for Type.ARRAY.
            - `maximum` number, double: Optional. Maximum value for Type.INTEGER and Type.NUMBER.
            - `minItems` string, int64: Optional. Minimum number of the elements for Type.ARRAY.
            - `minimum` number, double: Optional. Minimum value for Type.INTEGER and Type.NUMBER.
            - `nullable` boolean: Optional. Indicates if the value may be null.
            - `prefixItems` Schema[]: Optional. Schemas of initial elements of Type.ARRAY.
            - `properties` object: Optional. Properties of Type.OBJECT.
            - `ref` string: Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named "Pet": ``` type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string ``` The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
            - `required` string[]: Optional. Required properties of Type.OBJECT.
            - `title` string: Optional. The title of the schema.
            - `type` 'TYPE_UNSPECIFIED' | 'STRING' | 'INTEGER' | 'NUMBER' | 'BOOLEAN' | 'OBJECT' | 'ARRAY': Required. The type of the data.
            - `uniqueItems` boolean: Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
          - `serverAddress` string: 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 server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.
          - `serviceDirectoryConfig` ServiceDirectoryConfig: Configuration for tools using Service Directory.
            - `service` string: Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. Location of the service directory must be the same as the location of the app.
          - `state` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'INACTIVE' | 'STALE': Output only. The dynamic availability state of the tool on the external server.
          - `tlsConfig` TlsConfig: The TLS configuration.
            - `caCerts` TlsConfigCaCert[]: Required. Specifies a list of allowed custom CA certificates for HTTPS verification.
              - …
        - `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.
          - `apiAuthentication` ApiAuthentication: Authentication information required for API calls.
            - `apiKeyConfig` ApiKeyConfig: Configurations for authentication with API key.
              - …
            - `bearerTokenConfig` BearerTokenConfig: Configurations for authentication with a bearer token.
              - …
            - `oauthConfig` OAuthConfig: Configurations for authentication with OAuth.
              - …
            - `serviceAccountAuthConfig` ServiceAccountAuthConfig: Configurations for authentication using a custom service account.
              - …
            - `serviceAgentIdTokenAuthConfig` ServiceAgentIdTokenAuthConfig: Configurations for authentication with [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent.
          - `description` string: Optional. The description of the tool. If not provided, the description of the tool will be derived from the OpenAPI schema, from `operation.description` or `operation.summary`.
          - `ignoreUnknownFields` boolean: Optional. If true, the agent will ignore unknown fields in the API response.
          - `name` string: Optional. The name of the tool. If not provided, the name of the tool will be derived from the OpenAPI schema, from `operation.operationId`.
          - `openApiSchema` string: Required. The OpenAPI schema in JSON or YAML format.
          - `serviceDirectoryConfig` ServiceDirectoryConfig: Configuration for tools using Service Directory.
            - `service` string: Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. Location of the service directory must be the same as the location of the app.
          - `tlsConfig` TlsConfig: The TLS configuration.
            - `caCerts` TlsConfigCaCert[]: Required. Specifies a list of allowed custom CA certificates for HTTPS verification.
              - …
          - `url` string: 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.
        - `pythonFunction` PythonFunction: A Python function tool.
          - `description` string: Output only. The description of the Python function, parsed from the python code's docstring.
          - `name` string: 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` string: Optional. The Python code to execute for the tool.
          - `serviceDirectoryConfig` ServiceDirectoryConfig: Configuration for tools using Service Directory.
            - `service` string: Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. Location of the service directory must be the same as the location of the app.
        - `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.
          - `agentCard` AgentCard: AgentCard conveys key information about a remote agent. It is a trimmed version of the AgentCard defined in the A2A protocol https://a2a-protocol.org/dev/specification/#441-agentcard
            - `description` string: Required. A description of the agent's domain of action/solution space.
            - `name` string: Required. A human-readable name for the agent.
            - `skills` AgentSkill[]: Required. Skills represent a unit of ability an agent can perform. This may somewhat abstract but represents a more focused set of actions that the agent is highly likely to succeed at.
              - …
            - `supportedInterfaces` AgentInterface[]: Required. Ordered list of supported interfaces. The first entry is preferred.
              - …
            - `version` string: Required. The version of the agent.
          - `apiAuthentication` ApiAuthentication: Authentication information required for API calls.
            - `apiKeyConfig` ApiKeyConfig: Configurations for authentication with API key.
              - …
            - `bearerTokenConfig` BearerTokenConfig: Configurations for authentication with a bearer token.
              - …
            - `oauthConfig` OAuthConfig: Configurations for authentication with OAuth.
              - …
            - `serviceAccountAuthConfig` ServiceAccountAuthConfig: Configurations for authentication using a custom service account.
              - …
            - `serviceAgentIdTokenAuthConfig` ServiceAgentIdTokenAuthConfig: Configurations for authentication with [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent.
          - `description` string: Required. The description of the tool.
          - `inputVariableMapping` object: Optional. Mapping of input variable names of remote agent to GECX variable names.
          - `name` string: Required. The name of the tool.
          - `outputVariableMapping` object: Optional. Mapping of output variable names of remote agent to GECX variable names.
          - `statefulAgent` boolean: Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool.
        - `systemTool` SystemTool: Pre-defined system tool.
          - `description` string: Output only. The description of the system tool.
          - `name` string: Required. The name of the 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.
          - `codeBlock` CodeBlock: A code block to be executed instead of a real tool call.
            - `pythonCode` string: Required. Python code which will be invoked in tool fake mode. Expected Python function signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead.
          - `enableFakeMode` boolean: Optional. Whether the tool is using 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.
          - `dataMapping` WidgetToolDataMapping: Configuration for mapping data from a source tool to the widget's input parameters.
            - `fieldMappings` object: Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.
            - `mode` 'MODE_UNSPECIFIED' | 'FIELD_MAPPING' | 'PYTHON_SCRIPT': Optional. The mode of the data mapping.
            - `pythonFunction` PythonFunction: A Python function tool.
              - …
            - `pythonScript` string: Deprecated: Use `python_function` instead.
            - `sourceToolName` string: Optional. The resource name of the tool that provides the data for the widget (e.g., a search tool or a custom function). Format: `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
          - `description` string: Optional. The description of the widget tool.
          - `name` string: Required. The display name of the widget tool.
          - `parameters` Schema: Represents a select subset of an OpenAPI 3.0 schema object.
            - `additionalProperties` Schema (recursive)
            - `anyOf` Schema[]: Optional. The value should be validated against any (one or more) of the subschemas in the list.
            - `default` unknown
            - `defs` object: Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema.
            - `description` string: Optional. The description of the data.
            - `enum` string[]: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
            - `items` Schema (recursive)
            - `maxItems` string, int64: Optional. Maximum number of the elements for Type.ARRAY.
            - `maximum` number, double: Optional. Maximum value for Type.INTEGER and Type.NUMBER.
            - `minItems` string, int64: Optional. Minimum number of the elements for Type.ARRAY.
            - `minimum` number, double: Optional. Minimum value for Type.INTEGER and Type.NUMBER.
            - `nullable` boolean: Optional. Indicates if the value may be null.
            - `prefixItems` Schema[]: Optional. Schemas of initial elements of Type.ARRAY.
            - `properties` object: Optional. Properties of Type.OBJECT.
            - `ref` string: Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named "Pet": ``` type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string ``` The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
            - `required` string[]: Optional. Required properties of Type.OBJECT.
            - `title` string: Optional. The title of the schema.
            - `type` 'TYPE_UNSPECIFIED' | 'STRING' | 'INTEGER' | 'NUMBER' | 'BOOLEAN' | 'OBJECT' | 'ARRAY': Required. The type of the data.
            - `uniqueItems` boolean: Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
          - `textResponseConfig` WidgetToolTextResponseConfig: Configuration for the text response returned with the widget.
            - `staticText` string: Optional. The static text response to return when type is STATIC.
            - `textResponseInstruction` string: Optional. Instruction for the LLM on how to generate the text response. Used as the description for the text response parameter if type is LLM_GENERATED.
            - `type` 'TYPE_UNSPECIFIED' | 'NONE' | 'LLM_GENERATED' | 'STATIC': Optional. The strategy for providing the text response.
          - `uiConfig` object: Optional. Configuration for rendering the widget.
          - `widgetType` 'WIDGET_TYPE_UNSPECIFIED' | 'CUSTOM' | 'PRODUCT_CAROUSEL' | 'PRODUCT_DETAILS' | 'QUICK_ACTIONS' | 'PRODUCT_COMPARISON' | 'ADVANCED_PRODUCT_DETAILS' | 'SHORT_FORM' | 'OVERALL_SATISFACTION' | 'ORDER_SUMMARY' | 'APPOINTMENT_DETAILS' | 'APPOINTMENT_SCHEDULER' | 'CONTACT_FORM': Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED.
      - `toolsets` Toolset[]: Optional. List of toolsets in the app.
        - `connectorToolset` ConnectorToolset: A toolset that generates tools from an Integration Connectors Connection.
          - `authConfig` EndUserAuthConfig: End-user authentication configuration used for Connection calls. The field values must be the names of context variables in the format `$context.variables.`.
            - `oauth2AuthCodeConfig` EndUserAuthConfigOauth2AuthCodeConfig: Oauth 2.0 Authorization Code authentication configuration.
              - …
            - `oauth2JwtBearerConfig` EndUserAuthConfigOauth2JwtBearerConfig: JWT Profile Oauth 2.0 Authorization Grant authentication configuration.
              - …
          - `connection` string: Required. The full resource name of the referenced Integration Connectors Connection. Format: `projects/{project}/locations/{location}/connections/{connection}`
          - `connectorActions` Action[]: Required. The list of connector actions/entity operations to generate tools for.
            - `connectionActionId` string: ID of a Connection action for the tool to use.
            - `entityOperation` ActionEntityOperation: Entity CRUD operation specification.
              - …
            - `inputFields` string[]: Optional. Entity fields to use as inputs for the operation. If no fields are specified, all fields of the Entity will be used.
            - `outputFields` string[]: Optional. Entity fields to return from the operation. If no fields are specified, all fields of the Entity will be returned.
        - `createTime` string, google-datetime: Output only. Timestamp when the toolset was created.
        - `description` string: Optional. The description of the toolset.
        - `displayName` string: Optional. The display name of the toolset. Must be unique within the same app.
        - `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 tools in the toolset.
        - `mcpToolset` McpToolset: A toolset that contains a list of tools that are offered by the MCP server.
          - `apiAuthentication` ApiAuthentication: Authentication information required for API calls.
            - `apiKeyConfig` ApiKeyConfig: Configurations for authentication with API key.
              - …
            - `bearerTokenConfig` BearerTokenConfig: Configurations for authentication with a bearer token.
              - …
            - `oauthConfig` OAuthConfig: Configurations for authentication with OAuth.
              - …
            - `serviceAccountAuthConfig` ServiceAccountAuthConfig: Configurations for authentication using a custom service account.
              - …
            - `serviceAgentIdTokenAuthConfig` ServiceAgentIdTokenAuthConfig: Configurations for authentication with [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent.
          - `customHeaders` object: Optional. The custom headers to send in the request to the MCP server. The values must be in the format `$context.variables.` and can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection for more details.
          - `serverAddress` string: Required. The address of the MCP server, for example, "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. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.
          - `serviceDirectoryConfig` ServiceDirectoryConfig: Configuration for tools using Service Directory.
            - `service` string: Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. Location of the service directory must be the same as the location of the app.
          - `tlsConfig` TlsConfig: The TLS configuration.
            - `caCerts` TlsConfigCaCert[]: Required. Specifies a list of allowed custom CA certificates for HTTPS verification.
              - …
          - `toolOverrides` McpToolOverride[]: Optional. Overrides for individual tools within this toolset. This allows overriding specific details like descriptions, names, or pinning the tools' states so they aren't fully dynamic.
            - `descriptionOverride` string: Optional. If present, this tool uses this description instead of the original description from the server.
            - `nameOverride` string: Optional. If present, this tool uses this name in the Agent instead of the original name. This is primarily used as an alias if the MCP server offers poorly named tools.
            - `snapshot` McpToolDefinition: Container for a tool's core definition elements that are snapshot. Schemas in the snapshot are used as-is and cannot be overridden.
              - …
            - `tool` string: Required. The original name of the tool as it is emitted by the MCP server.
        - `name` string: Identifier. The unique identifier of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
        - `openApiToolset` OpenApiToolset: A toolset that contains a list of tools that are defined by an OpenAPI schema.
          - `apiAuthentication` ApiAuthentication: Authentication information required for API calls.
            - `apiKeyConfig` ApiKeyConfig: Configurations for authentication with API key.
              - …
            - `bearerTokenConfig` BearerTokenConfig: Configurations for authentication with a bearer token.
              - …
            - `oauthConfig` OAuthConfig: Configurations for authentication with OAuth.
              - …
            - `serviceAccountAuthConfig` ServiceAccountAuthConfig: Configurations for authentication using a custom service account.
              - …
            - `serviceAgentIdTokenAuthConfig` ServiceAgentIdTokenAuthConfig: Configurations for authentication with [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent.
          - `ignoreUnknownFields` boolean: Optional. If true, the agent will ignore unknown fields in the API response for all operations defined in the OpenAPI schema.
          - `openApiSchema` string: Required. The OpenAPI schema of the toolset.
          - `serviceDirectoryConfig` ServiceDirectoryConfig: Configuration for tools using Service Directory.
            - `service` string: Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. Location of the service directory must be the same as the location of the app.
          - `tlsConfig` TlsConfig: The TLS configuration.
            - `caCerts` TlsConfigCaCert[]: Required. Specifies a list of allowed custom CA certificates for HTTPS verification.
              - …
          - `url` string: Optional. The server URL of the Open API schema. This field is only set in toolsets 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.
        - `timeout` string, google-duration: Optional. The timeout for the toolset execution. If not set, the default timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for `ASYNCHRONOUS` toolsets.
        - `toolFakeConfig` ToolFakeConfig: Configuration for tool behavior in fake mode.
          - `codeBlock` CodeBlock: A code block to be executed instead of a real tool call.
            - `pythonCode` string: Required. Python code which will be invoked in tool fake mode. Expected Python function signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead.
          - `enableFakeMode` boolean: Optional. Whether the tool is using fake mode.
        - `updateTime` string, google-datetime: Output only. Timestamp when the toolset was last updated.
    - `updateTime` string, google-datetime: Output only. Timestamp when the app version was last updated.
  - `nextPageToken` string: A token that can be sent as ListAppVersionsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.

## Changes

- **2026-11-17** `455f2f484021`: 4 info
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-11** `d1599b011b2e`: 4 info
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/ces/changes/v1/projects/:projectsId/locations/:locationsId/apps/:appsId/versions/get.md)

---

[API](https://skmtc.dev/google/apis/ces.md) - [All operations](https://skmtc.dev/google/apis/ces/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/ces/revisions/455f2f484021?raw)
