BetaBetaMakes a single non-streaming call to the model and returns an object containing a single GenerateContentResponse.
The request parameters for using a server prompt template.
OptionalsingleRequestOptions: SingleRequestOptionsOptional. Options to use for this request.
BetaMakes 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 request parameters for using a server prompt template.
OptionalsingleRequestOptions: SingleRequestOptionsOptional. Options to use for this request.
BetaStarts 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.