Interface BasePromptTemplateInput<InputVariables, PartialVariableName>

Input common to all prompt templates.

interface BasePromptTemplateInput<InputVariables, PartialVariableName> {
    inputVariables: Extract<keyof InputVariables, string>[];
    outputParser?: BaseOutputParser<unknown>;
    partialVariables?: PartialValues<PartialVariableName>;
}

Type Parameters

  • InputVariables extends InputValues = any
  • PartialVariableName extends string = any

Hierarchy (view full)

Implemented by

Properties

inputVariables: Extract<keyof InputVariables, 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