crewAI-tools icon indicating copy to clipboard operation
crewAI-tools copied to clipboard

the code in ReadME.md file , there is code error in 'Using the tool Decorator' module .can change as below,

Open greenvegetable opened this issue 4 months ago • 2 comments

Using the tool Decorator

Quickly create lightweight tools using decorators:

orginal code 👎 from crewai import tool

new code 👍 : from crewai.tools import tool

greenvegetable avatar Jul 27 '25 01:07 greenvegetable

Can you describe a lit bit more your issue?

lucasgomide avatar Aug 06 '25 12:08 lucasgomide

I mean,when we use tool in crewai, the orignal code as below is wrong, from crewai import tool.

If we want to use crewai api correcttly ,we need to import it as below, from crewai.tools import tool

greenvegetable avatar Aug 11 '25 11:08 greenvegetable