ChatPromptValueConcrete#
- class langchain_core.prompt_values.ChatPromptValueConcrete[source]#
Bases:
ChatPromptValue
Chat prompt value which explicitly lists out the message types it accepts. For use in external schemas.
- param messages: Sequence[AnyMessage] [Required]#
Sequence of messages.
- param type: Literal['ChatPromptValueConcrete'] = 'ChatPromptValueConcrete'#
- to_messages() list[BaseMessage] #
Return prompt as a list of messages.
- Return type:
list[BaseMessage]
- to_string() str #
Return prompt as string.
- Return type:
str