- Resource: Conversation
- Methods
Resource: Conversation
External conversation proto definition.
JSON representation |
---|
{ "name": string, "state": enum ( |
Fields | |
---|---|
name |
Immutable. Fully qualified name |
state |
The state of the Conversation. |
user |
A unique identifier for tracking users. |
messages[] |
Conversation messages. |
start |
Output only. The time the conversation started. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
end |
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 | |
---|---|
create |
Output only. Message creation timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field
|
|
user |
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 | |
---|---|
context |
The current list of documents the user is seeing. It contains the document resource references. |
active |
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. |
anchor |
Anchor text. |
start |
Anchor text start index. |
end |
Anchor text end index. |
Summary
Summary of the top N search results specified by the summary spec.
JSON representation |
---|
{ "summaryText": string, "summarySkippedReasons": [ enum ( |
Fields | |
---|---|
summary |
The summary content. |
summary |
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. |
safety |
A collection of Safety Attribute categories and their associated confidence scores. |
summary |
Summary with metadata information. |
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 used when |
NON_SUMMARY_SEEKING_QUERY_IGNORED |
The non-summary seeking query ignored case. Google skips the summary if the query is chit chat. Only used 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. |
NO_RELEVANT_CONTENT |
The no relevant content case. Google skips the summary if there is no relevant content in the retrieved search results. |
JAIL_BREAKING_QUERY_IGNORED |
The jail-breaking query ignored case. For example, "Reply in the tone of a competing company's CEO". Only used when [SearchRequest.ContentSearchSpec.SummarySpec.ignore_jail_breaking_query] is set to |
CUSTOMER_POLICY_VIOLATION |
The customer policy violation case. Google skips the summary if there is a customer policy violation detected. The policy is defined by the customer. |
NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 |
The non-answer seeking query ignored case. Google skips the summary if the query doesn't have clear intent. Only used when [SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_answer_seeking_query] is set to |
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. |
SummaryWithMetadata
Summary with metadata information.
JSON representation |
---|
{ "summary": string, "citationMetadata": { object ( |
Fields | |
---|---|
summary |
Summary text with no citation information. |
citation |
Citation metadata for given summary. |
references[] |
Document References. |
CitationMetadata
Citation metadata.
JSON representation |
---|
{
"citations": [
{
object ( |
Fields | |
---|---|
citations[] |
Citations for segments. |
Citation
Citation info for a segment.
JSON representation |
---|
{
"startIndex": string,
"endIndex": string,
"sources": [
{
object ( |
Fields | |
---|---|
start |
Index indicates the start of the segment, measured in bytes/unicode. |
end |
End of the attributed segment, exclusive. |
sources[] |
Citation sources for the attributed segment. |
CitationSource
Citation source.
JSON representation |
---|
{ "referenceIndex": string } |
Fields | |
---|---|
reference |
Document reference index from SummaryWithMetadata.references. It is 0-indexed and the value will be zero if the referenceIndex is not set explicitly. |
Reference
Document reference.
JSON representation |
---|
{
"title": string,
"document": string,
"uri": string,
"chunkContents": [
{
object ( |
Fields | |
---|---|
title |
Title of the document. |
document |
Required. |
uri |
Cloud Storage or HTTP uri for the document. |
chunk |
List of cited chunk contents derived from document content. |
ChunkContent
Chunk content.
JSON representation |
---|
{ "content": string, "pageIdentifier": string } |
Fields | |
---|---|
content |
Chunk textual content. |
page |
Page identifier. |
Methods |
|
---|---|
|
Converses a conversation. |
|
Creates a Conversation. |
|
Deletes a Conversation. |
|
Gets a Conversation. |
|
Lists all Conversations by their parent DataStore . |
|
Updates a Conversation. |