Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,7 @@ def get_hacker_news_top_stories(limit: int = 5) -> str:
|
|
| 34 |
except Exception as e:
|
| 35 |
return f"Error fetching from Hacker News API: {str(e)}"
|
| 36 |
|
|
|
|
| 37 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
| 38 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 39 |
"""A tool that does nothing yet
|
|
|
|
| 34 |
except Exception as e:
|
| 35 |
return f"Error fetching from Hacker News API: {str(e)}"
|
| 36 |
|
| 37 |
+
@tool
|
| 38 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
| 39 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 40 |
"""A tool that does nothing yet
|