Spaces:
Running
Running
Update agent.py
Browse files
agent.py
CHANGED
@@ -138,6 +138,18 @@ class ValidatedExcelReader(Tool):
|
|
138 |
class UniversalLoader(Tool):
|
139 |
name = "universal_loader"
|
140 |
description = "Loads various file types and web content using appropriate sub-tools."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
def __init__(self):
|
143 |
self.loaders = {
|
@@ -276,7 +288,7 @@ class EnhancedExcelReader(Tool):
|
|
276 |
# --------------------------
|
277 |
# Cross-Verified Search
|
278 |
# --------------------------
|
279 |
-
class CrossVerifiedSearch:
|
280 |
name = "cross_verified_search"
|
281 |
description = "Searches multiple sources and returns consensus results."
|
282 |
inputs = {'query': {'type': 'string', 'description': 'Search query'}}
|
|
|
138 |
class UniversalLoader(Tool):
|
139 |
name = "universal_loader"
|
140 |
description = "Loads various file types and web content using appropriate sub-tools."
|
141 |
+
inputs = {
|
142 |
+
'source': {
|
143 |
+
'type': 'string',
|
144 |
+
'description': 'Type of source to load (web/excel/audio/arxiv)'
|
145 |
+
},
|
146 |
+
'task_id': {
|
147 |
+
'type': 'string',
|
148 |
+
'description': 'Task ID for attachments',
|
149 |
+
'nullable': True
|
150 |
+
}
|
151 |
+
}
|
152 |
+
output_type = "string"
|
153 |
|
154 |
def __init__(self):
|
155 |
self.loaders = {
|
|
|
288 |
# --------------------------
|
289 |
# Cross-Verified Search
|
290 |
# --------------------------
|
291 |
+
class CrossVerifiedSearch(Tool):
|
292 |
name = "cross_verified_search"
|
293 |
description = "Searches multiple sources and returns consensus results."
|
294 |
inputs = {'query': {'type': 'string', 'description': 'Search query'}}
|