Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent, LiteLLMModel, tool, Tool, load_tool, DuckDuckGoSearchTool
|
| 2 |
-
, WikipediaSearchTool
|
| 3 |
import asyncio
|
| 4 |
import os
|
| 5 |
import re
|
|
@@ -21,7 +20,8 @@ import logging
|
|
| 21 |
logger = logging.getLogger(__name__)
|
| 22 |
|
| 23 |
@tool
|
| 24 |
-
def search_arxiv(query
|
|
|
|
| 25 |
"""Search Arxiv for a query and return maximum 3 result.
|
| 26 |
|
| 27 |
Args:
|
|
|
|
| 1 |
+
from smolagents import CodeAgent, LiteLLMModel, tool, Tool, load_tool, DuckDuckGoSearchTool, WikipediaSearchTool
|
|
|
|
| 2 |
import asyncio
|
| 3 |
import os
|
| 4 |
import re
|
|
|
|
| 20 |
logger = logging.getLogger(__name__)
|
| 21 |
|
| 22 |
@tool
|
| 23 |
+
def search_arxiv(query
|
| 24 |
+
: str) -> str:
|
| 25 |
"""Search Arxiv for a query and return maximum 3 result.
|
| 26 |
|
| 27 |
Args:
|