bstraehle commited on
Commit
410d402
·
verified ·
1 Parent(s): 2c6089a

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +1 -18
crew.py CHANGED
@@ -41,23 +41,6 @@ class GAIACrew():
41
  agents: List[BaseAgent]
42
  tasks: List[Task]
43
 
44
- with StagehandTool(
45
- api_key=os.environ["BROWSERBASE_API_KEY"],
46
- project_id=os.environ["BROWSERBASE_PROJECT_ID"],
47
- model_api_key=os.environ["OPENAI_API_KEY"],
48
- model_name=STAGEHAND_MODEL
49
- ) as web_browser_tool:
50
- web_browser_agent = Agent(
51
- role="Web Browser Agent",
52
- goal="Given a question and URL, load the URL and act, extract, navigate, observe, and answer the question: {question}",
53
- backstory="As an expert browser assistant, you load the URL and act, extract, navigate, observe to answer the question.",
54
- allow_delegation=False,
55
- llm=AGENT_MODEL,
56
- max_iter=2,
57
- tools=[web_browser_tool],
58
- verbose=True
59
- )
60
-
61
  @agent
62
  def web_search_agent(self) -> Agent:
63
  return Agent(
@@ -76,7 +59,7 @@ class GAIACrew():
76
  allow_delegation=False,
77
  llm=AGENT_MODEL,
78
  max_iter=2,
79
- tools=[AITools.stagehand_tool],
80
  verbose=True
81
  )
82
 
 
41
  agents: List[BaseAgent]
42
  tasks: List[Task]
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  @agent
45
  def web_search_agent(self) -> Agent:
46
  return Agent(
 
59
  allow_delegation=False,
60
  llm=AGENT_MODEL,
61
  max_iter=2,
62
+ tools=[AITools.web_browser_tool],
63
  verbose=True
64
  )
65