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?: "f-string";
    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?: "f-string"

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

Default Value

'f-string'
validateTemplate?: boolean

Whether or not to try validating the template on initialization

Default Value

true

Generated using TypeDoc