The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>.
contextSize
integer
Number of messages prior to and including latestMessage to compile the suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.context_size field in the request if there are fewer messages in the conversation.
The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.
answerRecord
string
The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer
Records/<Answer Record ID>.
SuggestedQuery
Represents a suggested query.
JSON representation
{"queryText": string}
Fields
queryText
string
Suggested query text.
KnowledgeAnswer
Represents an answer from Knowledge. Currently supports FAQ and Generative answers.
JSON representation
{"answerText": string,// Union field source can be only one of the following:"faqSource": {object (FaqSource)},"generativeSource": {object (GenerativeSource)}// End of list of possible types for union field source.}
Fields
answerText
string
The piece of text from the source that answers this suggested query.
Union field source. Source of result. source can be only one of the following:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSuggestKnowledgeAssist\u003c/code\u003e response provides suggestions based on conversation context, including a \u003ccode\u003eknowledgeAssistAnswer\u003c/code\u003e, \u003ccode\u003elatestMessage\u003c/code\u003e, and \u003ccode\u003econtextSize\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eKnowledgeAssistAnswer\u003c/code\u003e offers a \u003ccode\u003esuggestedQuery\u003c/code\u003e, its corresponding \u003ccode\u003esuggestedQueryAnswer\u003c/code\u003e, and an \u003ccode\u003eanswerRecord\u003c/code\u003e for tracking.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSuggestedQuery\u003c/code\u003e contains the \u003ccode\u003equeryText\u003c/code\u003e that represents the system's suggestion based on the conversation's context.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eKnowledgeAnswer\u003c/code\u003e provides an \u003ccode\u003eanswerText\u003c/code\u003e derived from either \u003ccode\u003efaqSource\u003c/code\u003e or \u003ccode\u003egenerativeSource\u003c/code\u003e, depending on the origin of the answer.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGenerativeSource\u003c/code\u003e is detailed by a list of \u003ccode\u003esnippets\u003c/code\u003e, each with a \u003ccode\u003euri\u003c/code\u003e, \u003ccode\u003etext\u003c/code\u003e, \u003ccode\u003etitle\u003c/code\u003e, and \u003ccode\u003emetadata\u003c/code\u003e, indicating the source and relevant information of the generative answer.\u003c/p\u003e\n"]]],[],null,["# SuggestKnowledgeAssistResponse\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [KnowledgeAssistAnswer](#KnowledgeAssistAnswer)\n - [JSON representation](#KnowledgeAssistAnswer.SCHEMA_REPRESENTATION)\n- [SuggestedQuery](#SuggestedQuery)\n - [JSON representation](#SuggestedQuery.SCHEMA_REPRESENTATION)\n- [KnowledgeAnswer](#KnowledgeAnswer)\n - [JSON representation](#KnowledgeAnswer.SCHEMA_REPRESENTATION)\n- [FaqSource](#FaqSource)\n - [JSON representation](#FaqSource.SCHEMA_REPRESENTATION)\n- [GenerativeSource](#GenerativeSource)\n - [JSON representation](#GenerativeSource.SCHEMA_REPRESENTATION)\n- [Snippet](#Snippet)\n - [JSON representation](#Snippet.SCHEMA_REPRESENTATION)\n\nThe response message for [Participants.SuggestKnowledgeAssist](/dialogflow/es/docs/reference/rest/v2/projects.conversations.participants.suggestions/suggestKnowledgeAssist#google.cloud.dialogflow.v2.Participants.SuggestKnowledgeAssist).\n\nKnowledgeAssistAnswer\n---------------------\n\nRepresents a Knowledge Assist answer.\n\nSuggestedQuery\n--------------\n\nRepresents a suggested query.\n\nKnowledgeAnswer\n---------------\n\nRepresents an answer from Knowledge. Currently supports FAQ and Generative answers.\n\nFaqSource\n---------\n\nDetails about source of FAQ answer.\n\nGenerativeSource\n----------------\n\nDetails about source of Generative answer.\n\nSnippet\n-------\n\nSnippet Source for a Generative Prediction."]]