Skip to content

TextPromptTemplateConfiguration

Structure Class

TextPromptTemplateConfiguration dataclass

Bases: _SerdeShape

Contains configurations for a text prompt template. To include a variable, enclose a word in double curly braces as in {{variable}}.

Attributes

cache_point class-attribute instance-attribute
cache_point: CachePointBlock | None = ...

A cache checkpoint within a template configuration.

input_variables class-attribute instance-attribute
input_variables: list[PromptInputVariable] | None = ...

An array of the variables in the prompt template.

text instance-attribute
text: str

The message for the prompt.