templateGenerateContentWithHistoryStream method
- @experimental
- Iterable<
Content> history, - String templateId, {
- required Map<
String, Object?> inputs, - List<
TemplateTool> ? tools, - TemplateToolConfig? toolConfig,
Generates a stream of content from a template with the given templateId,
inputs and history.
Implementation
@experimental
Stream<GenerateContentResponse> templateGenerateContentWithHistoryStream(
Iterable<Content> history, String templateId,
{required Map<String, Object?> inputs,
List<TemplateTool>? tools,
TemplateToolConfig? toolConfig}) {
return streamTemplateRequest(
TemplateTask.templateStreamGenerateContent,
templateId,
inputs,
history,
tools,
toolConfig,
_serializationStrategy.parseGenerateContentResponse);
}