Resource: Conversation
External conversation proto definition.
JSON representation |
---|
{ "name": string, "state": enum ( |
Fields | |
---|---|
name |
Immutable. Fully qualified name |
state |
The state of the Conversation. |
userPseudoId |
A unique identifier for tracking users. |
messages[] |
Conversation messages. |
startTime |
Output only. The time the conversation started. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Output only. The time the conversation finished. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
State
Enumeration of the state of the conversation.
Enums | |
---|---|
STATE_UNSPECIFIED |
Unknown. |
IN_PROGRESS |
Conversation is currently open. |
COMPLETED |
Conversation has been completed. |
ConversationMessage
Defines a conversation message.
JSON representation |
---|
{ "createTime": string, // Union field |
Fields | |
---|---|
createTime |
Output only. Message creation timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field
|
|
userInput |
User text input. |
reply |
Search reply. |
TextInput
Defines text input.
JSON representation |
---|
{
"input": string,
"context": {
object ( |
Fields | |
---|---|
input |
Text input. |
context |
Conversation context of the input. |
ConversationContext
Defines context of the conversation
JSON representation |
---|
{ "contextDocuments": [ string ], "activeDocument": string } |
Fields | |
---|---|
contextDocuments[] |
The current list of documents the user is seeing. It contains the document resource references. |
activeDocument |
The current active document the user opened. It contains the document resource reference. |
Reply
Defines a reply message to user.
JSON representation |
---|
{ "reply": string, "references": [ { object ( |
Fields | |
---|---|
reply |
DEPRECATED: use |
references[] |
References in the reply. |
summary |
Summary based on search results. |
Reference
Defines reference in reply.
JSON representation |
---|
{ "uri": string, "anchorText": string, "start": integer, "end": integer } |
Fields | |
---|---|
uri |
URI link reference. |
anchorText |
Anchor text. |
start |
Anchor text start index. |
end |
Anchor text end index. |
Summary
Summary of the top N search result specified by the summary spec.
JSON representation |
---|
{ "summaryText": string, "summarySkippedReasons": [ enum ( |
Fields | |
---|---|
summaryText |
The summary content. |
summarySkippedReasons[] |
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. |
safetyAttributes |
A collection of Safety Attribute categories and their associated confidence scores. |
SummarySkippedReason
An Enum for summary-skipped reasons.
Enums | |
---|---|
SUMMARY_SKIPPED_REASON_UNSPECIFIED |
Default value. The summary skipped reason is not specified. |
ADVERSARIAL_QUERY_IGNORED |
The adversarial query ignored case. Only populated when |
NON_SUMMARY_SEEKING_QUERY_IGNORED |
The non-summary seeking query ignored case. Only populated when |
OUT_OF_DOMAIN_QUERY_IGNORED |
The out-of-domain query ignored case. Google skips the summary if there are no high-relevance search results. For example, the data store contains facts about company A but the user query is asking questions about company B. |
POTENTIAL_POLICY_VIOLATION |
The potential policy violation case. Google skips the summary if there is a potential policy violation detected. This includes content that may be violent or toxic. |
LLM_ADDON_NOT_ENABLED |
The LLM addon not enabled case. Google skips the summary if the LLM addon is not enabled. |
SafetyAttributes
Safety Attribute categories and their associated confidence scores.
JSON representation |
---|
{ "categories": [ string ], "scores": [ number ] } |
Fields | |
---|---|
categories[] |
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores. |
scores[] |
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories. |
Methods |
|
---|---|
|
Converses a conversation. |
|
Creates a Conversation. |
|
Deletes a Conversation. |
|
Gets a Conversation. |
|
Lists all Conversations by their parent DataStore . |
|
Updates a Conversation. |