Skip to content

Commit 6a62a6d

Browse files
authored
Fix typos in agents_advanced.md (#34405)
1 parent f73f5e6 commit 6a62a6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/en/agents_advanced.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ manager_agent.run("Who is the CEO of Hugging Face?")
6666

6767
Let's take again the tool example from main documentation, for which we had implemented a `tool` decorator.
6868

69-
If you need to add variation, like custom attributes for your too, you can build your tool following the fine-grained method: building a class that inherits from the [`Tool`] superclass.
69+
If you need to add variation, like custom attributes for your tool, you can build your tool following the fine-grained method: building a class that inherits from the [`Tool`] superclass.
7070

7171
The custom tool needs:
72-
- An attribute `name`, which corresponds to the name of the tool itself. The name usually describes what the tool does. Since the code returns the model with the most downloads for a task, let's name is `model_download_counter`.
72+
- An attribute `name`, which corresponds to the name of the tool itself. The name usually describes what the tool does. Since the code returns the model with the most downloads for a task, let's name it `model_download_counter`.
7373
- An attribute `description` is used to populate the agent's system prompt.
7474
- An `inputs` attribute, which is a dictionary with keys `"type"` and `"description"`. It contains information that helps the Python interpreter make educated choices about the input.
7575
- An `output_type` attribute, which specifies the output type.
@@ -240,4 +240,4 @@ with gr.Blocks() as demo:
240240

241241
if __name__ == "__main__":
242242
demo.launch()
243-
```
243+
```

0 commit comments

Comments
 (0)