langchain.js
    Preparing search index...

    Type Alias SerializedFewShotTemplate

    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 optional example_prompt which is a SerializedPromptTemplate, example_separator which is a string, optional prefix and suffix strings, and template_format which specifies the format of the template.

    type SerializedFewShotTemplate = {
        _type: "few_shot";
        example_prompt?: SerializedPromptTemplate;
        example_separator: string;
        examples: string | any[];
        input_variables: string[];
        prefix?: string;
        suffix?: string;
        template_format: TemplateFormat;
    }
    Index

    Properties

    _type: "few_shot"
    example_prompt?: SerializedPromptTemplate
    example_separator: string
    examples: string | any[]
    input_variables: string[]
    prefix?: string
    suffix?: string
    template_format: TemplateFormat