Update agents/crew.py
Browse files- agents/crew.py +10 -3
agents/crew.py
CHANGED
|
@@ -37,17 +37,17 @@ FirstTimeTraceHandler._show_tracing_declined_message = _noop
|
|
| 37 |
|
| 38 |
PLANNING_CREW = True
|
| 39 |
MEMORY_CREW = False
|
| 40 |
-
VERBOSE_CREW =
|
| 41 |
|
| 42 |
MAX_ITER_MANAGER = 15
|
| 43 |
REASONING_MANAGER = True
|
| 44 |
MAX_REASONING_ATTEMPTS_MANAGER = 3
|
| 45 |
-
VERBOSE_MANAGER =
|
| 46 |
|
| 47 |
MAX_ITER_AGENT = 15
|
| 48 |
REASONING_AGENT = True
|
| 49 |
MAX_REASONING_ATTEMPTS_AGENT = 2
|
| 50 |
-
VERBOSE_AGENT =
|
| 51 |
|
| 52 |
os.environ["CHROMA_OPENAI_API_KEY"] = os.getenv("CHROMA_OPENAI_API_KEY") # Memory
|
| 53 |
|
|
@@ -271,7 +271,14 @@ def run_crew(question, file_path):
|
|
| 271 |
final_question = _get_final_question(question, file_path)
|
| 272 |
|
| 273 |
print(f"π€ Crew execution started")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 274 |
answer = GAIACrew().crew().kickoff(inputs={"question": final_question})
|
|
|
|
| 275 |
print(f"π€ Crew execution completed")
|
| 276 |
|
| 277 |
final_answer = AITools.final_answer_tool(question, answer)
|
|
|
|
| 37 |
|
| 38 |
PLANNING_CREW = True
|
| 39 |
MEMORY_CREW = False
|
| 40 |
+
VERBOSE_CREW = True
|
| 41 |
|
| 42 |
MAX_ITER_MANAGER = 15
|
| 43 |
REASONING_MANAGER = True
|
| 44 |
MAX_REASONING_ATTEMPTS_MANAGER = 3
|
| 45 |
+
VERBOSE_MANAGER = True
|
| 46 |
|
| 47 |
MAX_ITER_AGENT = 15
|
| 48 |
REASONING_AGENT = True
|
| 49 |
MAX_REASONING_ATTEMPTS_AGENT = 2
|
| 50 |
+
VERBOSE_AGENT = True
|
| 51 |
|
| 52 |
os.environ["CHROMA_OPENAI_API_KEY"] = os.getenv("CHROMA_OPENAI_API_KEY") # Memory
|
| 53 |
|
|
|
|
| 271 |
final_question = _get_final_question(question, file_path)
|
| 272 |
|
| 273 |
print(f"π€ Crew execution started")
|
| 274 |
+
print(f"π€ Crew planning: {PLANNING_CREW}")
|
| 275 |
+
print(f"π€ Crew memory: {MEMORY_CREW}")
|
| 276 |
+
print(f"π€ Crew verbose: {VERBOSE_CREW}")
|
| 277 |
+
print(f"π€ Manager verbose: {VERBOSE_MANAGER}")
|
| 278 |
+
print(f"π€ Agent verbose: {VERBOSE_AGENT}")
|
| 279 |
+
|
| 280 |
answer = GAIACrew().crew().kickoff(inputs={"question": final_question})
|
| 281 |
+
|
| 282 |
print(f"π€ Crew execution completed")
|
| 283 |
|
| 284 |
final_answer = AITools.final_answer_tool(question, answer)
|