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.
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 ID of the server-side template to execute.
A key-value map of variables to populate the template with.
GenerativeModel APIs that execute on a server-side template.
This class should only be instantiated with getTemplateGenerativeModel.