5️⃣ Add a Pizza Estimation Function
In this level, you are extending your agent’s capabilities beyond answering questions.
Now, your agent should be able to reason about quantities and make helpful suggestions.
Specifically, you’ll teach the agent to estimate how much pizza is needed for a group, taking into account the number of people and their appetite.
This feature makes your agent feel more practical and interactive — like a real assistant you could rely on during a team lunch or hackathon celebration. 🍕
📋 Tasks
- Add a function to the agent that calculates the amount of pizza needed.
✅ Pass Criteria and Requirements
- The agent suggests a reasonable amount of pizza based on the number of people and their appetite level.
- The agent asks for diner information (e.g., number of people, appetite) before making a calculation.
📚 Resources
🛠️ Hints and Tips
Create a simple function in Python or your language of choice that returns the size or amount of pizza needed for a given number of people, and add that function as a tool for the agent.
A large pizza is generally suitable for two adults and two children.