smolagents documentation

smolagents

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v1.22.0).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

smolagents

这是构建强大 agent 的最简单框架!顺便问一下,什么是 “agent”?我们在此页面提供了我们的定义,您还可以找到关于何时使用或不使用它们的建议(剧透:通常不使用 agent 会更好)。

译者注:Agent 的业内术语是“智能体”。本译文将保留 agent,不作翻译,以带来更高效的阅读体验。(在中文为主的文章中,It’s easier to 注意到英文。Attention Is All You Need!)

本库提供:

简洁性:Agent 逻辑仅需约千行代码。我们将抽象保持在原始代码之上的最小形态!

🌐 支持任何 LLM:支持通过 Hub 托管的模型,使用其 transformers 版本或通过我们的推理 API 加载,也支持 OpenAI、Anthropic 等模型。使用任何 LLM 为 agent 提供动力都非常容易。

🧑‍💻 一流的代码 agent 支持,即编写代码作为其操作的 agent(与”用于编写代码的 agent”相对),在此了解更多

🤗 Hub 集成:您可以在 Hub 上共享和加载工具,更多功能即将推出!

Update on GitHub