WebSurfer Agent
browser-use tool
and
crawl4ai tool
notebooks, we demonstrated how to create Agents with basic web surfing
capabilities.
Now, we’re taking it a step further with WebSurferAgent
—a powerful
agent equipped with built-in web surfing tools right out of the box!
browser-use
toolBrowser Use
requires Python 3.11 or higher.
browser-use
integration in AG2, follow these
steps:
browser-use
extra:
Note: If you have been usingautogen
orag2
, all you need to do is upgrade it using:orasautogen
, andag2
are aliases for the same PyPI package.
nest_asyncio
to allow nested
event loops. bash pip install nest_asyncio
browser-use
WebSurferAgentNote:Browser Use
supports the following models: Supported Models We had great experience withOpenAI
,Anthropic
, andGemini
. However,DeepSeek
andOllama
haven’t performed as well.
run
Methodrun
method simplifies the process by eliminating the need for
manual UserProxyAgent
creation.
initiate_chat
MethodUserProxyAgent
and
registering tools for execution.
crawl4ai
toolcrawl4ai
integration in AG2, follow these
steps:
crawl4ai
extra:
Note: If you have been usingautogen
orag2
, all you need to do is upgrade it using:orasautogen
, andag2
are aliases for the same PyPI package.
nest_asyncio
to allow nested
event loops. bash pip install nest_asyncio
Note:Crawl4AI
is built on top of LiteLLM and supports the same models as LiteLLM. We had great experience withOpenAI
,Anthropic
,Gemini
andOllama
. However, as of this writing,DeepSeek
is encountering some issues.
run
Methodrun
method simplifies the process by eliminating the need for
manual UserProxyAgent
creation.
initiate_chat
MethodUserProxyAgent
and
registering tools for execution.