diff --git a/ai_agent_tutorials/ai_personal_learning_agent/README.md b/ai_agent_tutorials/ai_personal_learning_agent/README.md index dbe1b67..eaedb7c 100644 --- a/ai_agent_tutorials/ai_personal_learning_agent/README.md +++ b/ai_agent_tutorials/ai_personal_learning_agent/README.md @@ -1,6 +1,6 @@ # AI Personal Learning Agent -A Personal learning assistant built on PraisonAI Framework that explains a particular topic, creates learning plans and roadmaps using multiple specialized AI agents which are self reflective and hierarchical. The system uses OpenAI's GPT-4o to generate comprehensive learning materials, roadmaps, and practice exercises. +A Personal learning Roadmap Architect assistant built on Phidata Framework that explains a particular topic, creates learning plans and roadmaps using multiple specialized AI agents which are hierarchical. The system uses OpenAI's GPT-4o to generate comprehensive learning materials, roadmaps, and practice exercises. This uses streamlit for UI. ## Features @@ -8,7 +8,7 @@ A Personal learning assistant built on PraisonAI Framework that explains a parti - 🗺️ Learning Roadmaps: Generates structured learning paths with time estimates - 📚 Resource Curation: Finds and validates high-quality learning materials - ✍️ Practice Materials: Creates progressive exercises and projects -- 🔍 Internet Search Integration: Used a custom InternetSearchTool tool for real-time research +- 🔍 Internet Search Integration: Used a DuckDuckGo tool for real-time research - 📊 Live Terminal Output: Shows real-time agent interactions in terminal - also in streamlit UI ## Agents @@ -31,18 +31,18 @@ A Personal learning assistant built on PraisonAI Framework that explains a parti pip install -r requirements.txt ``` -## Configuration +## Configuration - IMPORTANT STEP 1. Get your OpenAI API Key - Create an account on [OpenAI Platform](https://platform.openai.com/) - Navigate to API Keys section - Create a new API key -2. (Optional) Set up environment variables -```bash -export OPENAI_API_KEY='your-api-key-here' -``` -This way of using the openai key is fundamental to how PraisonAI is designed - it initializes the OpenAI client at module import time, which means setting the environment variable after import won't help. We need to set the environment variable BEFORE importing PraisonAI. So, export way helps majorly - else if you want to use streamlit, keep the session state openai api key intializations before the imports of praisonAI +2. Get your Composio API Key +- Create an account on [Composio Platform](https://composio.ai/) +- [IMPORTANT] - For you to use the app, you need to make new connection ID with google docs and composio.Follow the below two steps to do so: +- composio add googledocs (IN THE TERMINAL) -> Create a new connection -> Select OAUTH2 -> Select Google Account and Done. +- In the composio account website, go to apps, select google docs tool, and click create integration (violet button) and click Try connecting default’s googldocs button and we are done. (https://app.composio.dev/app/googledocs ) ## Usage @@ -53,6 +53,7 @@ streamlit run ai_personal_learning_agent.py 2. Use the application - Enter your OpenAI API key in the sidebar (if not set in environment) +- Enter your Composio API key in the sidebar - Type a topic you want to learn about (e.g., "Python Programming", "Machine Learning") - Click "Generate Learning Plan" - Wait for the agents to generate your personalized learning plan diff --git a/ai_agent_tutorials/ai_personal_learning_agent/requirements.txt b/ai_agent_tutorials/ai_personal_learning_agent/requirements.txt index bb326a1..d9db440 100644 --- a/ai_agent_tutorials/ai_personal_learning_agent/requirements.txt +++ b/ai_agent_tutorials/ai_personal_learning_agent/requirements.txt @@ -2,5 +2,6 @@ streamlit==1.41.1 openai==1.58.1 duckduckgo-search==6.4.1 typing-extensions>=4.5.0 -phidata -composio-phidata \ No newline at end of file +phidata==2.7.3 +composio-phidata==0.6.9 +composio_core \ No newline at end of file