Jayashree Sridhar
commited on
Commit
·
ba735c4
1
Parent(s):
bff7aa3
Updated basetool
Browse files
agents/tools/base_tool.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
def __call__(self, *args, **kwargs):
|
| 6 |
-
raise NotImplementedError("Tool must implement __call__
|
|
|
|
| 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__.")
|