(Public Preview) Optional tool configuration for this request. Only retrieval/grounding configs are supported for server prompt templates with unary and streaming generateContent.
TemplateRequest.templateId
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The ID of the server prompt template to use.
Signature:
templateId:string;
TemplateRequest.templateVariables
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
A key-value map of variables to populate the template with.
Signature:
templateVariables:Record<string,unknown>;
TemplateRequest.toolConfig
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Optional tool configuration for this request. Only retrieval/grounding configs are supported for server prompt templates with unary and streaming generateContent.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-07 UTC."],[],[]]