Interface ImagePromptTemplateInput<RunInput, PartialVariableName>

Inputs to create a ImagePromptTemplate

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

Type Parameters

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

Hierarchy (view full)

Properties

inputVariables: Extract<keyof RunInput, string>[]

A list of variable names the prompt template expects

template: Record<string, unknown>

The prompt template

outputParser?: BaseOutputParser<unknown>

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

Partial variables

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