Module exposing: CurateSources, FilterStories, SummarizeStories, FormatNewsletter
# Source: https://github.com/The-Pocket/PocketFlow | License: MIT | Copyright 2024 Zachary Huang
# Provided via justclaw.it.com; keep this notice with the code.
from pocketflow import Node
from utils import call_llm, search_web
import yaml
TOPICS = [
"AI agents framework news this week",
"LLM benchmark results 2025 2026",
"AI startup funding rounds this month",
]
class CurateSources(Node):
"""Searches the web for multiple topics to gather raw stories."""
def prep(self, shared):
return shared["topics"]
def exec(self, topics):
results = []
for topic in topics:
print(f" 🔍 Searching: {topic}")
results.append(search_web(topic))
return results
def post(self, shared, prep_res, exec_res):
shared["raw
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key