mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-05 22:28:29 +00:00
* fix: Add validation fix output_file issue when have / * fix: run black to format code * fix: run black to format code
13 lines
399 B
Python
13 lines
399 B
Python
from crewai_tools import BaseTool
|
|
|
|
|
|
class MyCustomTool(BaseTool):
|
|
name: str = "Name of my tool"
|
|
description: str = (
|
|
"Clear description for what this tool is useful for, you agent will need this information to use it."
|
|
)
|
|
|
|
def _run(self, argument: str) -> str:
|
|
# Implementation goes here
|
|
return "this is an example of a tool output, ignore it and move along."
|