An BaseMessagePromptTemplate | BaseChatPromptTemplate used to format a single example.
A list of variable names the prompt template expects
Optional exampleAn BaseExampleSelector Examples to format into the prompt. Exactly one of this or examples must be provided.
Optional exampleString separator used to join the prefix, the examples, and suffix.
"\n\n"
Optional examplesExamples to format into the prompt. Exactly one of this or exampleSelector must be provided.
Optional outputHow to parse the output of calling an LLM on this formatted prompt
Optional partialPartial variables
Optional prefixA prompt template string to put before the examples.
""
Optional suffixA prompt template string to put after the examples.
""
Optional templateThe format of the prompt template. Options are: 'f-string'
f-string
Optional validateWhether or not to try validating the template on initialization.
true
Generated using TypeDoc
Input common to all prompt templates.