copyWith method
PipelinePromptTemplate
copyWith({
- BasePromptTemplate? finalPrompt,
- List<
(String, BasePromptTemplate)> ? pipelinePrompts, - Set<
String> ? inputVariables, - Map<
String, dynamic> ? partialVariables,
override
Copy the prompt template with the given parameters.
Implementation
@override
PipelinePromptTemplate copyWith({
final BasePromptTemplate? finalPrompt,
final List<(String name, BasePromptTemplate)>? pipelinePrompts,
final Set<String>? inputVariables,
final Map<String, dynamic>? partialVariables,
}) {
return PipelinePromptTemplate(
finalPrompt: finalPrompt ?? this.finalPrompt,
pipelinePrompts: pipelinePrompts ?? this.pipelinePrompts,
);
}