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[AIMessage | HumanMessage | ChatMessage | SystemMessage | FunctionMessage | ToolMessage] [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