Type Alias SerializedFewShotTemplate
SerializedFewShotTemplate: { example_prompt?: SerializedPromptTemplate; example_separator: string; examples: string | any[]; input_variables: string[]; prefix?: string; suffix?: string; template_format: TemplateFormat; }
Represents a serialized version of a few-shot template. This type includes an
_type
field set to 'few_shot',input_variables
which are an array of strings representing the variables to be used in the template,examples
which can be a string or an array of Example objects, an optionalexample_prompt
which is a SerializedPromptTemplate,example_separator
which is a string, optionalprefix
andsuffix
strings, andtemplate_format
which specifies the format of the template.