|
|
@ -7,14 +7,14 @@ class BossNode:
|
|
|
|
self.llm = llm
|
|
|
|
self.llm = llm
|
|
|
|
self.vectorstore = vectorstore
|
|
|
|
self.vectorstore = vectorstore
|
|
|
|
self.agent_executor = agent_executor
|
|
|
|
self.agent_executor = agent_executor
|
|
|
|
self.max_iterations = max_iterations
|
|
|
|
# self.max_iterations = max_iterations
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
self.baby_agi = BabyAGI.from_llm(
|
|
|
|
self.baby_agi = BabyAGI.from_llm(
|
|
|
|
llm=self.llm,
|
|
|
|
llm=self.llm,
|
|
|
|
vectorstore=self.vectorstore,
|
|
|
|
vectorstore=self.vectorstore,
|
|
|
|
task_execution_chain=self.agent_executor,
|
|
|
|
task_execution_chain=self.agent_executor,
|
|
|
|
max_iterations=self.max_iterations,
|
|
|
|
# max_iterations=self.max_iterations,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
except ValidationError as e:
|
|
|
|
except ValidationError as e:
|
|
|
|
print(f"Validation Error while initializing BabyAGI: {e}")
|
|
|
|
print(f"Validation Error while initializing BabyAGI: {e}")
|
|
|
|