Run a standalone AssistantAgent, browsing the web using the BrowserUseTool
AssistantAgent
as a standalone agent with the
ability to execute simple tasks without the need for interacting with
other agents.
In this notebook, we’ll enable our assistant agent access to surf the
web. We will use the BrowserUseTool
Tool, for which we need to install
the browser-use optional dependency and
playwright.
Browser Use
requires Python 3.11 or higher.Install ag2
and playwright
: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.
LLMConfig.from_json
method loads a list of configurations from an environment variable or a
JSON file.
BrowserUseTool
Tool.