Spaces:
Sleeping
Sleeping
Create base.py
Browse files- tools/base.py +11 -0
tools/base.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class Tool:
|
| 2 |
+
name = ""
|
| 3 |
+
description = ""
|
| 4 |
+
inputs = {}
|
| 5 |
+
output_type = "string"
|
| 6 |
+
|
| 7 |
+
def __init__(self, **kwargs):
|
| 8 |
+
pass
|
| 9 |
+
|
| 10 |
+
def forward(self, **kwargs):
|
| 11 |
+
raise NotImplementedError("Tool must implement forward method.")
|