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 to enhance conversations, including a \u003ccode\u003eknowledgeAssistAnswer\u003c/code\u003e, the \u003ccode\u003elatestMessage\u003c/code\u003e used for context, and the number of messages used for context with \u003ccode\u003econtextSize\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eKnowledgeAssistAnswer\u003c/code\u003e can contain a \u003ccode\u003esuggestedQuery\u003c/code\u003e, its corresponding \u003ccode\u003esuggestedQueryAnswer\u003c/code\u003e and the \u003ccode\u003eanswerRecord\u003c/code\u003e identifier.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSuggestedQuery\u003c/code\u003e field presents a \u003ccode\u003equeryText\u003c/code\u003e, representing the query recommended to be asked.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKnowledgeAnswer\u003c/code\u003e can be sourced from either \u003ccode\u003efaqSource\u003c/code\u003e which contains a question, or \u003ccode\u003egenerativeSource\u003c/code\u003e which contains an array of \u003ccode\u003esnippets\u003c/code\u003e with their respective URIs, text, title, and metadata.\u003c/p\u003e\n"],["\u003cp\u003eThere is a detailed JSON representation section for each object provided, which allows the user to see the structure of the data.\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/v2beta1/projects.conversations.participants.suggestions/suggestKnowledgeAssist#google.cloud.dialogflow.v2beta1.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."]]