Spaces:
Sleeping
Sleeping
Create manyata_search
Browse files- tools/manyata_search +14 -0
tools/manyata_search
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
from smolagents.tools import Tool
|
| 3 |
+
|
| 4 |
+
class ManyataSearchTools(Tool):
|
| 5 |
+
name = "manyata_search"
|
| 6 |
+
description = "Provides the search results from manyata database."
|
| 7 |
+
inputs = {'answer': {'type': 'any', 'description': 'The results'}}
|
| 8 |
+
output_type = "any"
|
| 9 |
+
|
| 10 |
+
def forward(self, answer: Any) -> Any:
|
| 11 |
+
return answer
|
| 12 |
+
|
| 13 |
+
def __init__(self, *args, **kwargs):
|
| 14 |
+
self.is_initialized = False
|