Jayashree Sridhar commited on
Commit
ba735c4
·
1 Parent(s): bff7aa3

Updated basetool

Browse files
Files changed (1) hide show
  1. agents/tools/base_tool.py +5 -5
agents/tools/base_tool.py CHANGED
@@ -1,6 +1,6 @@
1
- class BaseTool:
2
- """Minimal tool base for CrewAI/agents/crewai LangChain, can be adapted as needed."""
3
- def __init__(self, config=None):
4
- self.config = config
5
  def __call__(self, *args, **kwargs):
6
- raise NotImplementedError("Tool must implement __call__ method.")
 
1
+ from pydantic import BaseModel
2
+ class BaseTool(BaseModel):
3
+ name: str
4
+ description: str
5
  def __call__(self, *args, **kwargs):
6
+ raise NotImplementedError("Tool must implement __call__.")