Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://googleapis.deno.dev/v1/ces:v1.ts";

§Classes

ces
GoogleAuth

§Variables

auth

§Interfaces

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.

ActionEntityOperation

Entity CRUD operation specification.

Agent

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

AgentAgentToolset

A toolset with a selection of its tools.

AgentLlmAgent

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

AgentRemoteDialogflowAgent

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

AgentTransfer

Represents an event indicating the transfer of a conversation to a different agent.

AmbientSoundConfig

Configuration for the ambient sound to be played with the synthesized agent response, to enhance the naturalness of the conversation.

ApiAuthentication

Authentication information required for API calls.

ApiKeyConfig

Configurations for authentication with API key.

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.

AppSnapshot

A snapshot of the app.

AppVariableDeclaration

Defines the structure and metadata for a variable.

AppVersion

In Customer Engagement Suite (CES), an app version is a snapshot of the app at a specific point in time. It is immutable and cannot be modified once created.

AudioProcessingConfig

Configuration for how the input and output audio should be processed and delivered.

AudioRecordingConfig

Configuration for how the audio interactions should be recorded.

BargeInConfig

Configuration for how the user barge-in activities should be handled.

BatchDeleteConversationsRequest

Request message for AgentService.BatchDeleteConversations.

BearerTokenConfig

Configurations for authentication with a bearer token.

BigQueryExportSettings

Settings to describe the BigQuery export behaviors for the app.

Blob

Represents a blob input or output in the conversation.

Callback

A callback defines the custom logic to be executed at various stages of agent interaction.

CancelOperationRequest

The request message for Operations.CancelOperation.

Changelog

Changelogs represent a change made to the app or to an resource within the app.

ChannelProfile

A ChannelProfile configures the agent's behavior for a specific communication channel, such as web UI or telephony.

ChannelProfilePersonaProperty

Represents the persona property of a channel.

ChannelProfileWebWidgetConfig

Message for configuration for the web widget.

ChannelProfileWebWidgetConfigSecuritySettings

Security settings for the web widget.

Chunk

A chunk of content within a message.

Citations

Citations associated with the agent response.

CitationsCitedChunk

Piece of cited information.

ClientCertificateSettings

Settings for custom client certificates.

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.

CloudLoggingSettings

Settings to describe the Cloud Logging behaviors for the app.

CodeBlock

A code block to be executed instead of a real tool call.

ConnectorTool

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

ConnectorToolset

A toolset that generates tools from an Integration Connectors Connection.

Conversation

A conversation represents an interaction between an end user and the CES app.

ConversationLoggingSettings

Settings to describe the conversation logging behaviors for the app.

ConversationTurn

All information about a single turn in the conversation.

CredentialsClient

Defines the root interface for all clients that generate credentials for calling Google APIs. All clients should implement this interface.

DataStore

A DataStore resource in Vertex AI Search.

DataStoreConnectorConfig

The connector config for the data store connection.

DataStoreSettings

Data store related settings for the app.

DataStoreSettingsEngine

An engine to which the data stores are connected. See Vertex AI Search: https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.

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.

DataStoreToolBoostSpec

Boost specification to boost certain documents.

DataStoreToolBoostSpecConditionBoostSpec

Boost specification for a condition.

DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec

Specification for custom ranking based on customer specified attribute value. It provides more controls for customized ranking than the simple (condition, boost) combination above.

DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint

The control points used to define the curve. The curve defined through these control points can only be monotonically increasing or decreasing(constant values are acceptable).

DataStoreToolBoostSpecs

Boost specifications to boost certain documents. For more information, please refer to https://cloud.google.com/generative-ai-app-builder/docs/boosting.

DataStoreToolDataStoreSource

Configuration for searching within a specific DataStore.

DataStoreToolEngineSource

Configuration for searching within an Engine, potentially targeting specific DataStores.

DataStoreToolGroundingConfig

Grounding configuration.

DataStoreToolModalityConfig

If specified, will apply the given configuration for the specified modality.

DataStoreToolRewriterConfig

Rewriter configuration.

DataStoreToolSummarizationConfig

Summarization configuration.

Deployment

