Skip to content

Commit

Permalink
Fix typos in agents_advanced.md (#34405)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudydel authored Oct 25, 2024
1 parent f73f5e6 commit 6a62a6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/en/agents_advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ manager_agent.run("Who is the CEO of Hugging Face?")

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

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.
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.

The custom tool needs:
- 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`.
- 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`.
- An attribute `description` is used to populate the agent's system prompt.
- 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.
- An `output_type` attribute, which specifies the output type.
Expand Down Expand Up @@ -240,4 +240,4 @@ with gr.Blocks() as demo:

if __name__ == "__main__":
demo.launch()
```
```

0 comments on commit 6a62a6d

Please sign in to comment.