开始使用免费开始使用

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?

本练习是课程的一部分

AI Agents with Hugging Face smolagents

查看课程

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习