A deployment represents an immutable, queryable version of the app. It is used to deploy an app version with a specific channel profile.

Empty

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

EndSession

Indicates the session has terminated, due to either successful completion (e.g. user says "Good bye!" ) or an agent escalation. The agent will not process any further inputs after session is terminated and the client should half-close and disconnect after receiving all remaining responses from the agent.

EndUserAuthConfig

End-user authentication configuration used for Connection calls. The field values must be the names of context variables in the format $context.variables..

EndUserAuthConfigOauth2AuthCodeConfig

Oauth 2.0 Authorization Code authentication configuration.

EndUserAuthConfigOauth2JwtBearerConfig

JWT Profile Oauth 2.0 Authorization Grant authentication configuration.

EvaluationMetricsThresholds

Threshold settings for metrics in an Evaluation.

EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds

Settings for golden evaluations.

EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds

Expectation level metrics thresholds.

EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds

Turn level metrics thresholds.

Event

Event input.

Example

An example represents a sample conversation between the user and the agent(s).

ExecuteToolRequest

Request message for ToolService.ExecuteTool.

ExecuteToolResponse

Response message for ToolService.ExecuteTool.

ExportAppRequest

Request message for AgentService.ExportApp.

ExportAppResponse

Response message for AgentService.ExportApp.

ExpressionCondition

Expression condition based on session state.

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.

GenerateChatTokenRequest

Request message for WidgetService.GenerateChatToken.

GenerateChatTokenResponse

Response message for WidgetService.GenerateChatToken.

GoogleSearchSuggestions

Search suggestions from Google Search Tool.

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.

Guardrail

Guardrail contains a list of checks and balances to keep the agents safe and secure.

GuardrailCodeCallback

Guardrail that blocks the conversation based on the code callbacks provided.

GuardrailContentFilter

Guardrail that bans certain content from being used in the conversation.

GuardrailLlmPolicy

Guardrail that blocks the conversation if the LLM response is considered violating the policy based on the LLM classification.

GuardrailLlmPromptSecurity

Guardrail that blocks the conversation if the input is considered unsafe based on the LLM classification.

GuardrailLlmPromptSecurityDefaultSecuritySettings

Configuration for default system security settings.

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.

GuardrailModelSafetySafetySetting

Safety setting.

Image

Represents an image input or output in the conversation.

ImportAppRequest

Request message for AgentService.ImportApp.

ImportAppRequestImportOptions

Configuration options for the app import process. These options control how the import behaves, particularly when conflicts arise with existing app data.

ImportAppResponse

Response message for AgentService.ImportApp.

InputAudioConfig

InputAudioConfig configures how the CES agent should interpret the incoming audio data.

LanguageSettings

Language settings of the app.

ListAgentsResponse

Response message for AgentService.ListAgents.

ListAppsResponse

Response message for AgentService.ListApps.

ListAppVersionsResponse

Response message for AgentService.ListAppVersions.

ListChangelogsResponse

Response message for AgentService.ListChangelogs.

ListConversationsResponse

Response message for AgentService.ListConversations.

ListDeploymentsResponse

Response message for AgentService.ListDeployments.

ListExamplesResponse

Response message for AgentService.ListExamples.

ListGuardrailsResponse

Response message for AgentService.ListGuardrails.

ListLocationsResponse

The response message for Locations.ListLocations.

ListOperationsResponse

The response message for Operations.ListOperations.

ListToolsetsResponse

Response message for AgentService.ListToolsets.

ListToolsResponse

Response message for AgentService.ListTools.

Location

A resource that represents a Google Cloud location.

LoggingSettings

Settings to describe the logging behaviors for the app.

McpTool

An MCP tool. See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more details.

McpToolset

A toolset that contains a list of tools that are offered by the MCP server.

Message

A message within a conversation.

MetricAnalysisSettings

Settings to describe the conversation data collection behaviors for LLM analysis metrics pipeline.

ModelSettings

Model settings contains various configurations for the LLM model.

OAuthConfig

Configurations for authentication with OAuth.

Omnichannel

Represents an Omnichannel resource.

OmnichannelIntegrationConfig

OmnichannelIntegrationConfig contains all App integration configs.

