Package com.hw.langchain.prompts.chat
Class ChatPromptTemplate
java.lang.Object
com.hw.langchain.prompts.base.BasePromptTemplate
com.hw.langchain.prompts.chat.BaseChatPromptTemplate
com.hw.langchain.prompts.chat.ChatPromptTemplate
- Author:
- HamaWhite
-
Field Summary
Fields inherited from class com.hw.langchain.prompts.base.BasePromptTemplate
inputVariables, outputParser, partialVariables
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatMessages
(Map<String, Object> kwargs) Format kwargs into a list of messages.static ChatPromptTemplate
fromMessages
(List<?> messages) Methods inherited from class com.hw.langchain.prompts.chat.BaseChatPromptTemplate
format, formatPrompt
Methods inherited from class com.hw.langchain.prompts.base.BasePromptTemplate
mergePartialAndUserVariables
-
Constructor Details
-
ChatPromptTemplate
-
ChatPromptTemplate
-
-
Method Details
-
formatMessages
Description copied from class:BaseChatPromptTemplate
Format kwargs into a list of messages.- Specified by:
formatMessages
in classBaseChatPromptTemplate
-
fromMessages
-