Class BaseMessagePromptTemplate

java.lang.Object
com.hw.langchain.prompts.chat.BaseMessagePromptTemplate
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BaseStringMessagePromptTemplate, MessagesPlaceholder

public abstract class BaseMessagePromptTemplate extends Object implements Serializable
Author:
HamaWhite
See Also:
  • Constructor Details

    • BaseMessagePromptTemplate

      public BaseMessagePromptTemplate()
  • Method Details

    • formatMessages

      public abstract List<BaseMessage> formatMessages(Map<String,Object> kwargs)
      To messages.
      Parameters:
      kwargs - keyword arguments
      Returns:
      a list of BaseMessage
    • inputVariables

      public abstract List<String> inputVariables()
      Input variables for this prompt template.
      Returns:
      a list of input variables