Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
add important missing parts to creating tools
Brandon Hancock5dc8dd0e8a8c
diff --git a/docs/concepts/tools.mdx b/docs/concepts/tools.mdxindex 8abe0f4e6..fa823d0b9 100644--- a/docs/concepts/tools.mdx+++ b/docs/concepts/tools.mdx@@ -150,15 +150,20 @@ There are two main ways for one to create a CrewAI tool:```python Codefrom crewai.tools import BaseTool+from pydantic import BaseModel, Field+class MyToolInput(BaseModel):+ """Input schema for MyCustomTool."""+ argument: str = Field(..., description="Description of the argument.")class MyCustomTool(BaseTool):name: str = "Name of my tool"- description: str = "Clear description for what this tool is useful for, your agent will need this information to use it."+ description: str = "What this tool does. It's vital for effective utilization."+ args_schema: Type[BaseModel] = MyToolInputdef _run(self, argument: str) -> str:- # Implementation goes here- return "Result from custom tool"+ # Your tool's logic here+ return "Tool's result"```### Utilizing the `tool` Decorator