AI Personalized Learning Agent: phidata + googledocs3
This commit is contained in:
parent
19fbdd18f2
commit
0d2f04f390
1 changed files with 10 additions and 12 deletions
|
|
@ -47,14 +47,12 @@ except Exception as e:
|
||||||
knowledge_agent = Agent(
|
knowledge_agent = Agent(
|
||||||
name="KnowledgeBuilder",
|
name="KnowledgeBuilder",
|
||||||
role="Research and Knowledge Specialist",
|
role="Research and Knowledge Specialist",
|
||||||
model=OpenAIChat(id="gpt-4o"),
|
model=OpenAIChat(id="gpt-4o", api_key=st.session_state['openai_api_key']),
|
||||||
tools=[google_docs_tool, DuckDuckGo()],
|
tools=[google_docs_tool],
|
||||||
instructions=[
|
instructions=[
|
||||||
"Research the given topic thoroughly using internet sources.",
|
"Create a comprehensive knowledge base that covers fundamental concepts, advanced topics, and current developments of the given topic.",
|
||||||
"Use the DuckDuckGo search tool to find up-to-date information and resources.",
|
|
||||||
"Create a comprehensive knowledge base that covers fundamental concepts, advanced topics, and current developments.",
|
|
||||||
"Include key terminology, core principles, and practical applications and make it as a detailed report that anyone who's starting out can read and get maximum value out of it.",
|
"Include key terminology, core principles, and practical applications and make it as a detailed report that anyone who's starting out can read and get maximum value out of it.",
|
||||||
"Always include sources and citations for your findings. DONT FORGET TO CREATE THE GOOGLE DOCUMENT.",
|
"Make sure it is formatted in a way that is easy to read and understand. DONT FORGET TO CREATE THE GOOGLE DOCUMENT.",
|
||||||
"Open a new Google Doc and write down the response of the agent neatly with great formatting and structure in it. **Include the Google Doc link in your response.**",
|
"Open a new Google Doc and write down the response of the agent neatly with great formatting and structure in it. **Include the Google Doc link in your response.**",
|
||||||
],
|
],
|
||||||
show_tool_calls=True,
|
show_tool_calls=True,
|
||||||
|
|
@ -65,7 +63,7 @@ knowledge_agent = Agent(
|
||||||
roadmap_agent = Agent(
|
roadmap_agent = Agent(
|
||||||
name="RoadmapArchitect",
|
name="RoadmapArchitect",
|
||||||
role="Learning Path Designer",
|
role="Learning Path Designer",
|
||||||
model=OpenAIChat(id="gpt-4o"),
|
model=OpenAIChat(id="gpt-4o", api_key=st.session_state['openai_api_key']),
|
||||||
tools=[google_docs_tool],
|
tools=[google_docs_tool],
|
||||||
instructions=[
|
instructions=[
|
||||||
"Using the knowledge base for the given topic, create a detailed learning roadmap.",
|
"Using the knowledge base for the given topic, create a detailed learning roadmap.",
|
||||||
|
|
@ -76,15 +74,15 @@ roadmap_agent = Agent(
|
||||||
|
|
||||||
],
|
],
|
||||||
show_tool_calls=True,
|
show_tool_calls=True,
|
||||||
markdown=True,
|
markdown=True
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create the ResourceCurator agent
|
# Create the ResourceCurator agent
|
||||||
resource_agent = Agent(
|
resource_agent = Agent(
|
||||||
name="ResourceCurator",
|
name="ResourceCurator",
|
||||||
role="Learning Resource Specialist",
|
role="Learning Resource Specialist",
|
||||||
model=OpenAIChat(id="gpt-4o"),
|
model=OpenAIChat(id="gpt-4o", api_key=st.session_state['openai_api_key']),
|
||||||
tools=[google_docs_tool, ArxivToolkit(), DuckDuckGo()],
|
tools=[google_docs_tool, ArxivToolkit(), DuckDuckGo(fixed_max_results=10)],
|
||||||
instructions=[
|
instructions=[
|
||||||
"Find and validate high-quality learning resources for the given topic.",
|
"Find and validate high-quality learning resources for the given topic.",
|
||||||
"Use the DuckDuckGo search tool to find current and relevant learning materials.",
|
"Use the DuckDuckGo search tool to find current and relevant learning materials.",
|
||||||
|
|
@ -101,8 +99,8 @@ resource_agent = Agent(
|
||||||
practice_agent = Agent(
|
practice_agent = Agent(
|
||||||
name="PracticeDesigner",
|
name="PracticeDesigner",
|
||||||
role="Exercise Creator",
|
role="Exercise Creator",
|
||||||
model=OpenAIChat(id="gpt-4o"),
|
model=OpenAIChat(id="gpt-4o", api_key=st.session_state['openai_api_key']),
|
||||||
tools=[google_docs_tool, DuckDuckGo()],
|
tools=[google_docs_tool, DuckDuckGo(fixed_max_results=10)],
|
||||||
instructions=[
|
instructions=[
|
||||||
"Create comprehensive practice materials for the given topic.",
|
"Create comprehensive practice materials for the given topic.",
|
||||||
"Use the DuckDuckGo search tool to find example problems and real-world applications.",
|
"Use the DuckDuckGo search tool to find example problems and real-world applications.",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue