Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team.
Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID & query ID.
searchResultPersistenceCount
integer
The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call.
[[["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-02-28 UTC."],[[["The multi-turn search feature is currently in private General Availability (GA), and users should utilize v1alpha or v1beta versions, or request allowlisting through Google Support."],["The JSON representation for the session specification includes `queryId` (string) and `searchResultPersistenceCount` (integer)."],["The `queryId` field, when set, associates search results with a specific \"turn\" in the session, enabling persistent storage and usage by subsequent API calls."],["`searchResultPersistenceCount` specifies how many of the top search results are saved for later use in the `/answer` API, with a maximum of 10 results in document mode and 50 in chunks mode."]]],[]]