adding initial CLI support

This commit is contained in:
João Moura
2024-03-11 16:37:32 -03:00
parent a4e9b9ccfe
commit 47b5cbd211
24 changed files with 417 additions and 7 deletions

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