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

Conversation

import type { Conversation } from "https://googleapis.deno.dev/v1/ces:v1.ts";

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

interface Conversation {
readonly appVersion?: string;
channelType?:
| "CHANNEL_TYPE_UNSPECIFIED"
| "TEXT"
| "AUDIO"
| "MULTIMODAL";
readonly deployment?: string;
readonly endTime?: Date;
readonly entryAgent?: string;
readonly inputTypes?:
| "INPUT_TYPE_UNSPECIFIED"
| "INPUT_TYPE_TEXT"
| "INPUT_TYPE_AUDIO"
| "INPUT_TYPE_IMAGE"
| "INPUT_TYPE_BLOB"[];
readonly languageCode?: string;
messages?: Message[];
name?: string;
readonly source?:
| "SOURCE_UNSPECIFIED"
| "LIVE"
| "SIMULATOR"
| "EVAL";
readonly startTime?: Date;
readonly turnCount?: number;
turns?: ConversationTurn[];
}

§Properties

§
readonly appVersion?: string
[src]

Output only. The version of the app used for processing the conversation. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version}

§
channelType?: "CHANNEL_TYPE_UNSPECIFIED" | "TEXT" | "AUDIO" | "MULTIMODAL"
[src]

DEPRECATED. Please use input_types instead.

§
readonly deployment?: string
[src]

Output only. The deployment of the app used for processing the conversation. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}

§
readonly endTime?: Date
[src]

Output only. Timestamp when the conversation was completed.

§
readonly entryAgent?: string
[src]

Output only. The agent that initially handles the conversation. If not specified, the conversation is handled by the root agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

§
readonly inputTypes?: "INPUT_TYPE_UNSPECIFIED" | "INPUT_TYPE_TEXT" | "INPUT_TYPE_AUDIO" | "INPUT_TYPE_IMAGE" | "INPUT_TYPE_BLOB"[]
[src]

Output only. The input types of the conversation.

§
readonly languageCode?: string
[src]

Output only. The language code of the conversation.

§
messages?: Message[]
[src]

Deprecated. Use turns instead.

§
name?: string
[src]

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

§
readonly source?: "SOURCE_UNSPECIFIED" | "LIVE" | "SIMULATOR" | "EVAL"
[src]

Output only. Indicate the source of the conversation.

§
readonly startTime?: Date
[src]

Output only. Timestamp when the conversation was created.

§
readonly turnCount?: number
[src]

Output only. The number of turns in the conversation.

§

Required. The turns in the conversation.