from agno.agent import Agent
from agno.tools.reddit import RedditTools
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(
instructions=[
"Use your tools to answer questions about Reddit content and statistics",
"Respect Reddit's content policies and NSFW restrictions",
"When analyzing subreddits, provide relevant statistics and trends",
],
tools=[RedditTools()],
)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent.print_response("What are the top 5 posts on r/SAAS this week ?", stream=True)