Package com.hw.langchain.prompts.chat
Class ChatMessagePromptTemplate
java.lang.Object
com.hw.langchain.prompts.chat.BaseMessagePromptTemplate
com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
com.hw.langchain.prompts.chat.ChatMessagePromptTemplate
- All Implemented Interfaces:
Serializable
- Author:
- HamaWhite
- See Also:
-
Field Summary
Fields inherited from class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
prompt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTo a BaseMessage.static ChatMessagePromptTemplate
fromTemplate
(String template) Methods inherited from class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
formatMessages, fromTemplate, inputVariables, setPrompt
-
Constructor Details
-
ChatMessagePromptTemplate
public ChatMessagePromptTemplate()
-
-
Method Details
-
fromTemplate
-
format
Description copied from class:BaseStringMessagePromptTemplate
To a BaseMessage.- Specified by:
format
in classBaseStringMessagePromptTemplate
-