Spaces:
Sleeping
Sleeping
Update tools/news.py
Browse files- tools/news.py +2 -2
tools/news.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
from typing import Any, Optional
|
| 2 |
from smolagents.tools import Tool
|
| 3 |
|
| 4 |
-
class
|
| 5 |
-
name = "News"
|
| 6 |
description = "Fetches the latest NYTimes RSS feed and returns the headlines of the most recent 5 stories."
|
| 7 |
inputs = {} # This tool does not require any inputs.
|
| 8 |
output_type = "string"
|
|
|
|
| 1 |
from typing import Any, Optional
|
| 2 |
from smolagents.tools import Tool
|
| 3 |
|
| 4 |
+
class GetNewsTool(Tool):
|
| 5 |
+
name = "Get News"
|
| 6 |
description = "Fetches the latest NYTimes RSS feed and returns the headlines of the most recent 5 stories."
|
| 7 |
inputs = {} # This tool does not require any inputs.
|
| 8 |
output_type = "string"
|