Skip to content

ChatPromptTemplateConfiguration

Structure Class

ChatPromptTemplateConfiguration dataclass

Bases: _SerdeShape

Contains configurations to use a prompt in a conversational format. For more information, see Create a prompt using Prompt management.

Attributes

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

An array of the variables in the prompt template.

messages instance-attribute
messages: list[Message]

Contains messages in the chat for the prompt.

system class-attribute instance-attribute
system: list[SystemContentBlock] | None = ...

Contains system prompts to provide context to the model or to describe how it should behave.

tool_configuration class-attribute instance-attribute
tool_configuration: ToolConfiguration | None = ...

Configuration information for the tools that the model can use when generating a response.