Skip to main content

Interface: PromptTemplateInput

prompts.PromptTemplateInput

Inputs to create a PromptTemplate

Hierarchy

Implemented by

Properties

inputVariables

inputVariables: string[]

A list of variable names the prompt template expects

Inherited from

BasePromptTemplateInput.inputVariables

Defined in

langchain/src/prompts/base.ts:34


outputParser

Optional outputParser: BaseOutputParser

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

Inherited from

BasePromptTemplateInput.outputParser

Defined in

langchain/src/prompts/base.ts:39


partialVariables

Optional partialVariables: PartialValues

Partial variables

Inherited from

BasePromptTemplateInput.partialVariables

Defined in

langchain/src/prompts/base.ts:42


template

template: string

The propmt template

Defined in

langchain/src/prompts/prompt.ts:19


templateFormat

Optional templateFormat: TemplateFormat

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

Default Value

'f-string'

Defined in

langchain/src/prompts/prompt.ts:26


validateTemplate

Optional validateTemplate: boolean

Whether or not to try validating the template on initialization

Default Value

true

Defined in

langchain/src/prompts/prompt.ts:33