Optional
memoryAdds a task to the task list.
The task to be added.
Promise resolving to void.
Run the core logic of this chain and add to output if desired.
Wraps _call and handles memory.
Optional
config: BaseCallbackConfig | CallbacksOptional
tags: string[]Executes a task based on the objective and the task description.
The objective of the task.
The task to be executed.
Optional
runManager: CallbackManagerForChainRunOptional CallbackManagerForChainRun instance.
Promise resolving to the result of the task execution as a string.
Generates the next tasks based on the result of the previous task, the task description, and the objective.
The result of the previous task.
The description of the task.
The objective of the task.
Optional
runManager: CallbackManagerForChainRunOptional CallbackManagerForChainRun instance.
Promise resolving to an array of tasks without taskID.
Invoke the chain with the provided input and returns the output.
Input values for the chain run.
Optional
config: BaseCallbackConfigOptional configuration for the Runnable.
Promise that resolves with the output of the chain run.
Prints the next task to the console.
The next task to be printed.
void
Prioritizes the tasks based on the current task ID and the objective.
The ID of the current task.
The objective of the task.
Optional
runManager: CallbackManagerForChainRunOptional CallbackManagerForChainRun instance.
Promise resolving to an array of prioritized tasks.
Return a json-like object representing this chain.
Static
deserializeLoad a chain from a json-like object describing it.
Static
fromLLMStatic method to create a new BabyAGI instance from a BaseLanguageModel.
A new instance of BabyAGI.
Generated using TypeDoc
Class responsible for managing tasks, including their creation, prioritization, and execution. It uses three chains for these operations:
creationChain
,prioritizationChain
, andexecutionChain
.Example