Spaces:
Sleeping
Sleeping
QAgent subclass of Tool (??)
Browse files
agent.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, tool, InferenceClientModel
|
3 |
|
4 |
|
5 |
-
class QAgent:
|
6 |
def __init__(self):
|
7 |
print("BasicAgent initialized.")
|
8 |
def __call__(self, question: str) -> str:
|
|
|
2 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, VisitWebpageTool, tool, InferenceClientModel
|
3 |
|
4 |
|
5 |
+
class QAgent(Tool):
|
6 |
def __init__(self):
|
7 |
print("BasicAgent initialized.")
|
8 |
def __call__(self, question: str) -> str:
|