Interface for the input parameters of the LengthBasedExampleSelector class.

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

Properties

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