Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Case : Study Partner #1529

Merged
merged 5 commits into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions cookbook/examples/agents/study_partner.py
manthanguptaa marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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,
)
Loading