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.
StaticdeserializeLoad a chain from a json-like object describing it.
StaticfromA static factory method that creates an instance of TaskExecutionChain. It constructs a prompt template for task execution, which is then used to create a new instance of TaskExecutionChain. The prompt template instructs an AI to perform a task based on a given objective, taking into account previously completed tasks.
An object of type LLMChainInput, excluding the "prompt" field.
An instance of LLMChain.
Staticlc_
Chain to execute tasks.