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 4 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
20 changes: 20 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,20 @@
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="StudyScount",
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.",
"Provide detailed explanations, examples,articles, PDF document links from Medium, communities to join for collaborating and additional resources to help the student understand the concept better.",
"Include links to educational videos, roadmaps from YouTube that explain the topic in an engaging and informative manner.",
"Ensure that the information shared is accurate, up-to-date, and relevant to the user's query.",
"Provide day-to-day study planner,project ideas, motivation, and guidance to help students stay focused and productive.",
],
)
study_partner.print_response("I struggle a lot with Postgres. Please share some resources.", stream=True)
Loading