Files
crewAI/src/crewai/cli/templates/pipeline_router/tools/custom_tool.py
Brandon Hancock a5e0fa9ddf WIP
2024-08-01 16:56:01 -04:00

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