langchain.js
    Preparing search index...

    Interface ImagePromptTemplateInput<RunInput, PartialVariableName>

    Inputs to create a ImagePromptTemplate

    interface ImagePromptTemplateInput<
        RunInput extends InputValues = any,
        PartialVariableName extends string = any,
    > {
        additionalContentFields?: ContentBlock;
        inputVariables: Extract<keyof RunInput, string>[];
        outputParser?: BaseOutputParser<unknown>;
        partialVariables?: PartialValues<PartialVariableName>;
        template: Record<string, unknown>;
        templateFormat?: TemplateFormat;
        validateTemplate?: boolean;
    }

    Type Parameters

    • RunInput extends InputValues = any
    • PartialVariableName extends string = any

    Hierarchy (View Summary)

    Index

    Properties

    additionalContentFields?: ContentBlock

    Additional fields which should be included inside the message content array if using a complex message content.

    inputVariables: Extract<keyof RunInput, string>[]

    A list of variable names the prompt template expects

    outputParser?: BaseOutputParser<unknown>

    How to parse the output of calling an LLM on this formatted prompt

    Partial variables

    template: Record<string, unknown>

    The prompt template

    templateFormat?: TemplateFormat

    The format of the prompt template. Options are 'f-string'

    'f-string'
    
    validateTemplate?: boolean

    Whether or not to try validating the template on initialization

    true