Class ConversationChain
java.lang.Object
com.hw.langchain.chains.base.Chain
com.hw.langchain.chains.llm.LLMChain
com.hw.langchain.chains.conversation.base.ConversationChain
Chain to have a conversation and load context from memory.
- Author:
- HamaWhite
-
Field Summary
Fields inherited from class com.hw.langchain.chains.llm.LLMChain
llm, outputKey, outputParser, prompt, returnFinalOnly
-
Constructor Summary
ConstructorDescriptionConversationChain
(BaseLanguageModel llm, BasePromptTemplate prompt, BaseMemory memory) -
Method Summary
Modifier and TypeMethodDescriptionUse this since so some prompt vars come from history."void
Validate that prompt input variables are consistent.Methods inherited from class com.hw.langchain.chains.llm.LLMChain
asyncInnerCall, asyncPredict, chainType, innerCall, outputKeys, predict, predictAndParse
-
Field Details
-
inputKey
-
-
Constructor Details
-
ConversationChain
-
ConversationChain
-
-
Method Details