Class ConversationChain

java.lang.Object
com.hw.langchain.chains.base.Chain
com.hw.langchain.chains.llm.LLMChain
com.hw.langchain.chains.conversation.base.ConversationChain

public class ConversationChain extends LLMChain
Chain to have a conversation and load context from memory.
Author:
HamaWhite
  • Field Details

    • inputKey

      protected String inputKey
  • Constructor Details

  • Method Details

    • inputKeys

      public List<String> inputKeys()
      Use this since so some prompt vars come from history."
      Overrides:
      inputKeys in class LLMChain
      Returns:
      the list of input keys
    • validatePromptInputVariables

      public void validatePromptInputVariables()
      Validate that prompt input variables are consistent.