OmnichannelIntegrationConfigCesAppConfig

Configs for CES app.

OmnichannelIntegrationConfigChannelConfig

ChannelConfig contains config for various of app integration.

OmnichannelIntegrationConfigRoutingConfig

Routing config specify how/who to route app events to a subscriber.

OmnichannelIntegrationConfigSubscriberConfig

Configs of subscribers.

OmnichannelIntegrationConfigWhatsappConfig

How Omnichannel should receive/reply events from WhatsApp.

OmnichannelOperationMetadata

Represents the metadata of the long-running operation.

OpenApiTool

A remote API tool defined by an OpenAPI schema.

OpenApiToolset

A toolset that contains a list of tools that are defined by an OpenAPI schema.

Operation

This resource represents a long-running operation that is the result of a network API call.

OperationMetadata

Represents the metadata of the long-running operation.

OutputAudioConfig

OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses.

ProjectsLocationsAppsAgentsCreateOptions

Additional options for ces#projectsLocationsAppsAgentsCreate.

ProjectsLocationsAppsAgentsDeleteOptions

Additional options for ces#projectsLocationsAppsAgentsDelete.

ProjectsLocationsAppsAgentsListOptions

Additional options for ces#projectsLocationsAppsAgentsList.

ProjectsLocationsAppsAgentsPatchOptions

Additional options for ces#projectsLocationsAppsAgentsPatch.

ProjectsLocationsAppsChangelogsListOptions

Additional options for ces#projectsLocationsAppsChangelogsList.

ProjectsLocationsAppsConversationsDeleteOptions

Additional options for ces#projectsLocationsAppsConversationsDelete.

ProjectsLocationsAppsConversationsGetOptions

Additional options for ces#projectsLocationsAppsConversationsGet.

ProjectsLocationsAppsConversationsListOptions

Additional options for ces#projectsLocationsAppsConversationsList.

ProjectsLocationsAppsCreateOptions

Additional options for ces#projectsLocationsAppsCreate.

ProjectsLocationsAppsDeleteOptions

Additional options for ces#projectsLocationsAppsDelete.

ProjectsLocationsAppsDeploymentsCreateOptions

Additional options for ces#projectsLocationsAppsDeploymentsCreate.

ProjectsLocationsAppsDeploymentsDeleteOptions

Additional options for ces#projectsLocationsAppsDeploymentsDelete.

ProjectsLocationsAppsDeploymentsListOptions

Additional options for ces#projectsLocationsAppsDeploymentsList.

ProjectsLocationsAppsDeploymentsPatchOptions

Additional options for ces#projectsLocationsAppsDeploymentsPatch.

ProjectsLocationsAppsExamplesCreateOptions

Additional options for ces#projectsLocationsAppsExamplesCreate.

ProjectsLocationsAppsExamplesDeleteOptions

Additional options for ces#projectsLocationsAppsExamplesDelete.

ProjectsLocationsAppsExamplesListOptions

Additional options for ces#projectsLocationsAppsExamplesList.

ProjectsLocationsAppsExamplesPatchOptions

Additional options for ces#projectsLocationsAppsExamplesPatch.

ProjectsLocationsAppsGuardrailsCreateOptions

Additional options for ces#projectsLocationsAppsGuardrailsCreate.

ProjectsLocationsAppsGuardrailsDeleteOptions

Additional options for ces#projectsLocationsAppsGuardrailsDelete.

ProjectsLocationsAppsGuardrailsListOptions

Additional options for ces#projectsLocationsAppsGuardrailsList.

ProjectsLocationsAppsGuardrailsPatchOptions

Additional options for ces#projectsLocationsAppsGuardrailsPatch.

ProjectsLocationsAppsListOptions

Additional options for ces#projectsLocationsAppsList.

ProjectsLocationsAppsPatchOptions

Additional options for ces#projectsLocationsAppsPatch.

ProjectsLocationsAppsToolsCreateOptions

Additional options for ces#projectsLocationsAppsToolsCreate.

ProjectsLocationsAppsToolsDeleteOptions

Additional options for ces#projectsLocationsAppsToolsDelete.

