- JSON representation
- KnowledgeAssistAnswer
- SuggestedQuery
- KnowledgeAnswer
- FaqSource
- GenerativeSource
- Snippet
The response message for Participants.SuggestKnowledgeAssist
.
JSON representation |
---|
{
"knowledgeAssistAnswer": {
object ( |
Fields | |
---|---|
knowledge |
Output only. Knowledge Assist suggestion. |
latest |
The name of the latest conversation message used to compile suggestion for. Format: |
context |
Number of messages prior to and including |
KnowledgeAssistAnswer
Represents a Knowledge Assist answer.
JSON representation |
---|
{ "suggestedQuery": { object ( |
Fields | |
---|---|
suggested |
The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion. |
suggested |
The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query. |
answer |
The name of the answer record. Format: |
SuggestedQuery
Represents a suggested query.
JSON representation |
---|
{ "queryText": string } |
Fields | |
---|---|
query |
Suggested query text. |
KnowledgeAnswer
Represents an answer from Knowledge. Currently supports FAQ and Generative answers.
JSON representation |
---|
{ "answerText": string, // Union field |
Fields | |
---|---|
answer |
The piece of text from the |
Union field source . Source of result. source can be only one of the following: |
|
faq |
Populated if the prediction came from FAQ. |
generative |
Populated if the prediction was Generative. |
FaqSource
Details about source of FAQ answer.
JSON representation |
---|
{ "question": string } |
Fields | |
---|---|
question |
The corresponding FAQ question. |
GenerativeSource
Details about source of Generative answer.
JSON representation |
---|
{
"snippets": [
{
object ( |
Fields | |
---|---|
snippets[] |
All snippets used for this Generative Prediction, with their source URI and data. |
Snippet
Snippet Source for a Generative Prediction.
JSON representation |
---|
{ "uri": string, "text": string, "title": string, "metadata": { object } } |
Fields | |
---|---|
uri |
URI the data is sourced from. |
text |
Text taken from that URI. |
title |
Title of the document. |
metadata |
Metadata of the document. |