Interface for the input parameters of the LengthBasedExampleSelector class.

interface LengthBasedExampleSelectorInput {
    examplePrompt: PromptTemplate<any, any>;
    getTextLength?: ((text) => number);
    maxLength?: number;
}

Properties

examplePrompt: PromptTemplate<any, any>
getTextLength?: ((text) => number)

Type declaration

    • (text): number
    • Parameters

      • text: string

      Returns number

maxLength?: number

Generated using TypeDoc