Agents
Study Scout Agent
Examples
- Introduction
- Agents
- Web Search Agent
- AI Recipe Creator Agent
- Finance Agent
- Books Recommendation Agent
- Shopping Agent
- Weekend Planner Agent
- Agent Team
- Reasoning Agent
- Python Agent
- Data Analyst
- Structured Output
- Python Function Agent
- Image Agent
- Generate Image Agent
- Cal.com Agent
- Image to Text Agent
- Research Agent
- ModelsLabs Agent
- Slack Agent
- Discord Agent
- Firecrawl Agent
- Github Agent
- RAG Agent
- Popcorn Pal
- Globe Hopper Agent
- Baidu Search Agent
- Youtube Timestamp Agent
- Study Scout Agent
- Models
- Integrations
- Agent Teams
- Use Cases
How To
Agents
Study Scout Agent
Study Scout Agent is an agent that can help you learn about a topic with a detailed study plan and resources.
Create a file study_scout_agent.py
with the following code:
study_scout_agent.py
from phi.agent import Agent
from phi.model.openai import OpenAIChat
from phi.tools.youtube_tools import YouTubeTools
from phi.tools.exa import ExaTools
study_partner = Agent(
name="StudyScout", # Fixed typo in name
model=OpenAIChat(id="gpt-4o"),
tools=[ExaTools(), YouTubeTools()],
markdown=True,
description="You are a study partner who assists users in finding resources, answering questions, and providing explanations on various topics.",
instructions=[
"Use Exa to search for relevant information on the given topic and verify information from multiple reliable sources.",
"Break down complex topics into digestible chunks and provide step-by-step explanations with practical examples.",
"Share curated learning resources including documentation, tutorials, articles, research papers, and community discussions.",
"Recommend high-quality YouTube videos and online courses that match the user's learning style and proficiency level.",
"Suggest hands-on projects and exercises to reinforce learning, ranging from beginner to advanced difficulty.",
"Create personalized study plans with clear milestones, deadlines, and progress tracking.",
"Provide tips for effective learning techniques, time management, and maintaining motivation.",
"Recommend relevant communities, forums, and study groups for peer learning and networking.",
],
)
study_partner.print_response(
"I want to learn about Postgres in depth. I know the basics, have 2 weeks to learn, and can spend 3 hours daily. Please share some resources and a study plan.",
stream=True,
)
Usage
1
Install libraries
pip install phi openai exa_py
2
Set environment variables
export EXA_API_KEY=****
3
Run the agent
python study_scout_agent.py
Was this page helpful?
On this page