bstraehle commited on
Commit
500d9fb
·
verified ·
1 Parent(s): da6f5ec

Update agents/crew.py

Browse files
Files changed (1) hide show
  1. agents/crew.py +2 -2
agents/crew.py CHANGED
@@ -9,7 +9,7 @@ from agents.models.llms import (
9
  LLM_MANAGER,
10
  LLM_AGENT,
11
  )
12
- from agents.tools.ai_tools import AITools, get_final_answer
13
  from agents.tools.arithmetic_tools import ArithmeticTools
14
  from agents.tools.chess_tools import ChessTools
15
  from crewai import Agent, Crew, Task
@@ -206,7 +206,7 @@ def run_crew(question, file_path):
206
  final_question = f"{question} File path: {file_path}."
207
 
208
  answer = GAIACrew().crew().kickoff(inputs={"question": final_question})
209
- final_answer = get_final_answer(question, str(answer))
210
 
211
  print(f"🤖 Initial question: {question}")
212
  print(f"🤖 Final question: {final_question}")
 
9
  LLM_MANAGER,
10
  LLM_AGENT,
11
  )
12
+ from agents.tools.ai_tools import AITools
13
  from agents.tools.arithmetic_tools import ArithmeticTools
14
  from agents.tools.chess_tools import ChessTools
15
  from crewai import Agent, Crew, Task
 
206
  final_question = f"{question} File path: {file_path}."
207
 
208
  answer = GAIACrew().crew().kickoff(inputs={"question": final_question})
209
+ final_answer = AITools.get_final_answer(question, str(answer))
210
 
211
  print(f"🤖 Initial question: {question}")
212
  print(f"🤖 Final question: {final_question}")