ProjectsLocationsAppsToolsetsCreateOptions

Additional options for ces#projectsLocationsAppsToolsetsCreate.

ProjectsLocationsAppsToolsetsDeleteOptions

Additional options for ces#projectsLocationsAppsToolsetsDelete.

ProjectsLocationsAppsToolsetsListOptions

Additional options for ces#projectsLocationsAppsToolsetsList.

ProjectsLocationsAppsToolsetsPatchOptions

Additional options for ces#projectsLocationsAppsToolsetsPatch.

ProjectsLocationsAppsToolsListOptions

Additional options for ces#projectsLocationsAppsToolsList.

ProjectsLocationsAppsToolsPatchOptions

Additional options for ces#projectsLocationsAppsToolsPatch.

ProjectsLocationsAppsVersionsCreateOptions

Additional options for ces#projectsLocationsAppsVersionsCreate.

ProjectsLocationsAppsVersionsDeleteOptions

Additional options for ces#projectsLocationsAppsVersionsDelete.

ProjectsLocationsAppsVersionsListOptions

Additional options for ces#projectsLocationsAppsVersionsList.

ProjectsLocationsListOptions

Additional options for ces#projectsLocationsList.

ProjectsLocationsOperationsListOptions

Additional options for ces#projectsLocationsOperationsList.

PythonCodeCondition

Python code block to evaluate the condition.

PythonFunction

A Python function tool.

RedactionConfig

Configuration to instruct how sensitive data should be handled.

RestoreAppVersionRequest

Request message for AgentService.RestoreAppVersion

RetrieveToolSchemaRequest

Request message for ToolService.RetrieveToolSchema.

RetrieveToolSchemaResponse

Response message for ToolService.RetrieveToolSchema.

RetrieveToolsRequest

Request message for ToolService.RetrieveTools.

RetrieveToolsResponse

Response message for ToolService.RetrieveTools.

RunSessionRequest

Request message for SessionService.RunSession.

RunSessionResponse

Response message for SessionService.RunSession.

Schema

Represents a select subset of an OpenAPI 3.0 schema object.

ServiceAccountAuthConfig

Configurations for authentication using a custom service account.

ServiceAgentIdTokenAuthConfig

Configurations for authentication with ID token generated from service agent.

ServiceDirectoryConfig

Configuration for tools using Service Directory.

SessionConfig

The configuration for the session.

SessionConfigRemoteDialogflowQueryParameters

QueryParameters to send to the remote Dialogflow agent when the session control is transferred to the remote agent.

SessionInput

Input for the session.

SessionOutput

Output for the session.

SessionOutputDiagnosticInfo

Contains execution details during the processing.

Span

A span is a unit of work or a single operation during the request processing.

Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

SynthesizeSpeechConfig

Configuration for how the agent response should be synthesized.

SystemTool

Pre-defined system tool.

TimeZoneSettings

TimeZone settings of the app.

TlsConfig

The TLS configuration.

TlsConfigCaCert

The CA certificate.

Tool

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

ToolCall

Request for the client or the agent to execute the specified tool.

ToolCalls

Request for the client to execute the tools and return the execution results before continuing the session.

ToolFakeConfig

Configuration for tool behavior in fake mode.

ToolResponse

The execution result of a specific tool from the client or the agent.

ToolResponses

Execution results for the requested tool calls from the client.

Toolset

A toolset represents a group of dynamically managed tools that can be used by the agent.

ToolsetTool

A tool that is created from a toolset.

TransferRule

Rule for transferring to a specific agent.

TransferRuleDeterministicTransfer

Deterministic transfer rule. When the condition evaluates to true, the transfer occurs.

TransferRuleDisablePlannerTransfer

A rule that prevents the planner from transferring to the target agent.

TriggerAction

Action that is taken when a certain precondition is met.

TriggerActionGenerativeAnswer

The agent will immediately respond with a generative answer.

TriggerActionRespondImmediately

The agent will immediately respond with a preconfigured response.

TriggerActionResponse

Represents a response from the agent.

TriggerActionTransferAgent

The agent will transfer the conversation to a different agent.

WebSearchQuery

Represents a single web search query and its associated search uri.

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.