- Resource: Conversation
- Conversation.Turn
- Conversation.ChannelType
- Conversation.Source
- Conversation.InputType
- Methods
Resource: Conversation
A conversation represents an interaction between an end user and the CES app.
| JSON representation |
|---|
{ "name": string, "startTime": string, "endTime": string, "turns": [ { object ( |
| Fields | |
|---|---|
name |
Identifier. The unique identifier of the conversation. Format: |
startTime |
Output only. Timestamp when the conversation was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime |
Output only. Timestamp when the conversation was completed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
turns[] |
Required. The turns in the conversation. |
turnCount |
Output only. The number of turns in the conversation. |
channelType |
DEPRECATED. Please use |
source |
Output only. Indicate the source of the conversation. |
inputTypes[] |
Output only. The input types of the conversation. |
entryAgent |
Output only. The agent that initially handles the conversation. If not specified, the conversation is handled by the root agent. Format: |
deployment |
Output only. The deployment of the app used for processing the conversation. Format: |
appVersion |
Output only. The version of the app used for processing the conversation. Format: |
languageCode |
Output only. The language code of the conversation. |
messages[] |
Deprecated. Use turns instead. |
Conversation.Turn
All information about a single turn in the conversation.
| JSON representation |
|---|
{ "messages": [ { object ( |
| Fields | |
|---|---|
messages[] |
Optional. List of messages in the conversation turn, including user input, agent responses and intermediate events during the processing. |
rootSpan |
Optional. The root span of the action processing. |
Conversation.ChannelType
The channel type of the conversation.
| Enums | |
|---|---|
CHANNEL_TYPE_UNSPECIFIED |
Unspecified channel type. |
TEXT |
The conversation only contains text messages between the end user and the agent. |
AUDIO |
The conversation contains audio messages between the end user and the agent. |
MULTIMODAL |
The conversation multi-modal messages (e.g. image) between the end user and the agent. |
Conversation.Source
The source of the conversation.
| Enums | |
|---|---|
SOURCE_UNSPECIFIED |
Unspecified source. |
LIVE |
The conversation is from the live end user. |
SIMULATOR |
The conversation is from the simulator. |
EVAL |
The conversation is from the evaluation. |
Conversation.InputType
Type of the input message.
| Enums | |
|---|---|
INPUT_TYPE_UNSPECIFIED |
Unspecified input type. |
INPUT_TYPE_TEXT |
The input message is text. |
INPUT_TYPE_AUDIO |
The input message is audio. |
INPUT_TYPE_IMAGE |
The input message is image. |
INPUT_TYPE_BLOB |
The input message is blob file. |
Methods |
|
|---|---|
|
Batch deletes the specified conversations. |
|
Deletes the specified conversation. |
|
Creates a golden evaluation from a conversation. |
|
Gets details of the specified conversation. |
|
Lists conversations in the given app. |