Skip to content

Commit 5cd1f6c

Browse files
Update docs/hub/agents.md
Co-authored-by: Aymeric Roucher <[email protected]>
1 parent d4cb687 commit 5cd1f6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/hub/agents.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ This page compiles all the libraries and tools Hugging Face offers for agentic w
66

77
[smolagents](https://github.com/huggingface/smolagents) is a lightweight library to cover all agentic use cases, from code-writing agents to computer use, in few lines of code. It is model agnostic, supporting local models served with Hugging Face Transformers, as well as models offered with [Inference Providers](../inference-providers/index.md), and proprietary model providers.
88

9-
It offers three agent classes based on the ReAct framework: `CodeAgent` for agents writing their own code, `ToolCallingAgent` for tool calling agents, and the `MultiStepAgent` (on which the two former agents are based) for multi-step ReAct workflows.
9+
It offers a unique kind of agent :`CodeAgent`, an agent that writes its actions in Python code.
10+
It also supports the standard agent that writes actions in JSON blobs as most other agentic frameworks do, called `ToolCallingAgent`.
11+
To learn more about write actions in code vs JSON, check out our [new short course on DeepLearning.AI](https://www.deeplearning.ai/short-courses/building-code-agents-with-hugging-face-smolagents/).
1012

1113
If you want to avoid defining agents yourself, the easiest way to start an agent is through the CLI, using the `smolagent` command.
1214

0 commit comments

Comments
 (0)