Get startedGet started for free

Wait, You Didn't Write Any Functions?

After watching an agent analyze your expenses, you're fascinated by how it calculated totals, identified patterns, and created budget recommendations all in one go.

Later, your roommate asks: "How was that possible without you giving it any functions directly?"

You realize it's because the agent wasn't just calling functions; it was writing and running code.

What's the main difference between how a code agent and a function-calling agent would solve a task?

This exercise is part of the course

AI Agents with Hugging Face smolagents

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise