You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| rss |`agent.tool.rss(action="subscribe", url="https://example.com/feed.xml", feed_id="tech_news")`| Manage RSS feeds: subscribe, fetch, read, search, and update content from various sources |
133
135
134
136
\**These tools do not work on windows*
135
137
@@ -504,6 +506,46 @@ result = agent.tool.diagram(
504
506
)
505
507
```
506
508
509
+
### RSS Feed Management
510
+
511
+
```python
512
+
from strands import Agent
513
+
from strands_tools import rss
514
+
515
+
agent = Agent(tools=[rss])
516
+
517
+
# Subscribe to a feed
518
+
result = agent.tool.rss(
519
+
action="subscribe",
520
+
url="https://news.example.com/rss/technology"
521
+
)
522
+
523
+
# List all subscribed feeds
524
+
feeds = agent.tool.rss(action="list")
525
+
526
+
# Read entries from a specific feed
527
+
entries = agent.tool.rss(
528
+
action="read",
529
+
feed_id="news_example_com_technology",
530
+
max_entries=5,
531
+
include_content=True
532
+
)
533
+
534
+
# Search across all feeds
535
+
search_results = agent.tool.rss(
536
+
action="search",
537
+
query="machine learning",
538
+
max_entries=10
539
+
)
540
+
541
+
# Fetch feed content without subscribing
542
+
latest_news = agent.tool.rss(
543
+
action="fetch",
544
+
url="https://blog.example.org/feed",
545
+
max_entries=3
546
+
)
547
+
```
548
+
507
549
## 🌍 Environment Variables Configuration
508
550
509
551
Agents Tools provides extensive customization through environment variables. This allows you to configure tool behavior without modifying code, making it ideal for different environments (development, testing, production).
@@ -659,6 +701,14 @@ The Mem0 Memory Tool supports three different backend configurations:
659
701
| STRANDS_BROWSER_WIDTH | Default width of the browser | 1280 |
660
702
| STRANDS_BROWSER_HEIGHT | Default height of the browser | 800 |
661
703
704
+
#### RSS Tool
705
+
706
+
| Environment Variable | Description | Default |
707
+
|----------------------|-------------|---------|
708
+
| STRANDS_RSS_MAX_ENTRIES | Default setting for maximum number of entries per feed | 100 |
709
+
| STRANDS_RSS_UPDATE_INTERVAL | Default amount of time between updating rss feeds in minutes | 60 |
710
+
| STRANDS_RSS_STORAGE_PATH | Default storage path where rss feeds are stored locally |~/.strands/rss_feeds |
0 commit comments