WikipediaAgent
can help you.
autogen
or ag2
, you can upgrade using:
autogen
and ag2
are aliases for the same PyPI package.
WikipediaAgent
can:
WikipediaQueryRunTool
to execute searches and fetch information directly from Wikipedia.
WikipediaAgent
has the following in-built tool:
WikipediaQueryRunTool
Enables the agent to perform Wikipedia searches and retrieve relevant summaries.
WikipediaPageLoadTool
Retrieves the full content of a specified Wikipedia page for more in-depth responses.
WikipediaAgent
. It operates using the Wikipedia API, which is publicly accessible. Ensure that your environment has internet access to allow the agent to fetch data from Wikipedia.
WikipediaAgent
to search for information about Australia:
UserProxyAgent
to delegate the query to the WikipediaAgent
, which then performs the search and returns the information.
UserProxyAgent
is responsible for executing the tools registered by the WikipediaAgent
. This separation ensures a clear distinction between decision-making (handled by WikipediaAgent
) and action execution (handled by UserProxyAgent
).
For more details on integrating Wikipedia search tools into your agents, refer to the Wikipedia Search Tools Notebook.