bstraehle commited on
Commit
3064d32
·
verified ·
1 Parent(s): 9f41d52

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +17 -17
crew.py CHANGED
@@ -49,12 +49,12 @@ tracer_provider = register(
49
  def run_crew(question, file_path):
50
  # Tools
51
 
52
- web_browser_tool = StagehandTool(
53
- api_key=os.environ["BROWSERBASE_API_KEY"],
54
- project_id=os.environ["BROWSERBASE_PROJECT_ID"],
55
- model_api_key=os.environ["OPENAI_API_KEY"],
56
- model_name="gpt-4.1"
57
- )
58
 
59
  @tool("Web Search Tool")
60
  def web_search_tool(question: str) -> str:
@@ -333,16 +333,16 @@ def run_crew(question, file_path):
333
  verbose=True
334
  )
335
 
336
- web_browser_agent = Agent(
337
- role="Web Browser Agent",
338
- goal="Given a question and URL, load the URL and act, extract, navigate, observe, and answer the question: {question}",
339
- backstory="As an expert browser assistant, you load the URL and act, extract, navigate, observe to answer the question.",
340
- allow_delegation=False,
341
- llm=AGENT_MODEL,
342
- max_iter=2,
343
- tools=[web_browser_tool],
344
- verbose=True
345
- )
346
 
347
  image_analysis_agent = Agent(
348
  role="Image Analysis Agent",
@@ -467,7 +467,7 @@ def run_crew(question, file_path):
467
 
468
  crew = Crew(
469
  agents=[web_search_agent,
470
- web_browser_agent,
471
  image_analysis_agent,
472
  audio_analysis_agent,
473
  video_analysis_agent,
 
49
  def run_crew(question, file_path):
50
  # Tools
51
 
52
+ #web_browser_tool = StagehandTool(
53
+ # api_key=os.environ["BROWSERBASE_API_KEY"],
54
+ # project_id=os.environ["BROWSERBASE_PROJECT_ID"],
55
+ # model_api_key=os.environ["OPENAI_API_KEY"],
56
+ # model_name="gpt-4.1"
57
+ #)
58
 
59
  @tool("Web Search Tool")
60
  def web_search_tool(question: str) -> str:
 
333
  verbose=True
334
  )
335
 
336
+ #web_browser_agent = Agent(
337
+ # role="Web Browser Agent",
338
+ # goal="Given a question and URL, load the URL and act, extract, navigate, observe, and answer the question: {question}",
339
+ # backstory="As an expert browser assistant, you load the URL and act, extract, navigate, observe to answer the question.",
340
+ # allow_delegation=False,
341
+ # llm=AGENT_MODEL,
342
+ # max_iter=2,
343
+ # tools=[web_browser_tool],
344
+ # verbose=True
345
+ #)
346
 
347
  image_analysis_agent = Agent(
348
  role="Image Analysis Agent",
 
467
 
468
  crew = Crew(
469
  agents=[web_search_agent,
470
+ #web_browser_agent,
471
  image_analysis_agent,
472
  audio_analysis_agent,
473
  video_analysis_agent,