CustomFormatPromptTemplateInput<RunInput>: Omit<PromptTemplateInput<RunInput, string>, "templateFormat"> & {
    customParser: ((template) => ParsedFStringNode[]);
    renderer: ((template, values) => string);
    templateValidator?: ((template, inputVariables) => boolean);
}

Type Parameters

  • RunInput extends InputValues

Type declaration

  • customParser: ((template) => ParsedFStringNode[])
      • (template): ParsedFStringNode[]
      • Parameters

        • template: string

        Returns ParsedFStringNode[]

  • renderer: ((template, values) => string)
      • (template, values): string
      • Parameters

        • template: string
        • values: InputValues

        Returns string

  • Optional templateValidator?: ((template, inputVariables) => boolean)
      • (template, inputVariables): boolean
      • Parameters

        • template: string
        • inputVariables: string[]

        Returns boolean

Generated using TypeDoc