Skip to main content

Type Alias: BasePromptTemplateOptions<TemplatesVar, Vars>

BasePromptTemplateOptions<TemplatesVar, Vars>: object

Type Parameters

TemplatesVar extends readonly string[]

Vars extends readonly string[]

Type declaration

functionMappings?

optional functionMappings: Partial<Record<TemplatesVar[number] | string & object, MappingFn>>

metadata?

optional metadata: Metadata

options?

optional options: Partial<Record<TemplatesVar[number] | string & object, string>>

outputParser?

optional outputParser: BaseOutputParser

templateVarMappings?

optional templateVarMappings: Partial<Record<Vars[number] | string & object, TemplatesVar[number] | string & object>>

templateVars?

optional templateVars: TemplatesVar | readonly string[]

Defined in

packages/core/prompts/dist/index.d.ts:10