LLM Wrapper to use
OptionalllmKwargs to pass to LLM
OptionalmemoryKey to use for output, defaults to text
OptionaloutputOutputParser to use
Prompt object to use
Return the string type key uniquely identifying this class of chain.
Protected_Run the core logic of this chain and add to output if desired.
Wraps _call and handles memory.
Optionalconfig: anyInvoke the chain with the provided input and returns the output.
Input values for the chain run.
Optionaloptions: anyPromise that resolves with the output of the chain run.
Format prompt with values and pass to LLM
keys to pass to prompt template
OptionalcallbackManager: anyCallbackManager to use
Completion from LLM.
StaticdeserializeLoad a chain from a json-like object describing it.
Staticlc_
Chain to run queries against LLMs.
Example