ChatPromptValue constructor
const
ChatPromptValue(
- List<
ChatMessage> messages
Prompt value whose value is a list of messages.
When toString is called, it returns the string representation of the messages using the following format:
System: <system message>
Human: <human message>
AI: <AI message>
Human: <human message>
AI: <AI message>
...
When toChatMessages is called, it returns the list of messages.
Implementation
const ChatPromptValue(this.messages);