Interface PromptTemplateInput<RunInput, PartialVariableName>

Inputs to create a PromptTemplate

Type Parameters

  • RunInput extends InputValues = any

  • PartialVariableName extends string = any

Hierarchy

Implemented by

Properties

inputVariables: Extract<keyof RunInput, string>[]

A list of variable names the prompt template expects

template: MessageContent

The prompt template

outputParser?: BaseOutputParser<unknown>

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

partialVariables?: PartialValues<PartialVariableName>

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