mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
adding initial CLI support
This commit is contained in:
13
src/crewai/cli/templates/tools/custom_tool.py
Normal file
13
src/crewai/cli/templates/tools/custom_tool.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# For this make sure to install the tools package
|
||||
# pip install 'crewai[tools]'
|
||||
|
||||
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."
|
||||
Reference in New Issue
Block a user