Spaces:
Sleeping
Sleeping
Create miradi_tools/miradi_search.py
Browse files
miradi_tools/miradi_search.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
from smolagents.tools import Tool
|
| 3 |
+
|
| 4 |
+
class MiradiSearchTool(Tool):
|
| 5 |
+
name = "miradi_search"
|
| 6 |
+
description = "Provides a search for projects within a given region."
|
| 7 |
+
inputs = {'answer': {'type': 'any', 'description': 'Results found are'}}
|
| 8 |
+
output_type = "any"
|
| 9 |
+
def forward(self, any: Any) -> Any:
|
| 10 |
+
return answer
|
| 11 |
+
|
| 12 |
+
def __init__(self, *args, **kwargs):
|
| 13 |
+
self.is_initialized = False
|
| 14 |
+
|
| 15 |
+
def search_data(self, data_type: str, search_query: Any) -> Any:
|
| 16 |
+
return answer
|