1. Learn
  2. /
  3. Courses
  4. /
  5. AI Agents with Hugging Face smolagents

Connected

Exercise

Divide and Conquer: Creating Specialist Agents

You're helping your younger sister apply to computer science programs. It's a lot to manage: researching schools, comparing programs, and writing strong essays.

To make the process easier, you decide to build two specialized agents:

  • One to research universities and their requirements
  • One to help write compelling application essays

You have access to the CodeAgent and WebSearchTool classes, as well as a pre-configured model.

Instructions

100 XP
  • In the first agent, set the tools parameter to include the WebSearchTool.
  • Still in the first agent, provide a name string to identify it as the school research agent.
  • In the second agent, set the model parameter to use the provided model variable.
  • Finally, complete the second agent's description to summarize its purpose.