Package com.hw.langchain.prompts.chat
Class HumanMessagePromptTemplate
java.lang.Object
com.hw.langchain.prompts.chat.BaseMessagePromptTemplate
com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
com.hw.langchain.prompts.chat.HumanMessagePromptTemplate
- 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 HumanMessagePromptTemplate
fromTemplate
(String template) Methods inherited from class com.hw.langchain.prompts.chat.BaseStringMessagePromptTemplate
formatMessages, fromTemplate, inputVariables, setPrompt
-
Constructor Details
-
HumanMessagePromptTemplate
public HumanMessagePromptTemplate()
-
-
Method Details
-
fromTemplate
-
format
Description copied from class:BaseStringMessagePromptTemplate
To a BaseMessage.- Specified by:
format
in classBaseStringMessagePromptTemplate
-