BetaBetaMakes a single non-streaming call to the model and returns an object containing a single GenerateContentResponse.
The ID of the server-side template to execute.
A key-value map of variables to populate the template with.
OptionalsingleRequestOptions: SingleRequestOptionsOptionaltemplateToolConfig: TemplateToolConfigBetaMakes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response.
The ID of the server-side template to execute.
A key-value map of variables to populate the template with.
OptionalsingleRequestOptions: SingleRequestOptionsOptionaltemplateToolConfig: TemplateToolConfigBetaStarts a TemplateChatSession that will use this template to respond to messages.
Configurations for the chat, including the template ID and input variables.
GenerativeModel APIs that execute on a server-side template.
This class should only be instantiated with getTemplateGenerativeModel.