AskReference
ConceptIntermediate

What three tools are needed for the HistoryTravelBuddy™ agent, and what is the purpose of each?

The three tools are a web search tool, a URL fetching tool, and a Wikipedia search tool. The web search tool finds webpages about sights in the city; the URL tool retrieves the full content of a chosen webpage; the Wikipedia tool searches for historical articles and returns their titles, summaries, URLs, and full text.

HistoryTravelBuddy™ needs three tools because the agent itself cannot go online. First, it needs a web search tool to perform live searches based on the user's request, returning a set of webpages to visit. Second, it needs a URL fetching tool to retrieve the full content of any webpage the agent decides to inspect. Third, it needs a Wikipedia tool that uses the Wikipedia API to search for articles and fetch their content, returning the source URL, a summary, and the full text. With these three tools, the agent can search for sights, read the page contents, and enrich its itinerary with historical facts and links to Wikipedia articles.

Key points

  • Web search tool: performs live searches and returns webpages relevant to the user's request.
  • URL tool: fetches the full content of any webpage the agent chooses to visit.
  • Wikipedia tool: searches Wikipedia and returns article title, summary, source URL, and full text.
  • All three tools are connected to the agent's Toolset so the agent can decide which to use.
Source:AI Agents and Applications· Expanding GenAI capabilities with tools and agents· p. 134–148

Related questions

Cover of AI Agents and Applications

AI Agents and Applications

Andrea De Mauro

MEAP Edition Version 7 · Manning Publications

View this ebook