From ec03a53121d2230c695c1a2ad0c6d63d9c702863 Mon Sep 17 00:00:00 2001 From: Vini Brasil Date: Mon, 18 Aug 2025 13:19:35 -0700 Subject: [PATCH] Add example to Tool Repository docs (#3352) --- docs/en/enterprise/features/tool-repository.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/en/enterprise/features/tool-repository.mdx b/docs/en/enterprise/features/tool-repository.mdx index c43b96987..4f9ad064b 100644 --- a/docs/en/enterprise/features/tool-repository.mdx +++ b/docs/en/enterprise/features/tool-repository.mdx @@ -35,6 +35,22 @@ crewai tool install This installs the tool and adds it to `pyproject.toml`. +You can use the tool by importing it and adding it to your agents: + +```python +from your_tool.tool import YourTool + +custom_tool = YourTool() + +researcher = Agent( + role='Market Research Analyst', + goal='Provide up-to-date market analysis of the AI industry', + backstory='An expert analyst with a keen eye for market trends.', + tools=[custom_tool], + verbose=True +) +``` + ## Creating and Publishing Tools To create a new tool project: