bstraehle commited on
Commit
c70f203
·
verified ·
1 Parent(s): 409d794

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +6 -4
crew.py CHANGED
@@ -13,7 +13,7 @@ from openinference.instrumentation.crewai import CrewAIInstrumentor
13
  from phoenix.otel import register
14
  from util import get_final_answer
15
 
16
- MANAGER_MODEL = "o3"
17
  AGENT_MODEL = "gpt-4.1"
18
 
19
  PHOENIX_API_KEY = os.environ["PHOENIX_API_KEY"]
@@ -85,12 +85,14 @@ def run_crew(question, file_name):
85
 
86
  manager_agent = Agent(
87
  role="Manager Agent",
88
- goal="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, video_analysis_agent, or web_search_agent for help. Question: \"{topic}\" ",
 
 
89
  backstory="As an expert manager assistant, you answer the question. ",
90
  allow_delegation=True,
91
  llm=MANAGER_MODEL,
92
  max_iter=5,
93
- verbose=False
94
  )
95
 
96
  # Tasks
@@ -107,7 +109,7 @@ def run_crew(question, file_name):
107
  agents=[image_analysis_agent, python_coding_agent, video_analysis_agent, web_search_agent],
108
  manager_agent=manager_agent,
109
  tasks=[manager_task],
110
- verbose=False
111
  )
112
 
113
  print(crew.agents)
 
13
  from phoenix.otel import register
14
  from util import get_final_answer
15
 
16
+ MANAGER_MODEL = "gpt-4.1"
17
  AGENT_MODEL = "gpt-4.1"
18
 
19
  PHOENIX_API_KEY = os.environ["PHOENIX_API_KEY"]
 
85
 
86
  manager_agent = Agent(
87
  role="Manager Agent",
88
+ goal="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, video_analysis_agent, or web_search_agent for help. "
89
+ "If there is no good coworker, delegate to the python_coding_agent to implement a tool for the task. "
90
+ "Question: \"{topic}\" ",
91
  backstory="As an expert manager assistant, you answer the question. ",
92
  allow_delegation=True,
93
  llm=MANAGER_MODEL,
94
  max_iter=5,
95
+ verbose=True
96
  )
97
 
98
  # Tasks
 
109
  agents=[image_analysis_agent, python_coding_agent, video_analysis_agent, web_search_agent],
110
  manager_agent=manager_agent,
111
  tasks=[manager_task],
112
+ verbose=True
113
  )
114
 
115
  print(crew.agents)