Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,21 @@ from smolagents import CodeAgent, HfApiModel, tool
|
|
7 |
|
8 |
@tool
|
9 |
def fetch_latest_arxiv_papers(keywords: list, num_results: int = 3) -> list:
|
10 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
try:
|
12 |
print(f"DEBUG: Searching arXiv papers with keywords: {keywords}") # Debug input
|
13 |
|
|
|
7 |
|
8 |
@tool
|
9 |
def fetch_latest_arxiv_papers(keywords: list, num_results: int = 3) -> list:
|
10 |
+
"""
|
11 |
+
Fetches the latest research papers from arXiv based on provided keywords.
|
12 |
+
|
13 |
+
Args:
|
14 |
+
keywords (list): A list of keywords to search for relevant papers.
|
15 |
+
num_results (int): The number of papers to fetch (default is 3).
|
16 |
+
|
17 |
+
Returns:
|
18 |
+
list: A list of dictionaries, each containing:
|
19 |
+
- "title": The paper title
|
20 |
+
- "authors": A string of authors
|
21 |
+
- "year": Year of publication
|
22 |
+
- "abstract": Summary of the paper
|
23 |
+
- "link": URL to the full paper
|
24 |
+
"""
|
25 |
try:
|
26 |
print(f"DEBUG: Searching arXiv papers with keywords: {keywords}") # Debug input
|
27 |
|