Skip to content

Commit

Permalink
Remove references to transformers.agents in doc and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aymeric-roucher committed Jan 6, 2025
1 parent d704434 commit f3c4edb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/en/examples/text_to_sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def sql_engine(query: str) -> str:

Now let us create an agent that leverages this tool.

We use the `CodeAgent`, which is transformers.agents’ main agent class: an agent that writes actions in code and can iterate on previous output according to the ReAct framework.
We use the `CodeAgent`, which is smolagents’ main agent class: an agent that writes actions in code and can iterate on previous output according to the ReAct framework.

The model is the LLM that powers the agent system. HfApiModel allows you to call LLMs using HF’s Inference API, either via Serverless or Dedicated endpoint, but you could also use any proprietary API.

Expand Down
4 changes: 2 additions & 2 deletions docs/source/en/guided_tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Transformers comes with a default toolbox for empowering agents, that you can ad
You can manually use a tool by calling the [`load_tool`] function and a task to perform.

```python
from transformers import load_tool
from smolagents import load_tool

search_tool = load_tool("web_search")
print(search_tool("Who's the current president of Russia?"))
Expand All @@ -202,7 +202,7 @@ This code can quickly be converted into a tool, just by wrapping it in a functio


```py
from transformers import tool
from smolagents import tool

@tool
def model_download_tool(task: str) -> str:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/tutorials/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ You can leverage tool collections by using the ToolCollection object, with the s
Then pass them as a list to initialize you agent, and start using them!

```py
from transformers import ToolCollection, CodeAgent
from smolagents import ToolCollection, CodeAgent

image_tool_collection = ToolCollection(
collection_slug="huggingface-tools/diffusion-tools-6630bb19a942c2306a2cdb6f",
Expand Down

0 comments on commit f3c4edb

Please sign in to comment.