from praisonai.recipe import run, run_stream
result = run(
"ai-signal-ranker",
input={
"articles": articles_list,
"top_n": 10,
"weights": {
"novelty": 0.3,
"velocity": 0.2,
"relevance": 0.3,
"engagement": 0.2
}
}
)
# Direct tool usage
import sys
sys.path.insert(0, 'agent_recipes/templates/ai-signal-ranker')
from tools import rank_articles, calculate_novelty_score
ranked = rank_articles(articles, top_n=10)