Package com.hw.langchain.prompts.chat
Class MessagesPlaceholder
java.lang.Object
com.hw.langchain.prompts.chat.BaseMessagePromptTemplate
com.hw.langchain.prompts.chat.MessagesPlaceholder
- All Implemented Interfaces:
Serializable
Prompt template that assumes variable is already list of messages.
- Author:
- HamaWhite
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatMessages
(Map<String, Object> kwargs) To messages.Input variables for this prompt template.
-
Constructor Details
-
MessagesPlaceholder
-
-
Method Details
-
formatMessages
Description copied from class:BaseMessagePromptTemplate
To messages.- Specified by:
formatMessages
in classBaseMessagePromptTemplate
- Parameters:
kwargs
- keyword arguments- Returns:
- a list of BaseMessage
-
inputVariables
Description copied from class:BaseMessagePromptTemplate
Input variables for this prompt template.- Specified by:
inputVariables
in classBaseMessagePromptTemplate
- Returns:
- a list of input variables
-