The 500 AI Agents Projects is a curated collection of AI agent use cases across various industries. It showcases practical applications and provides links to open-source projects for implementation, illustrating how AI agents are transforming sectors such as healthcare, finance, education, retail, and more.
Resolve PR 120 review blockers
ashishpatel267de56703e595
diff --cc .github/workflows/link-checker.ymlindex ba75ba2,0000000..3b99727mode 100644,000000..100644--- a/.github/workflows/link-checker.yml+++ b/.github/workflows/link-checker.yml@@@ -1,47 -1,0 +1,56 @@@+name: Link Checker++on:+ schedule:+ - cron: '0 0 * * 1' # every Monday at midnight UTC+ push:+ branches: [main]+ paths:+ - 'README.md'++ pull_request:++ paths:++ - 'README.md'+ workflow_dispatch:+++permissions:++ contents: read++ issues: write+++jobs:+ check-links:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - name: Check links in README+ uses: lycheeverse/lychee-action@v1+ with:+ args: |+ --verbose+ --no-progress+ --exclude 'shields.io'+ --exclude 'star-history.com'+ --exclude 'img.shields.io'+ --exclude 'api.star-history.com'++ --exclude 'github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials'++ --exclude 'github.com/agno-agi/agno/blob/main/cookbook/examples'+ --timeout 30+ --retry-wait-time 5+ --max-retries 3+ README.md- fail: false++ fail: true+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}++ - name: Create issue for broken links- if: failure()++ if: failure() && github.event_name != 'pull_request'+ uses: actions/github-script@v7+ with:+ script: |+ github.rest.issues.create({+ owner: context.repo.owner,+ repo: context.repo.repo,+ title: '🔗 Broken links detected',+ body: 'The weekly link checker found broken links. Check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.',+ labels: ['bug', 'documentation']+ })diff --cc README.mdindex 8db71c6,0c5f74f..d4984a4--- a/README.md+++ b/README.md@@@ -84,189 -73,233 +84,191 @@@ Choosing a framework? Here's when to us----### **Framework Name**: **CrewAI**--| Use Case | Industry | Description | GitHub |-| -------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |-| 📧 Email Auto Responder Flow | 🗣️ Communication | Automates email responses based on predefined criteria to enhance communication efficiency. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/email_auto_responder_flow) |-| 📝 Meeting Assistant Flow | 🛠️ Productivity | Assists in organizing and managing meetings, including scheduling and agenda preparation. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/meeting_assistant_flow) |-| 🔄 Self Evaluation Loop Flow | 👥 Human Resources | Facilitates self-assessment processes within an organization, aiding in performance reviews. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/self_evaluation_loop_flow) |-| 📈 Lead Score Flow | 💼 Sales | Evaluates and scores potential leads to prioritize outreach in sales strategies. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/lead-score-flow) |-| 📊 Marketing Strategy Generator | 📢 Marketing | Develops marketing strategies by analyzing market trends and audience data. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/marketing_strategy) |-| 📝 Job Posting Generator | 🧑💼 Recruitment | Creates job postings by analyzing job requirements, aiding in recruitment processes. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/job-posting) |-| 🔄 Recruitment Workflow | 🧑💼 Recruitment | Streamlines the recruitment process by automating various tasks involved in hiring. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/recruitment) |-| 🔍 Match Profile to Positions | 🧑💼 Recruitment | Matches candidate profiles to suitable job positions to enhance recruitment efficiency. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/match_profile_to_positions) |-| 📸 Instagram Post Generator | 📱 Social Media | Generates and schedules Instagram posts automatically, streamlining social media management. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/instagram_post) |-| 🌐 Landing Page Generator | 💻 Web Development | Automates the creation of landing pages for websites, facilitating web development tasks. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/landing_page_generator) |-| 🎮 Game Builder Crew | 🎮 Game Development | Assists in the development of games by automating certain aspects of game creation. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/game-builder-crew) |-| 💹 Stock Analysis Tool | 💰 Finance | Provides tools for analyzing stock market data to assist in financial decision-making. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/stock_analysis) |-| 🗺️ Trip Planner | ✈️ Travel | Assists in planning trips by organizing itineraries and managing travel details. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/trip_planner) |-| 🎁 Surprise Trip Planner | ✈️ Travel | Plans surprise trips by selecting destinations and activities based on user preferences. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/surprise_trip) |-| 📚 Write a Book with Flows | ✍️ Creative Writing | Assists authors in writing books by providing structured workflows and writing assistance. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/write_a_book_with_flows) |-| 🎬 Screenplay Writer | ✍️ Creative Writing | Aids in writing screenplays by offering templates and guidance for script development. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/screenplay_writer) |-| ✅ Markdown Validator | 📄 Documentation | Validates Markdown files to ensure proper formatting and adherence to standards. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/markdown_validator) |-| 🧠 Meta Quest Knowledge | 📚 Knowledge Management | Manages and organizes knowledge related to Meta Quest, facilitating information retrieval. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/meta_quest_knowledge) |-| 🤖 NVIDIA Models Integration | 🤖 AI Integration | Integrates NVIDIA AI models into workflows to enhance computational capabilities. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/integrations/nvidia_models) |-| 🗂️ Prep for a Meeting | 🛠️ Productivity | Assists in preparing for meetings by organizing materials and setting agendas. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/prep-for-a-meeting) |-| 🛠️Starter Template | 🛠️ Development | Provides a starter template for new projects to streamline the setup process. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/starter_template) |-| 🔗CrewAI + LangGraph Integration | 🤖 AI Integration | Demonstrates integration between CrewAI and LangGraph for enhanced workflow automation. | [](https://github.com/crewAIInc/crewAI-examples/tree/main/integrations/CrewAI-LangGraph) |---### **Framework Name**: **Autogen**--> **Code Generation, Execution, and Debugging**--| Use Case | Industry | Description | Notebook |-| --------------------------------------------------------------------------------------- | ----------------------- | --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🤖 Automated Task Solving with Code Generation, Execution & Debugging | 💻 Software Development | Demonstrates automated task-solving by generating, executing, and debugging code. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_auto_feedback_from_code_execution) |-| 🧑💻 Automated Code Generation and Question Answering with Retrieval Augmented Agents | 💻 Software Development | Generates code and answers questions using retrieval-augmented methods. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_RetrieveChat) |-| 🧠 Automated Code Generation and Question Answering with Qdrant-based Retrieval | 💻 Software Development | Utilizes Qdrant for enhanced retrieval-augmented agent performance. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_RetrieveChat_qdrant) |--> **Multi-Agent Collaboration (>3 Agents)**--| Use Case | Industry | Description | Notebook |-| :----------------------------------------------------------------------- | :-------------------------- | :------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| 🤝 Automated Task Solving by Group Chat (3 members, 1 manager) | 🤝 Collaboration | Demonstrates group task-solving via multi-agent collaboration. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat) |-| 📊 Automated Data Visualization by Group Chat (3 members, 1 manager) | 📊 Data Analysis | Uses multi-agent collaboration to create data visualizations. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat_vis) |-| 🧩 Automated Complex Task Solving by Group Chat (6 members, 1 manager) | 🤝 Collaboration | Solves complex tasks collaboratively with a larger group of agents. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat_research) |-| 🧑💻 Automated Task Solving with Coding & Planning Agents | 🛠️ Planning & Development | Combines coding and planning agents for solving tasks effectively. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_planning.ipynb) |-| 📐 Automated Task Solving with Transition Paths Specified in a Graph | 🤝 Collaboration | Uses predefined transition paths in a graph for solving tasks. | [](https://microsoft.github.io/autogen/docs/notebooks/agentchat_groupchat_finite_state_machine) |-| 🧠 Running a Group Chat as an Inner-Monologue via the SocietyOfMindAgent | 🧠 Cognitive Sciences | Simulates inner-monologue for problem-solving using group chats. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_society_of_mind) |-| 🔧 Running a Group Chat with Custom Speaker Selection Function | 🤝 Collaboration | Implements a custom function for speaker selection in group chats. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat_customized) |--> **Sequential Multi-Agent Chats**--| Use Case | Industry | Description | Notebook |-| :--------------------------------------------------------------------------------- | :--------------------- | :------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🔄 Solving Multiple Tasks in a Sequence of Chats Initiated by a Single Agent | 🔄 Workflow Automation | Automates sequential task-solving with a single initiating agent. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_multi_task_chats) |-| ⏳ Async-solving Multiple Tasks in a Sequence of Chats Initiated by a Single Agent | 🔄 Workflow Automation | Handles asynchronous task-solving in a sequence of chats initiated by one agent. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_multi_task_async_chats) |-| 🤝 Solving Multiple Tasks in a Sequence of Chats Initiated by Different Agents | 🔄 Workflow Automation | Facilitates sequential task-solving with different agents initiating each chat. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchats_sequential_chats) |--> **Nested Chats**--| Use Case | Industry | Description | Notebook |-| :----------------------------------------------------------------------------- | :--------------------------- | :------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🧠 Solving Complex Tasks with Nested Chats | 🧠 Problem Solving | Uses nested chats to solve hierarchical and complex problems. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nestedchat) |-| 🔄 Solving Complex Tasks with A Sequence of Nested Chats | 🧠 Problem Solving | Demonstrates sequential task-solving using nested chats. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nested_sequential_chats) |-| 🏭 OptiGuide for Solving a Supply Chain Optimization Problem with Nested Chats | 🏭 Supply Chain Optimization | Showcases how to solve supply chain optimization problems using nested chats, a coding agent, and a safeguard agent. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nestedchat_optiguide) |-| ♟️ Conversational Chess with Nested Chats and Tool Use | 🎮 Gaming | Explores the use of nested chats for playing conversational chess with integrated tools. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nested_chats_chess) |--> **Application**--| Use Case | Industry | Description | Notebook |-| :------------------------------------------------------------------------------------------------- | :--------------------------- | :------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| 🔄 Automated Continual Learning from New Data | 📊 Machine Learning | Continuously learns from new data inputs for adaptive AI. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_stream.ipynb) |-| 🏭 OptiGuide - Coding, Tool Using, Safeguarding & Question Answering for Supply Chain Optimization | 🏭 Supply Chain Optimization | Highlights a solution combining coding, tool use, and safeguarding for supply chain optimization. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nestedchat_optiguide) |-| 🤖 AutoAnny - A Discord bot built using AutoGen | 💬 Communication Tools | Showcases the development of a Discord bot using AutoGen for enhanced interaction. | [](https://github.com/microsoft/autogen/tree/main/samples/apps/auto-anny) |--> **Tools**--| Use Case | Industry | Description | Notebook |-| :--------------------------------------------------------------------- | :----------------------------- | :------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🌐 Web Search: Solve Tasks Requiring Web Info | 🔍 Information Retrieval | Searches the web to gather information required for completing tasks. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_web_info.ipynb) |-| 🔧 Use Provided Tools as Functions | 🛠️ Tool Integration | Demonstrates how to use pre-provided tools as callable functions in AutoGen. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_function_call_currency_calculator) |-| 🔗 Use Tools via Sync and Async Function Calling | 🛠️ Tool Integration | Illustrates synchronous and asynchronous tool usage within AutoGen workflows. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_function_call_async) |-| 🧩 Task Solving with Langchain Provided Tools as Functions | 🔍 Language Processing | Leverages Langchain tools for task-solving within AutoGen. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_langchain.ipynb) |-| 📚 RAG: Group Chat with Retrieval Augmented Generation | 🤝 Collaboration | Enables group chat with Retrieval Augmented Generation (RAG) to support information sharing. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat_RAG) |-| ⚙️ Function Inception: Update/Remove Functions During Conversations | 🔧 Development Tools | Allows AutoGen agents to modify their functions dynamically during conversations. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_inception_function.ipynb) |-| 🔊 Agent Chat with Whisper | 🎙️ Audio Processing | Demonstrates AI agent capabilities for transcription and translation using Whisper. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_video_transcript_translate_with_whisper) |-| 📏 Constrained Responses via Guidance | 💡 Natural Language Processing | Shows how to use guidance to constrain responses generated by agents. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_guidance.ipynb) |-| 🌍 Browse the Web with Agents | 🌐 Information Retrieval | Explains how to configure agents to browse and retrieve information from the web. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_surfer.ipynb) |-| 📊 SQL: Natural Language Text to SQL Query Using Spider Benchmark | 💾 Database Management | Converts natural language inputs into SQL queries using the Spider benchmark. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_sql_spider.ipynb) |-| 🕸️ Web Scraping with Apify | 🌐 Data Gathering | Illustrates web scraping techniques with Apify using AutoGen. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_webscraping_with_apify) |-| 🕷️ Web Crawling: Crawl Entire Domain with Spider API | 🌐 Data Gathering | Explains how to crawl entire domains using the Spider API. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_webcrawling_with_spider) |-| 💻 Write a Software App Task by Task with Specially Designed Functions | 💻 Software Development | Builds a software application step-by-step using designed functions. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_function_call_code_writing.ipynb) |--> **Human Development**--| Use Case | Industry | Description | Notebook |-| :--------------------------------------------------------------- | :---------------------- | :------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| 💬 Simple Example in ChatGPT Style | 🧠 Conversational AI | Demonstrates a simple conversational example in the style of ChatGPT. | [](https://github.com/microsoft/autogen/blob/0.2/samples/simple_chat.py) |-| 🤖 Auto Code Generation, Execution, Debugging and Human Feedback | 💻 Software Development | Showcases code generation, execution, debugging with human feedback integrated into the workflow. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_human_feedback.ipynb) |-| 👥 Automated Task Solving with GPT-4 + Multiple Human Users | 🤝 Collaboration | Enables task solving with multiple human users collaborating with GPT-4. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_two_users.ipynb) |-| 🔄 Agent Chat with Async Human Inputs | 🧠 Conversational AI | Supports asynchronous human input during agent conversations. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/Async_human_input.ipynb) |--> **Agent Teaching and Learning**--| Use Case | Industry | Description | Notebook |-| :------------------------------------------------------------------- | :-------------------------- | :--------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 📘 Teach Agents New Skills & Reuse via Automated Chat | 🎓 Education & Training | Demonstrates teaching new skills to agents and enabling their reuse in automated chats. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_teaching) |-| 🧠 Teach Agents New Facts, User Preferences and Skills Beyond Coding | 🎓 Education & Training | Shows how to teach agents new facts, user preferences, and non-coding skills. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_teachability) |-| 🤖 Teach OpenAI Assistants Through GPTAssistantAgent | 💻 AI Assistant Development | Illustrates how to enhance OpenAI assistants' capabilities using GPTAssistantAgent. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_teachable_oai_assistants.ipynb) |-| 🔄 Agent Optimizer: Train Agents in an Agentic Way | 🛠️ Optimization | Explains how to train agents effectively in an agentic manner using the Agent Optimizer. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_agentoptimizer.ipynb) |--> **Multi-Agent Chat with OpenAI Assistants in the loop**--| Use Case | Industry | Description | Notebook |-| :-------------------------------------------------------- | :----------------------- | :---------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🌟 Hello-World Chat with OpenAI Assistant in AutoGen | 🤖 Conversational AI | A basic example of chatting with OpenAI Assistant using AutoGen. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_oai_assistant_twoagents_basic.ipynb) |-| 🔧 Chat with OpenAI Assistant using Function Call | 🔧 Development Tools | Illustrates how to use function calls with OpenAI Assistant in chats. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_oai_assistant_function_call.ipynb) |-| 🧠 Chat with OpenAI Assistant with Code Interpreter | 💻 Software Development | Demonstrates the use of OpenAI Assistant as a code interpreter in chats. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_oai_code_interpreter.ipynb) |-| 🔍 Chat with OpenAI Assistant with Retrieval Augmentation | 📚 Information Retrieval | Enables retrieval-augmented conversations with OpenAI Assistant. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_oai_assistant_retrieval.ipynb) |-| 🤝 OpenAI Assistant in a Group Chat | 🤝 Collaboration | Shows how OpenAI Assistant can collaborate with other agents in a group chat. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_oai_assistant_groupchat.ipynb) |-| 🛠️ GPTAssistantAgent based Multi-Agent Tool Use | 🔧 Development Tools | Explains how to use GPTAssistantAgent for multi-agent tool usage. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/gpt_assistant_agent_function_call.ipynb) |--> **Non-OpenAI Models**--| Use Case | Industry | Description | Notebook |-| :------------------------------------------------ | :-------- | :---------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| ♟️ Conversational Chess using Non-OpenAI Models | 🎮 Gaming | Explores conversational chess implemented with non-OpenAI models. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nested_chats_chess_altmodels) |--> **Multimodal Agent**--| Use Case | Industry | Description | Notebook |-| :--------------------------------------------- | :------------------ | :-------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🎨 Multimodal Agent Chat with DALLE and GPT-4V | 🖼️ Multimedia AI | Combines DALLE and GPT-4V for multimodal agent communication. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_dalle_and_gpt4v.ipynb) |-| 🖌️ Multimodal Agent Chat with Llava | 📷 Image Processing | Uses Llava for enabling multimodal agent conversations with image processing. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_lmm_llava.ipynb) |-| 🖼️ Multimodal Agent Chat with GPT-4V | 🖼️ Multimedia AI | Leverages GPT-4V for visual and conversational interactions in multimodal agents. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_lmm_gpt-4v.ipynb) |--> **Long Context Handling**--| Use Case | Industry | Description | Notebook |-| :--------------------------------------- | :--------------- | :--------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 📜 Long Context Handling as A Capability | 🧠 AI Capability | Demonstrates techniques for handling long context effectively within AI workflows. | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_transform_messages) |--> **Evaluation and Assessment**--| Use Case | Industry | Description | Notebook |-| :----------------------------------------------------------------------------------- | :------------------------ | :------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- |-| 📊 AgentEval: A Multi-Agent System for Assessing Utility of LLM-Powered Applications | 📈 Performance Evaluation | Introduces AgentEval for evaluating and assessing the performance of LLM-based applications. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agenteval_cq_math.ipynb) |--> **Automatic Agent Building**--| Use Case | Industry | Description | Notebook |-| :------------------------------------------------------------ | :---------------- | :------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🏗️ Automatically Build Multi-agent System with AgentBuilder | 🤖 AI Development | Explains how to automatically build multi-agent systems using the AgentBuilder tool. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/autobuild_basic.ipynb) |-| 📚 Automatically Build Multi-agent System from Agent Library | 🤖 AI Development | Shows how to construct multi-agent systems by leveraging a pre-defined agent library. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/autobuild_agent_library.ipynb) |--> **Observability**--| Use Case | Industry | Description | Notebook |-| :---------------------------------------------------------------- | :------------------------ | :----------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |-| 📊 Track LLM Calls, Tool Usage, Actions and Errors using AgentOps | 📈 Monitoring & Analytics | Demonstrates how to monitor LLM interactions, tool usage, and errors using AgentOps. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_agentops.ipynb) |--> **Enhanced Inferences**--| Use Case | Industry | Description | Notebook |-| :--------------------------------------------------------------------- | :----------------- | :----------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🔗 API Unification | 🔧 API Management | Explains how to unify API usage with documentation and code examples. | [](https://microsoft.github.io/autogen/docs/Use-Cases/enhanced_inference/#api-unification) |-| ⚙️ Utility Functions to Help Managing API Configurations Effectively | 🔧 API Management | Demonstrates utility functions to manage API configurations more effectively. | [](https://microsoft.github.io/autogen/0.2/docs/topics/llm_configuration) |-| 💰 Cost Calculation | 📈 Cost Management | Introduces methods for tracking token usage and estimating costs for LLM interactions. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_cost_token_tracking.ipynb) |-| ⚡ Optimize for Code Generation | 📊 Optimization | Highlights cost-effective optimization techniques for improving code generation with LLMs. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/oai_completion.ipynb) |-| 📐 Optimize for Math | 📊 Optimization | Explains techniques to optimize LLM performance for solving mathematical problems. | [](https://github.com/microsoft/autogen/blob/0.2/notebook/oai_chatgpt_gpt4.ipynb) |--### **Framework Name**: **Agno**--> **UseCase**--| Use Case | Industry | Description | Notebook |-| :--------------------------------- | :----------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 🤖 Support Agent | 💻 Software Development / AI / Framework Support | The Agno Support Agent helps developers with the Agno framework by providing real-time answers, explanations, and code examples. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/agno_support_agent.py) |-| 🎥 YouTube Agent | 📺 Media & Content | An intelligent agent that analyzes YouTube videos by generating detailed summaries, timestamps, themes, and content breakdowns using AI tools. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/youtube_agent.py) |-| 📊 Finance Agent | 💼 Finance | An advanced AI-powered market analyst that delivers real-time stock market insights, analyst recommendations, financial deep-dives, and sector-specific trends. Supports prompts for detailed analysis of companies like AAPL, TSLA, NVDA, etc. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/thinking_finance_agent.py) |-| 📚 Study Partner | 🎓 Education | Assists users in learning by finding resources, answering questions, and creating study plans. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/study_partner.py) |-| 🛍️ Shopping Partner Agent | 🏬 E-commerce | A product recommender agent that helps users find matching products based on preferences from trusted platforms like Amazon, Flipkart, etc. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/shopping_partner.py) |-| 🎓 Research Scholar Agent | 🧠 Education / Research | An AI-powered academic assistant that performs advanced academic searches, analyzes recent publications, synthesizes findings across disciplines, and writes well-structured academic reports with proper citations. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/research_agent_exa.py) |-| 🧠 Research Agent | 🗞️ Media & Journalism | A research agent that combines web search and professional journalistic writing. It performs deep investigations and produces NYT-style reports. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/research_agent.py) |-| 🍳 Recipe Creator | 🍽️ Food & Culinary | An AI-powered recipe recommendation agent that provides personalized recipes based on ingredients, preferences, and time constraints. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/recipe_creator.py) |-| 🗞️ Finance Agent | 💼 Finance | A powerful financial analyst agent combining real-time stock data, analyst insights, company fundamentals, and market news. Ideal for analyzing companies like Apple, Tesla, NVIDIA, and sectors like semiconductors or automotive. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/finance_agent.py) |-| 🧠 Financial Reasoning Agent | 📈 Finance | Uses a Claude-3.5 Sonnet-based agent to analyze stocks like NVDA using tools for reasoning and Yahoo Finance data. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/reasoning_finance_agent.py) |-| 🤖 Readme Generator Agent | 💻 Software Dev | Agent generates high-quality READMEs for GitHub repositories using repo metadata. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/readme_generator.py) |-| 🎬 Movie Recommendation Agent | 🎥 Entertainment | An intelligent agent that gives personalized movie recommendations using Exa and GPT-4o, analyzing genres, themes, and latest ratings. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/movie_recommedation.py) |-| 🔍 Media Trend Analysis Agent | 📰 Media & News | Analyzes emerging trends, patterns, and influencers from digital platforms using AI-powered agents and scraping. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/media_trend_analysis_agent.py) |-| ⚖️ Legal Document Analysis Agent | 🏛️ Legal Tech | An AI agent that analyzes legal documents from PDF URLs and provides legal insights based on a knowledge base using vector embeddings and GPT-4o. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/legal_consultant.py) |-| 🤔 DeepKnowledge | 🧠 Research | This agent performs iterative searches through its knowledge base, breaking down complex queries into sub-questions and synthesizing comprehensive answers. It uses Agno docs for demonstration and is designed for deep reasoning and exploration. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/deep_knowledge.py) |-| 📚 Book Recommendation Agent | 🧠 Publishing & Media | An intelligent agent that provides personalized book suggestions using literary data, reader preferences, reviews, and release info. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/book_recommendation.py) |-| 🏠 MCP Airbnb Agent | 🛎️ Hospitality | Create an AI Agent using MCP and Llama 4 to search Airbnb listings with filters like workspace & transport proximity. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/airbnb_mcp.py) |-| 🤖 Assist Agent | 🧠 AI Framework | An AI agent using GPT-4o to answer questions about the Agno framework with hybrid search and embedded knowledge. | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/agno_assist.py) |--### **Framework Name**: **Langgraph**--> **UseCase**--| Use Case | Industry | Description | Notebook |-| :------------------------------------ | :---------------------------- | :----------------------------------------------------------- | :----------------------------------------------------------- |-| 🤖 Chatbot Simulation Evaluation | 💻 💬 AI / Quality Assurance | Simulate user interactions to evaluate chatbot performance, ensuring robustness and reliability in real-world scenarios. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/chatbot-simulation-evaluation/agent-simulation-evaluation.ipynb) |-| 🧠 Information Gathering via Prompting | 🧠 AI / Research & Development | This tutorial demonstrates how to design a LangGraph workflow that utilizes prompting techniques to gather information effectively. It showcases how to structure prompts and manage the flow of information to build intelligent agents. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/chatbots/information-gather-prompting.ipynb) |-| 🧠 Code Assistant with LangGraph | 💻 Software Development | This tutorial demonstrates how to build a resilient code assistant using LangGraph. It guides you through creating a graph-based agent that can handle code generation, error checking, and iterative refinement, ensuring robust and accurate coding assistance. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/code_assistant/langgraph_code_assistant.ipynb) |-| 🧑💼 Customer Support Agent | 🧑💼 Customer Support Agent | This tutorial demonstrates how to build a customer support agent using LangGraph. It guides you through creating a graph-based agent that can handle customer inquiries, providing automated support and enhancing user experience. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/customer-support/customer-support.ipynb) |-| 🔁 Extraction with Retries | 🧠 AI / Data Extraction | This tutorial demonstrates how to implement retry mechanisms in LangGraph workflows, ensuring robust data extraction processes that can handle transient errors and improve reliability. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/extraction/retries.ipynb) |-| 🧠 Multi-Agent Workflow | 🧠 AI / Workflow Orchestration | This tutorial demonstrates how to build a multi-agent system using LangGraph's agent supervisor. It guides you through creating a supervisor agent that orchestrates multiple specialized agents, managing task delegation and communication flow. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/multi_agent/agent_supervisor.ipynb) |-| 🧠 Hierarchical Agent Teams | 🧠 AI / Workflow Orchestration | This tutorial demonstrates how to build a hierarchical agent system using LangGraph. It guides you through creating a top-level supervisor agent that delegates tasks to specialized sub-agents, enabling complex workflows with clear task delegation and communication. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/multi_agent/hierarchical_agent_teams.ipynb) |-| 🤝 Multi-Agent Collaboration | 🧠 AI / Workflow Orchestration | This tutorial demonstrates how to implement multi-agent collaboration using LangGraph. It guides you through creating multiple specialized agents that work together to accomplish a complex task, showcasing the power of agent collaboration in AI workflows. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/multi_agent/multi-agent-collaboration.ipynb) |-| 🧠 Plan-and-Execute Agent | 🧠 AI / Workflow Orchestration | This tutorial demonstrates how to build a "Plan-and-Execute" style agent using LangGraph. It guides you through creating an agent that first generates a multi-step plan and then executes each step sequentially, revisiting and modifying the plan as necessary. This approach is inspired by the Plan-and-Solve paper and the Baby-AGI project, aiming to enhance long-term planning and task execution in AI workflows. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/plan-and-execute/plan-and-execute.ipynb) |-| 🧠 SQL Agent | 🧠 AI / Database Interaction | This tutorial demonstrates how to build an agent that can answer questions about a SQL database. The agent fetches available tables, determines relevance to the question, retrieves schemas, generates a query, checks for errors, executes it, and formulates a response. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/sql-agent.ipynb) |-| 🧠 Reflection Agent | 🧠 AI / Workflow Orchestration | This tutorial demonstrates how to build a reflection agent using LangGraph. It guides you through creating an agent that can critique and revise its own outputs, enhancing the quality and reliability of generated content. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/reflection/reflection.ipynb)|-| 🧠 Reflexion Agent | 🧠 AI / Workflow Orchestration | This tutorial demonstrates how to build a reflexion agent using LangGraph. It guides you through creating an agent that can reflect on its actions and outcomes, enabling iterative improvement and more accurate decision-making in complex workflows. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/reflexion/reflexion.ipynb)|-| **LangGraph Agentic RAG** | | | |-| 🧠 **Adaptive RAG** | 🧠 AI / Information Retrieval | This tutorial demonstrates how to build an Adaptive RAG system using LangGraph. It guides you through creating a dynamic retrieval process that adjusts based on query complexity, enhancing the efficiency and accuracy of information retrieval. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_adaptive_rag.ipynb) |-| 🧠 **Adaptive RAG (Local)** | 🧠 AI / Information Retrieval | This tutorial focuses on implementing Adaptive RAG with local models, allowing for offline retrieval and generation, which is crucial for environments with limited internet access or privacy concerns. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_adaptive_rag_local.ipynb) |-| 🤖 **Agentic RAG** | 🤖 AI / Intelligent Agents | Learn to build an Agentic RAG system where an agent determines the best retrieval strategy before generating a response, improving the relevance and accuracy of answers. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_agentic_rag.ipynb) |-| 🤖 **Agentic RAG (Local)** | 🤖 AI / Intelligent Agents | This tutorial extends Agentic RAG to local environments, enabling the use of local models and data sources for retrieval and generation tasks. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_agentic_rag_local.ipynb) |-| 🧠 **Corrective RAG (CRAG)** | 🧠 AI / Information Retrieval | Implement a Corrective RAG system that evaluates and refines retrieved documents before passing them to the generator, ensuring higher-quality outputs. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_crag.ipynb) |-| 🧠 **Corrective RAG (Local)** | 🧠 AI / Information Retrieval | This tutorial focuses on building a Corrective RAG system using local resources, allowing for offline document evaluation and refinement processes. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_crag_local.ipynb) |-| 🧠 **Self-RAG** | 🧠 AI / Information Retrieval | Learn to implement Self-RAG, where the system reflects on its responses and retrieves additional information if necessary, enhancing the accuracy and relevance of generated content. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_self_rag.ipynb) |-| 🧠 **Self-RAG (Local)** | 🧠 AI / Information Retrieval | This tutorial demonstrates how to implement Self-RAG using local models and data sources, enabling offline reflection and retrieval processes. | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_self_rag_local.ipynb) |+## 🏭 Industry Use Cases++++| Use Case | Industry | Description | Code |+|---|---|---|---|+| **HIA (Health Insights Agent)** | Healthcare | Analyses medical reports and provides health insights | [](https://github.com/harshhh28/hia.git) |+| **AI Health Assistant** | Healthcare | Diagnoses and monitors diseases using patient data | [](https://github.com/ahmadvh/AI-Agents-for-Medical-Diagnostics.git) |+| **Automated Trading Bot** | Finance | Automates stock trading with real-time market analysis | [](https://github.com/MingyuJ666/Stockagent.git) |++| **Agent Wallet SDK** | Finance | Non-custodial smart contract wallet SDK for AI agents with enforced spend limits | [](https://github.com/up2itnow0822/agent-wallet-sdk) |+| **Virtual AI Tutor** | Education | Provides personalized education tailored to users | [](https://github.com/hqanhh/EduGPT.git) |+| **24/7 AI Chatbot** | Customer Service | Handles customer queries around the clock | [](https://github.com/NirDiamant/GenAI_Agents/blob/main/all_agents_tutorials/customer_support_agent_langgraph.ipynb) |+| **Product Recommendation Agent** | Retail | Suggests products based on user preferences and history | [](https://github.com/microsoft/RecAI) |+| **Self-Driving Delivery Agent** | Transportation | Optimizes routes and autonomously delivers packages | [](https://github.com/sled-group/driVLMe) |+| **Factory Process Monitoring Agent** | Manufacturing | Monitors production lines and ensures quality control | [](https://github.com/yuchenxia/llm4ias) |+| **Property Pricing Agent** | Real Estate | Analyzes market trends to determine property prices | [](https://github.com/AleksNeStu/ai-real-estate-assistant) |+| **Smart Farming Assistant** | Agriculture | Provides insights on crop health and yield predictions | [](https://github.com/mohammed97ashraf/LLM_Agri_Bot) |+| **Energy Demand Forecasting Agent** | Energy | Predicts energy usage to optimize grid management | [](https://github.com/yecchen/MIRAI) |+| **Content Personalization Agent** | Entertainment | Recommends personalized media based on preferences | [](https://github.com/crosleythomas/MirrorGPT) |+| **Legal Document Review Assistant** | Legal | Automates document review and highlights key clauses | [](https://github.com/firica/legalai) |+| **Recruitment Recommendation Agent** | Human Resources | Suggests best-fit candidates for job openings | [](https://github.com/sentient-engineering/jobber) |+| **Virtual Travel Assistant** | Hospitality | Plans travel itineraries based on preferences | [](https://github.com/nirbar1985/ai-travel-agent) |+| **AI Game Companion Agent** | Gaming | Enhances player experience with real-time assistance | [](https://github.com/onjas-buidl/LLM-agent-game) |+| **Real-Time Threat Detection Agent** | Cybersecurity | Identifies potential threats and mitigates attacks | [](https://github.com/NVISOsecurity/cyber-security-llm-agents) |+| **E-commerce Personal Shopper Agent** | E-commerce | Helps customers find products they'll love | [](https://github.com/Hoanganhvu123/ShoppingGPT) |+| **Logistics Optimization Agent** | Supply Chain | Plans efficient delivery routes and manages inventory | [](https://github.com/microsoft/OptiGuide) |+| **Vibe Hacking Agent** | Cybersecurity | Autonomous Multi-Agent Based Red Team Testing Service | [](https://github.com/PurpleAILAB/Decepticon) |- | **MediSuite-AI-Agent** | Health Insurance | Automates hospital / insurance claiming workflow | [](https://github.com/MahmoudRabea13/MediSuite-Ai-Agent) |- | **Lina Egyptian Medical Chatbot** | Healthcare | Egyptian medical assistant chatbot | [](https://github.com/MahmoudRabea13/MediSuite-Ai-Agent) |++| **Citadel** | Software Development | Orchestrates Claude Code agent fleets with lifecycle hooks, skills, campaign management, and postmortem-driven architecture | [](https://github.com/SethGammon/Citadel) |++| **MediSuite-AI-Agent** | Health Insurance | Automates hospital / insurance claiming workflow | [](https://github.com/ahmedmansour5/MediSuite-Ai-Agent) |++| **Lina Egyptian Medical Chatbot** | Healthcare | Egyptian medical assistant chatbot | [](https://github.com/dina-khalid/Lina-Egyptian-Medical-Chatbot) |++---++## 🔧 Browse by Framework++### CrewAI++Role-based multi-agent framework. Great for business automation.++| Use Case | Industry | Description | GitHub |+|---|---|---|---|+| 📧 Email Auto Responder Flow | Communication | Automates email responses based on predefined criteria | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/email_auto_responder_flow) |+| 📝 Meeting Assistant Flow | Productivity | Organizes meetings, scheduling and agenda preparation | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/meeting_assistant_flow) |+| 🔄 Self Evaluation Loop Flow | Human Resources | Facilitates self-assessment for performance reviews | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/self_evaluation_loop_flow) |+| 📈 Lead Score Flow | Sales | Evaluates and scores potential leads to prioritize outreach | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/lead-score-flow) |+| 📊 Marketing Strategy Generator | Marketing | Develops marketing strategies by analyzing market trends | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/marketing_strategy) |+| 📝 Job Posting Generator | Recruitment | Creates job postings by analyzing job requirements | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/job-posting) |+| 🔄 Recruitment Workflow | Recruitment | Streamlines recruitment by automating hiring tasks | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/recruitment) |+| 🔍 Match Profile to Positions | Recruitment | Matches candidate profiles to suitable job positions | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/match_profile_to_positions) |+| 📸 Instagram Post Generator | Social Media | Generates and schedules Instagram posts automatically | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/instagram_post) |+| 🌐 Landing Page Generator | Web Development | Automates creation of landing pages for websites | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/landing_page_generator) |+| 🎮 Game Builder Crew | Game Development | Assists in game development by automating aspects of creation | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/game-builder-crew) |+| 💹 Stock Analysis Tool | Finance | Provides tools for analyzing stock market data | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/stock_analysis) |+| 🗺️ Trip Planner | Travel | Assists in planning trips with itineraries | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/trip_planner) |+| 🎁 Surprise Trip Planner | Travel | Plans surprise trips based on user preferences | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/surprise_trip) |+| 📚 Write a Book with Flows | Creative Writing | Assists authors with structured writing workflows | [](https://github.com/crewAIInc/crewAI-examples/tree/main/flows/write_a_book_with_flows) |+| 🎬 Screenplay Writer | Creative Writing | Aids in writing screenplays with templates and guidance | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/screenplay_writer) |+| ✅ Markdown Validator | Documentation | Validates Markdown files for proper formatting | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/markdown_validator) |+| 🧠 Meta Quest Knowledge | Knowledge Management | Manages Meta Quest knowledge for information retrieval | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/meta_quest_knowledge) |+| 🤖 NVIDIA Models Integration | AI Integration | Integrates NVIDIA AI models into workflows | [](https://github.com/crewAIInc/crewAI-examples/tree/main/integrations/nvidia_models) |+| 🗂️ Prep for a Meeting | Productivity | Prepares meeting materials and sets agendas | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/prep-for-a-meeting) |+| 🛠️ Starter Template | Development | Starter template for new CrewAI projects | [](https://github.com/crewAIInc/crewAI-examples/tree/main/crews/starter_template) |+| 🔗 CrewAI + LangGraph Integration | AI Integration | Integration between CrewAI and LangGraph | [](https://github.com/crewAIInc/crewAI-examples/tree/main/integrations/CrewAI-LangGraph) |++---++### AutoGen++Microsoft's framework for code generation, execution, and multi-agent research.++**Code Generation, Execution, and Debugging**++| Use Case | Industry | Description | Notebook |+|---|---|---|---|+| 🤖 Automated Task Solving with Code Gen, Execution & Debugging | Software Development | Demonstrates automated task-solving by generating, executing, and debugging code | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_auto_feedback_from_code_execution) |+| 🧑💻 Code Generation and Q&A with Retrieval Augmented Agents | Software Development | Generates code and answers questions using retrieval-augmented methods | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_RetrieveChat) |+| 🧠 Code Generation and Q&A with Qdrant-based Retrieval | Software Development | Utilizes Qdrant for enhanced retrieval-augmented agent performance | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_RetrieveChat_qdrant) |+**Multi-Agent Collaboration**+| Use Case | Industry | Description | Notebook |+|---|---|---|---|+| 🤝 Group Chat (3 members, 1 manager) | Collaboration | Demonstrates group task-solving via multi-agent collaboration | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat) |+| 📊 Data Visualization by Group Chat | Data Analysis | Uses multi-agent collaboration to create data visualizations | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat_vis) |+| 🧩 Complex Task Solving by Group Chat (6 members) | Collaboration | Solves complex tasks collaboratively with a larger group | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat_research) |+| 🧑💻 Task Solving with Coding & Planning Agents | Planning & Dev | Combines coding and planning agents for solving tasks | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_planning.ipynb) |+| 📐 Task Solving with Graph Transition Paths | Collaboration | Uses predefined transition paths in a graph for solving tasks | [](https://microsoft.github.io/autogen/docs/notebooks/agentchat_groupchat_finite_state_machine) |+| 🧠 SocietyOfMindAgent Inner-Monologue | Cognitive Sciences | Simulates inner-monologue for problem-solving using group chats | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_society_of_mind) |+| 🔧 Group Chat with Custom Speaker Selection | Collaboration | Implements a custom function for speaker selection | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat_customized) |+**Sequential Multi-Agent Chats**+| Use Case | Industry | Description | Notebook |+|---|---|---|---|+| 🔄 Sequential Task-Solving (single initiating agent) | Workflow Automation | Automates sequential task-solving with a single initiating agent | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_multi_task_chats) |+| ⏳ Async Sequential Task-Solving | Workflow Automation | Handles asynchronous task-solving in a sequence of chats | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_multi_task_async_chats) |+| 🤝 Sequential Chats with Different Initiating Agents | Workflow Automation | Sequential task-solving with different agents initiating each chat | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchats_sequential_chats) |++**Nested Chats**++| Use Case | Industry | Description | Notebook |+|---|---|---|---|+| 🧠 Solving Complex Tasks with Nested Chats | Problem Solving | Uses nested chats to solve hierarchical and complex problems | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nestedchat) |+| 🔄 Sequence of Nested Chats | Problem Solving | Demonstrates sequential task-solving using nested chats | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nested_sequential_chats) |+| 🏭 OptiGuide Supply Chain with Nested Chats | Supply Chain | Solves supply chain optimization using nested chats | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nestedchat_optiguide) |+| ♟️ Conversational Chess with Nested Chats | Gaming | Uses nested chats for playing conversational chess with tools | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_nested_chats_chess) |++**Tools**++| Use Case | Industry | Description | Notebook |+|---|---|---|---|+| 🌐 Web Search: Solve Tasks Requiring Web Info | Information Retrieval | Searches the web to gather information for completing tasks | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_web_info.ipynb) |+| 🔧 Use Provided Tools as Functions | Tool Integration | Demonstrates how to use pre-provided tools as callable functions | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_function_call_currency_calculator) |+| 📚 RAG Group Chat | Collaboration | Enables group chat with Retrieval Augmented Generation | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_groupchat_RAG) |+| 🔊 Agent Chat with Whisper | Audio Processing | AI agent for transcription and translation using Whisper | [](https://microsoft.github.io/autogen/0.2/docs/notebooks/agentchat_video_transcript_translate_with_whisper) |+| 📊 SQL: Natural Language to SQL Query | Database Management | Converts natural language inputs into SQL queries | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_sql_spider.ipynb) |++**Multimodal Agents**++| Use Case | Industry | Description | Notebook |+|---|---|---|---|+| 🎨 Multimodal Agent with DALLE and GPT-4V | Multimedia AI | Combines DALLE and GPT-4V for multimodal agent communication | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_dalle_and_gpt4v.ipynb) |+| 🖌️ Multimodal Agent with Llava | Image Processing | Uses Llava for multimodal agent conversations | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_lmm_llava.ipynb) |+| 🖼️ Multimodal Agent with GPT-4V | Multimedia AI | Leverages GPT-4V for visual and conversational interactions | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_lmm_gpt-4v.ipynb) |++**Observability & Evaluation**++| Use Case | Industry | Description | Notebook |+|---|---|---|---|+| 📊 AgentEval: Multi-Agent Assessment System | Performance Evaluation | Evaluating LLM-based application utility | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agenteval_cq_math.ipynb) |+| 📊 Track LLM Calls and Errors using AgentOps | Monitoring & Analytics | Monitors LLM interactions, tool usage, and errors | [](https://github.com/microsoft/autogen/blob/0.2/notebook/agentchat_agentops.ipynb) |+| 🏗️ Auto Build Multi-agent System with AgentBuilder | AI Development | Automatically builds multi-agent systems | [](https://github.com/microsoft/autogen/blob/0.2/notebook/autobuild_basic.ipynb) |++---++### Agno++Lightweight, fast agent framework. Best for single-agent tools and rapid prototyping.++| Use Case | Industry | Description | Code |+|---|---|---|---|+| 🤖 Support Agent | AI Framework Support | Real-time answers, explanations, and code examples for Agno framework | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/agno_support_agent.py) |+| 🎥 YouTube Agent | Media & Content | Analyzes YouTube videos: summaries, timestamps, themes | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/youtube_agent.py) |+| 📊 Finance Agent (Thinking) | Finance | Real-time stock insights, analyst recommendations, financial deep-dives | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/thinking_finance_agent.py) |+| 📚 Study Partner | Education | Finds resources, answers questions, creates study plans | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/study_partner.py) |+| 🛍️ Shopping Partner Agent | E-commerce | Product recommender based on preferences from Amazon, Flipkart | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/shopping_partner.py) |+| 🎓 Research Scholar Agent | Education / Research | Advanced academic searches, publication analysis, structured reports | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/research_agent_exa.py) |+| 🧠 Research Agent | Media & Journalism | Deep investigations, NYT-style reports | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/research_agent.py) |+| 🍳 Recipe Creator | Food & Culinary | Personalized recipes based on ingredients and preferences | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/recipe_creator.py) |+| 🧠 Financial Reasoning Agent | Finance | Claude 3.5 Sonnet-based stock analysis with Yahoo Finance data | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/reasoning_finance_agent.py) |+| 🤖 Readme Generator Agent | Software Dev | Generates high-quality READMEs for GitHub repos | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/readme_generator.py) |+| 🎬 Movie Recommendation Agent | Entertainment | Personalized movie recommendations using Exa and GPT-4o | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/movie_recommedation.py) |+| 🔍 Media Trend Analysis Agent | Media & News | Analyzes emerging trends and influencers from digital platforms | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/media_trend_analysis_agent.py) |+| ⚖️ Legal Document Analysis Agent | Legal Tech | Analyzes legal PDFs and provides insights using vector embeddings | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/legal_consultant.py) |+| 🤔 DeepKnowledge | Research | Iterative search through knowledge base with deep reasoning | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/deep_knowledge.py) |+| 📚 Book Recommendation Agent | Publishing & Media | Personalized book suggestions using literary data and reader preferences | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/book_recommendation.py) |+| 🏠 MCP Airbnb Agent | Hospitality | Search Airbnb listings with MCP and Llama 4 | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/airbnb_mcp.py) |+| 🤖 Agno Assist Agent | AI Framework | GPT-4o agent for Agno framework Q&A with hybrid search | [](https://github.com/agno-agi/agno/blob/main/cookbook/examples/agents/agno_assist.py) |++---++### LangGraph++State-machine framework for complex, stateful agent workflows and RAG pipelines.++| Use Case | Industry | Description | Code |+|---|---|---|---|+| 🤖 Chatbot Simulation Evaluation | AI / QA | Simulate user interactions to evaluate chatbot performance | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/chatbot-simulation-evaluation/agent-simulation-evaluation.ipynb) |+| 🧠 Information Gathering via Prompting | Research | LangGraph workflow using prompting to gather information | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/chatbots/information-gather-prompting.ipynb) |+| 🧠 Code Assistant with LangGraph | Software Development | Resilient code assistant with error checking and iterative refinement | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/code_assistant/langgraph_code_assistant.ipynb) |+| 🧑💼 Customer Support Agent | Customer Support | Graph-based agent for handling customer inquiries | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/customer-support/customer-support.ipynb) |+| 🔁 Extraction with Retries | Data Extraction | Retry mechanisms for robust data extraction | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/extraction/retries.ipynb) |+| 🧠 Multi-Agent Workflow (Supervisor) | Workflow Orchestration | Supervisor agent orchestrating multiple specialized agents | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/multi_agent/agent_supervisor.ipynb) |+| 🧠 Hierarchical Agent Teams | Workflow Orchestration | Top-level supervisor delegates to specialized sub-agents | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/multi_agent/hierarchical_agent_teams.ipynb) |+| 🤝 Multi-Agent Collaboration | Workflow Orchestration | Multiple specialized agents working together on complex tasks | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/multi_agent/multi-agent-collaboration.ipynb) |+| 🧠 Plan-and-Execute Agent | Workflow Orchestration | Agent generates multi-step plan then executes sequentially | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/plan-and-execute/plan-and-execute.ipynb) |+| 🧠 SQL Agent | Database Interaction | Agent answers questions about SQL databases | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/sql-agent.ipynb) |+| 🧠 Reflection Agent | Workflow Orchestration | Agent critiques and revises its own outputs | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/reflection/reflection.ipynb) |+| 🧠 Reflexion Agent | Workflow Orchestration | Agent reflects on actions for iterative improvement | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/reflexion/reflexion.ipynb) |+| 🧠 Adaptive RAG | Information Retrieval | Dynamic retrieval adjusting based on query complexity | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_adaptive_rag.ipynb) |+| 🤖 Agentic RAG | Intelligent Agents | Agent determines best retrieval strategy before generating response | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_agentic_rag.ipynb) |+| 🧠 Corrective RAG (CRAG) | Information Retrieval | Evaluates and refines retrieved documents before generation | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_crag.ipynb) |+| 🧠 Self-RAG | Information Retrieval | System reflects on responses and retrieves additional info if needed | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_self_rag.ipynb) |+| 🧠 Adaptive RAG (Local) | Information Retrieval | Adaptive RAG with local models for offline use | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_adaptive_rag_local.ipynb) |+| 🧠 Self-RAG (Local) | Information Retrieval | Self-RAG using local models and data sources | [](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/rag/langgraph_self_rag_local.ipynb) |---diff --cc agents/01-web-research-agent/agent.pyindex 1c4ba51,0000000..5fd549emode 100644,000000..100644--- a/agents/01-web-research-agent/agent.py+++ b/agents/01-web-research-agent/agent.py@@@ -1,83 -1,0 +1,89 @@@+"""+Web Research Agent using LangGraph + Tavily Search.++Searches the web for a given topic, synthesizes findings, and returns+a structured research report.++Usage:+ python agent.py+ python agent.py --query "latest advances in quantum computing"+"""++import argparse+import os+from typing import Annotated, TypedDict++from dotenv import load_dotenv+from langchain_core.messages import AIMessage, HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI+from langchain_tavily import TavilySearch+from langgraph.graph import END, StateGraph+from langgraph.graph.message import add_messages++load_dotenv()+++class ResearchState(TypedDict):+ messages: Annotated[list, add_messages]+ query: str+ search_results: list[dict]+ report: str+++def search_web(state: ResearchState) -> ResearchState:+ tool = TavilySearch(max_results=5)- results = tool.invoke(state["query"])++ raw_results = tool.invoke(state["query"])++ if isinstance(raw_results, dict):++ results = raw_results.get("results", [])++ elif isinstance(raw_results, list):++ results = raw_results++ else:++ results = []+ return {"search_results": results}+++def synthesize_report(state: ResearchState) -> ResearchState:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)++ results_text = "\n\n".join(+ f"Source: {r.get('url', 'N/A')}\nTitle: {r.get('title', 'N/A')}\nContent: {r.get('content', '')[:500]}"+ for r in state["search_results"]+ )++ messages = [+ SystemMessage(content="You are a research analyst. Synthesize the search results into a clear, structured report with: Summary, Key Findings (bullet points), and Sources."),+ HumanMessage(content=f"Research query: {state['query']}\n\nSearch results:\n{results_text}"),+ ]++ response = llm.invoke(messages)+ return {"report": response.content, "messages": [response]}+++def build_graph() -> StateGraph:+ graph = StateGraph(ResearchState)+ graph.add_node("search", search_web)+ graph.add_node("synthesize", synthesize_report)+ graph.set_entry_point("search")+ graph.add_edge("search", "synthesize")+ graph.add_edge("synthesize", END)+ return graph.compile()+++def main():+ parser = argparse.ArgumentParser(description="Web Research Agent")+ parser.add_argument("--query", default="latest advances in AI agents 2024", help="Research query")+ args = parser.parse_args()++ print(f"\n🔍 Researching: {args.query}\n")++ agent = build_graph()+ result = agent.invoke({"query": args.query, "messages": [], "search_results": [], "report": ""})++ print("=" * 60)+ print("📄 RESEARCH REPORT")+ print("=" * 60)+ print(result["report"])+++if __name__ == "__main__":+ main()diff --cc agents/01-web-research-agent/requirements.txtindex b910545,0000000..2423a98mode 100644,000000..100644--- a/agents/01-web-research-agent/requirements.txt+++ b/agents/01-web-research-agent/requirements.txt@@@ -1,5 -1,0 +1,6 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+langchain-tavily==0.1.0+langgraph==0.2.0+python-dotenv==1.0.1diff --cc agents/02-code-review-agent/requirements.txtindex 560b01a,0000000..cac1f57mode 100644,000000..100644--- a/agents/02-code-review-agent/requirements.txt+++ b/agents/02-code-review-agent/requirements.txt@@@ -1,3 -1,0 +1,4 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --cc agents/04-sql-query-agent/README.mdindex ee1f849,0000000..c8bed93mode 100644,000000..100644--- a/agents/04-sql-query-agent/README.md+++ b/agents/04-sql-query-agent/README.md@@@ -1,39 -1,0 +1,42 @@@+# SQL Query Agent++Connects to any SQLite database and answers natural language questions by generating and executing SQL.++**Framework**: LangChain+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Demo mode — creates a sample e-commerce database automatically+python agent.py++# Your own database+python agent.py --db path/to/your/database.sqlite++# Single question+python agent.py --question "What is the total revenue by country?"+```+++Databases open in read-only mode by default. Use `--allow-write` only with a disposable database++if you intentionally want the generated SQL agent to be able to mutate data.+++## Example Questions++- "How many customers do we have in each country?"+- "What are the top 3 best-selling products?"+- "What was the total revenue last month?"+- "Which customer has spent the most?"++## Architecture++```+Natural Language → LLM (generates SQL) → SQLite → LLM (formats answer) → Response+```diff --cc agents/04-sql-query-agent/agent.pyindex 167440f,0000000..733ec5fmode 100644,000000..100644--- a/agents/04-sql-query-agent/agent.py+++ b/agents/04-sql-query-agent/agent.py@@@ -1,120 -1,0 +1,130 @@@+"""+SQL Query Agent using LangChain.++Connects to a SQLite database and answers natural language questions+by generating and executing SQL queries.++Usage:+ python agent.py # uses demo database+ python agent.py --db path/to/db.sqlite # your database+ python agent.py --db mydb.sqlite --question "How many users signed up last month?"+"""++import argparse+import os+import sqlite3++from urllib.parse import quote++from dotenv import load_dotenv+from langchain_community.utilities import SQLDatabase+from langchain_openai import ChatOpenAI+from langchain.agents import create_sql_agent+from langchain.agents.agent_toolkits import SQLDatabaseToolkit+from langchain.agents.agent_types import AgentType++load_dotenv()+++def create_demo_database(db_path: str):+ """Creates a demo e-commerce SQLite database for testing."""+ conn = sqlite3.connect(db_path)+ cur = conn.cursor()+ cur.executescript("""+ CREATE TABLE IF NOT EXISTS customers (+ id INTEGER PRIMARY KEY,+ name TEXT NOT NULL,+ email TEXT UNIQUE,+ country TEXT,+ created_at DATE DEFAULT CURRENT_DATE+ );+ CREATE TABLE IF NOT EXISTS products (+ id INTEGER PRIMARY KEY,+ name TEXT NOT NULL,+ category TEXT,+ price REAL NOT NULL,+ stock INTEGER DEFAULT 0+ );+ CREATE TABLE IF NOT EXISTS orders (+ id INTEGER PRIMARY KEY,+ customer_id INTEGER REFERENCES customers(id),+ product_id INTEGER REFERENCES products(id),+ quantity INTEGER NOT NULL,+ total REAL NOT NULL,+ order_date DATE DEFAULT CURRENT_DATE+ );+ INSERT OR IGNORE INTO customers VALUES+ (1,'Alice Johnson','[email protected]','USA','2024-01-15'),+ (2,'Bob Smith','[email protected]','UK','2024-02-20'),+ (3,'Carlos Lima','[email protected]','Brazil','2024-03-10'),+ (4,'Diana Prince','[email protected]','USA','2024-01-05');+ INSERT OR IGNORE INTO products VALUES+ (1,'Laptop Pro','Electronics',1299.99,45),+ (2,'Wireless Mouse','Electronics',29.99,200),+ (3,'Python Book','Books',49.99,120),+ (4,'Standing Desk','Furniture',599.99,15);+ INSERT OR IGNORE INTO orders VALUES+ (1,1,1,1,1299.99,'2024-04-01'),+ (2,1,2,2,59.98,'2024-04-01'),+ (3,2,3,1,49.99,'2024-04-05'),+ (4,3,4,1,599.99,'2024-04-10'),+ (5,4,1,1,1299.99,'2024-04-12'),+ (6,2,2,3,89.97,'2024-04-15');+ """)+ conn.commit()+ conn.close()++- def build_agent(db_path: str):- db = SQLDatabase.from_uri(f"sqlite:///{db_path}")++def sqlite_uri(db_path: str, read_only: bool = True) -> str:++ abs_path = os.path.abspath(db_path)++ if read_only:++ return f"sqlite:///file:{quote(abs_path)}?mode=ro&uri=true"++ return f"sqlite:///{abs_path}"++++++def build_agent(db_path: str, read_only: bool = True):++ db = SQLDatabase.from_uri(sqlite_uri(db_path, read_only=read_only))+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)+ toolkit = SQLDatabaseToolkit(db=db, llm=llm)+ agent = create_sql_agent(+ llm=llm,+ toolkit=toolkit,+ agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,+ verbose=False,+ )+ return agent, db+++def main():+ parser = argparse.ArgumentParser(description="SQL Query Agent")+ parser.add_argument("--db", default="demo.sqlite", help="SQLite database path")+ parser.add_argument("--question", help="Natural language question (omit for interactive)")++ parser.add_argument("--allow-write", action="store_true", help="Open the SQLite database read-write instead of read-only")+ args = parser.parse_args()++ if args.db == "demo.sqlite" and not os.path.exists("demo.sqlite"):+ print("🏗️ Creating demo e-commerce database...")+ create_demo_database("demo.sqlite")+- agent, db = build_agent(args.db)++ agent, db = build_agent(args.db, read_only=not args.allow_write)+ print(f"\n📊 Connected to: {args.db}")++ print(f"🔒 Mode: {'read-write' if args.allow_write else 'read-only'}")+ print(f"📋 Tables: {', '.join(db.get_table_names())}\n")++ if args.question:+ print(f"❓ Question: {args.question}")+ result = agent.invoke({"input": args.question})+ print(f"\n✅ Answer: {result['output']}")+ else:+ print("💬 SQL Agent ready. Ask questions in natural language. Type 'quit' to exit.\n")+ while True:+ question = input("You: ").strip()+ if question.lower() in ("quit", "exit", "q"):+ break+ if not question:+ continue+ result = agent.invoke({"input": question})+ print(f"\nAgent: {result['output']}\n")+++if __name__ == "__main__":+ main()diff --cc agents/06-news-summarizer-agent/requirements.txtindex d00535c,0000000..e9782afmode 100644,000000..100644--- a/agents/06-news-summarizer-agent/requirements.txt+++ b/agents/06-news-summarizer-agent/requirements.txt@@@ -1,4 -1,0 +1,5 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+requests==2.32.3+python-dotenv==1.0.1diff --cc agents/07-github-issue-triager/agent.pyindex 0d28fc6,0000000..b66943dmode 100644,000000..100644--- a/agents/07-github-issue-triager/agent.py+++ b/agents/07-github-issue-triager/agent.py@@@ -1,107 -1,0 +1,121 @@@+"""+GitHub Issue Triager using LangGraph.++Analyzes a GitHub issue and produces: severity label, category,+reproduction steps summary, and suggested assignee type.++Usage:+ python agent.py --title "Login fails on mobile Safari" --body "When I try..."+ python agent.py --issue-url https://github.com/owner/repo/issues/123+"""++import argparse+import os+import json++import re++from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()++TRIAGE_PROMPT = """You are a GitHub issue triager. Analyze the issue and return a JSON object with:+{+ "severity": "critical|high|medium|low",+ "category": "bug|feature|documentation|question|performance|security",+ "priority_score": 1-10,+ "labels": ["list", "of", "suggested", "labels"],+ "summary": "one sentence summary",+ "reproduction_clear": true/false,+ "assignee_type": "frontend|backend|devops|documentation|security|any",+ "needs_more_info": true/false,+ "triage_notes": "2-3 sentences of triager notes"+}+Return only valid JSON, no markdown."""++++def parse_json_response(text: str) -> dict:++ cleaned = text.strip()++ if cleaned.startswith("```"):++ cleaned = re.sub(r"^```(?:json)?\s*", "", cleaned)++ cleaned = re.sub(r"\s*```$", "", cleaned)++ match = re.search(r"\{.*\}", cleaned, re.DOTALL)++ if match:++ cleaned = match.group(0)++ return json.loads(cleaned)+++++def triage_issue(title: str, body: str, labels: list[str] = None) -> dict:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)++ issue_text = f"Title: {title}\n\nBody:\n{body}"+ if labels:+ issue_text += f"\n\nExisting labels: {', '.join(labels)}"++ messages = [+ SystemMessage(content=TRIAGE_PROMPT),+ HumanMessage(content=issue_text),+ ]++ response = llm.invoke(messages)- return json.loads(response.content)++ return parse_json_response(response.content)+++def fetch_github_issue(url: str) -> tuple[str, str, list]:+ """Fetch issue details from GitHub API."""+ import re+ import requests++ match = re.match(r"https://github.com/([^/]+)/([^/]+)/issues/(\d+)", url)+ if not match:+ raise ValueError(f"Invalid GitHub issue URL: {url}")++ owner, repo, issue_num = match.groups()+ api_url = f"https://api.github.com/repos/{owner}/{repo}/issues/{issue_num}"+ headers = {}+ if token := os.getenv("GITHUB_TOKEN"):+ headers["Authorization"] = f"token {token}"++ r = requests.get(api_url, headers=headers, timeout=10)+ r.raise_for_status()+ data = r.json()+ return data["title"], data.get("body", ""), [l["name"] for l in data.get("labels", [])]+++def main():+ parser = argparse.ArgumentParser(description="GitHub Issue Triager")+ group = parser.add_mutually_exclusive_group(required=True)+ group.add_argument("--issue-url", help="GitHub issue URL")+ group.add_argument("--title", help="Issue title (use with --body)")+ parser.add_argument("--body", default="", help="Issue body text")+ args = parser.parse_args()++ if args.issue_url:+ print(f"\n🔍 Fetching issue from GitHub...")+ title, body, labels = fetch_github_issue(args.issue_url)+ else:+ title, body, labels = args.title, args.body, []++ print(f"\n🏷️ Triaging: {title}\n")+ result = triage_issue(title, body, labels)+- severity_emoji = {"critical": "🔴", "high": "🟠", "medium": "🟡", "low": "🟢"}.get(result["severity"], "⚪")++ severity = result.get("severity", "medium")++ labels = result.get("labels", [])++ severity_emoji = {"critical": "🔴", "high": "🟠", "medium": "🟡", "low": "🟢"}.get(severity, "⚪")++ print("=" * 60)+ print("📋 TRIAGE REPORT")+ print("=" * 60)- print(f"{severity_emoji} Severity: {result['severity'].upper()} (Priority: {result['priority_score']}/10)")- print(f"📁 Category: {result['category']}")- print(f"👤 Assignee: {result['assignee_type']} team")- print(f"🏷️ Labels: {', '.join(result['labels'])}")- print(f"📝 Summary: {result['summary']}")- print(f"❓ Needs more info: {'Yes' if result['needs_more_info'] else 'No'}")- print(f"🔍 Reproduction clear: {'Yes' if result['reproduction_clear'] else 'No'}")- print(f"\n💭 Notes: {result['triage_notes']}")++ print(f"{severity_emoji} Severity: {severity.upper()} (Priority: {result.get('priority_score', 'N/A')}/10)")++ print(f"📁 Category: {result.get('category', 'N/A')}")++ print(f"👤 Assignee: {result.get('assignee_type', 'any')} team")++ print(f"🏷️ Labels: {', '.join(labels)}")++ print(f"📝 Summary: {result.get('summary', 'N/A')}")++ print(f"❓ Needs more info: {'Yes' if result.get('needs_more_info') else 'No'}")++ print(f"🔍 Reproduction clear: {'Yes' if result.get('reproduction_clear') else 'No'}")++ print(f"\n💭 Notes: {result.get('triage_notes', 'N/A')}")+++if __name__ == "__main__":+ main()diff --cc agents/07-github-issue-triager/requirements.txtindex d00535c,0000000..e9782afmode 100644,000000..100644--- a/agents/07-github-issue-triager/requirements.txt+++ b/agents/07-github-issue-triager/requirements.txt@@@ -1,4 -1,0 +1,5 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+requests==2.32.3+python-dotenv==1.0.1diff --cc agents/08-data-analysis-agent/README.mdindex 4378fe5,0000000..11dd414mode 100644,000000..100644--- a/agents/08-data-analysis-agent/README.md+++ b/agents/08-data-analysis-agent/README.md@@@ -1,33 -1,0 +1,38 @@@+# Data Analysis Agent++Chat with your data. Load any CSV or Excel file and ask analytical questions in natural language.++**Framework**: LangChain (Pandas Agent)+**LLM**: GPT-4o++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Demo mode — creates sample sales data automatically- python agent.py++python agent.py --allow-dangerous-code++# Your own data- python agent.py --file your_data.csv++python agent.py --file your_data.csv --allow-dangerous-code++# Single question- python agent.py --file sales.csv --question "What is the monthly revenue trend?"++python agent.py --file sales.csv --question "What is the monthly revenue trend?" --allow-dangerous-code+```+++## Safety Note++++This demo uses LangChain's pandas agent, which executes model-generated Python code.++Use `--allow-dangerous-code` only with trusted prompts and non-sensitive local data.+++## Example Questions++- "What is the total revenue by product?"+- "Which region performs best?"+- "Show the correlation between quantity and revenue"+- "What are the top 5 selling products?"diff --cc agents/08-data-analysis-agent/agent.pyindex e0a023b,0000000..6b52762mode 100644,000000..100644--- a/agents/08-data-analysis-agent/agent.py+++ b/agents/08-data-analysis-agent/agent.py@@@ -1,96 -1,0 +1,106 @@@+"""+Data Analysis Agent using LangChain + pandas.++Loads a CSV/Excel file and answers analytical questions about it using+natural language. The agent generates Python/pandas code to answer questions.++Usage:+ python agent.py --file data.csv+ python agent.py --file sales.xlsx --question "What is the monthly revenue trend?"+"""++import argparse+import os++import pandas as pd+from dotenv import load_dotenv+from langchain_experimental.agents import create_pandas_dataframe_agent+from langchain_openai import ChatOpenAI++load_dotenv()+++def create_sample_data(path: str):+ """Creates a sample sales dataset for demo."""+ import random+ from datetime import date, timedelta++ random.seed(42)+ rows = []+ products = ["Laptop", "Phone", "Tablet", "Monitor", "Keyboard"]+ regions = ["North", "South", "East", "West"]+ start = date(2024, 1, 1)++ for i in range(200):+ d = start + timedelta(days=random.randint(0, 364))+ rows.append({+ "date": d.isoformat(),+ "product": random.choice(products),+ "region": random.choice(regions),+ "quantity": random.randint(1, 20),+ "unit_price": round(random.uniform(50, 2000), 2),+ "revenue": 0,+ })++ df = pd.DataFrame(rows)+ df["revenue"] = df["quantity"] * df["unit_price"]+ df.to_csv(path, index=False)+ return df+++def main():+ parser = argparse.ArgumentParser(description="Data Analysis Agent")+ parser.add_argument("--file", default="sample_data.csv", help="CSV or Excel file to analyze")+ parser.add_argument("--question", help="Single question (omit for interactive mode)")++ parser.add_argument(++ "--allow-dangerous-code",++ action="store_true",++ help="Required to let the pandas agent execute generated Python code locally",++ )+ args = parser.parse_args()++ if args.file == "sample_data.csv" and not os.path.exists("sample_data.csv"):+ print("🏗️ Creating sample sales dataset...")+ df = create_sample_data("sample_data.csv")+ else:+ ext = os.path.splitext(args.file)[1].lower()+ df = pd.read_excel(args.file) if ext in (".xlsx", ".xls") else pd.read_csv(args.file)++ print(f"\n📊 Loaded: {args.file} ({len(df)} rows × {len(df.columns)} columns)")+ print(f"📋 Columns: {', '.join(df.columns)}\n")+++ if not args.allow_dangerous_code:++ print("⚠️ This agent uses LangChain's pandas agent, which executes model-generated Python code.")++ print("Run again with --allow-dangerous-code only with trusted prompts and non-sensitive data.")++ return+++ llm = ChatOpenAI(model="gpt-4o", temperature=0)+ agent = create_pandas_dataframe_agent(+ llm,+ df,+ verbose=False,- allow_dangerous_code=True,++ allow_dangerous_code=args.allow_dangerous_code,+ )++ if args.question:+ print(f"❓ Question: {args.question}")+ result = agent.invoke({"input": args.question})+ print(f"\n✅ Answer: {result['output']}")+ else:+ print("💬 Data Analysis Agent ready. Ask questions about your data. Type 'quit' to exit.\n")+ print("Example questions:")+ print(" - What is the total revenue by product?")+ print(" - Which region has the highest average order value?")+ print(" - Show me the top 5 sales days\n")+ while True:+ question = input("You: ").strip()+ if question.lower() in ("quit", "exit", "q"):+ break+ if not question:+ continue+ result = agent.invoke({"input": question})+ print(f"\nAgent: {result['output']}\n")+++if __name__ == "__main__":+ main()diff --cc agents/09-resume-parser-agent/agent.pyindex 9bfda87,0000000..b6a7759mode 100644,000000..100644--- a/agents/09-resume-parser-agent/agent.py+++ b/agents/09-resume-parser-agent/agent.py@@@ -1,161 -1,0 +1,174 @@@+"""+Resume Parser Agent using LangChain.++Extracts structured information from resume text or PDF:+contact info, skills, experience, education, and provides+a candidate summary and fit score for a job description.++Usage:+ python agent.py --resume resume.txt+ python agent.py --resume resume.pdf --job-desc "Senior Python Developer with 5+ years..."+"""++import argparse+import json+import os++import re++from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()++PARSE_PROMPT = """Extract structured information from this resume and return JSON:+{+ "name": "full name",+ "email": "email or null",+ "phone": "phone or null",+ "location": "city, country or null",+ "linkedin": "URL or null",+ "github": "URL or null",+ "summary": "2-3 sentence professional summary",+ "years_experience": number,+ "current_title": "current/most recent job title",+ "skills": {+ "languages": ["Python", "JavaScript", ...],+ "frameworks": ["Django", "React", ...],+ "tools": ["Docker", "Git", ...],+ "soft_skills": ["leadership", ...]+ },+ "experience": [{"title": "...", "company": "...", "duration": "...", "highlights": ["..."]}],+ "education": [{"degree": "...", "institution": "...", "year": "..."}],+ "certifications": ["..."],+ "languages_spoken": ["English", ...]+}+Return only valid JSON."""++FIT_PROMPT = """Given this candidate profile and job description, return JSON:+{+ "fit_score": 0-100,+ "fit_label": "Excellent|Good|Fair|Poor",+ "strengths": ["matching point 1", "matching point 2", ...],+ "gaps": ["missing skill 1", ...],+ "recommendation": "Hire|Consider|Pass",+ "recommendation_reason": "2-3 sentence explanation"+}+Return only valid JSON."""++++def parse_json_response(text: str) -> dict:++ cleaned = text.strip()++ if cleaned.startswith("```"):++ cleaned = re.sub(r"^```(?:json)?\s*", "", cleaned)++ cleaned = re.sub(r"\s*```$", "", cleaned)++ match = re.search(r"\{.*\}", cleaned, re.DOTALL)++ if match:++ cleaned = match.group(0)++ return json.loads(cleaned)+++++def read_resume_text(path: str) -> str:+ if path.endswith(".pdf"):+ try:+ import pypdf+ with open(path, "rb") as f:+ reader = pypdf.PdfReader(f)+ return "\n".join(page.extract_text() for page in reader.pages)+ except ImportError:+ print("⚠️ pypdf not installed. Install with: pip install pypdf")+ raise+ with open(path) as f:+ return f.read()+++def parse_resume(text: str) -> dict:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)+ messages = [SystemMessage(content=PARSE_PROMPT), HumanMessage(content=text)]+ response = llm.invoke(messages)- return json.loads(response.content)++ return parse_json_response(response.content)+++def score_fit(profile: dict, job_desc: str) -> dict:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)+ messages = [+ SystemMessage(content=FIT_PROMPT),+ HumanMessage(content=f"Candidate profile:\n{json.dumps(profile, indent=2)}\n\nJob description:\n{job_desc}"),+ ]+ response = llm.invoke(messages)- return json.loads(response.content)++ return parse_json_response(response.content)+++SAMPLE_RESUME = """+Jane Doe[email protected] | +1 (555) 123-4567 | San Francisco, CA+linkedin.com/in/janedoe | github.com/janedoe++SUMMARY+Senior Python developer with 7 years of experience building scalable web applications+and data pipelines. Led teams of 5-8 engineers at Series B startups.++EXPERIENCE+Senior Software Engineer | TechCorp Inc. | 2021-present+- Architected microservices platform handling 10M requests/day using FastAPI + Kubernetes+- Reduced API latency by 40% through Redis caching and async optimization+- Led migration from monolith to microservices (12-month project, 5 engineers)++Software Engineer | DataFlow Systems | 2018-2021+- Built ML data pipelines processing 500GB/day using Apache Spark and Airflow+- Developed REST APIs with Django REST Framework serving 50k daily users++SKILLS+Languages: Python, JavaScript, SQL, Bash+Frameworks: FastAPI, Django, React, Spark+Tools: Docker, Kubernetes, Redis, PostgreSQL, Git, Airflow+Cloud: AWS (EC2, S3, RDS, Lambda)++EDUCATION+B.S. Computer Science | UC Berkeley | 2017++CERTIFICATIONS+AWS Solutions Architect Associate+"""+++def main():+ parser = argparse.ArgumentParser(description="Resume Parser Agent")+ parser.add_argument("--resume", help="Path to resume file (.txt or .pdf)")+ parser.add_argument("--job-desc", help="Job description to match against")+ args = parser.parse_args()++ if args.resume:+ print(f"\n📄 Parsing resume: {args.resume}")+ text = read_resume_text(args.resume)+ else:+ print("\n📄 Using sample resume (pass --resume to use your own)")+ text = SAMPLE_RESUME++ profile = parse_resume(text)++ print("\n" + "=" * 60)+ print("👤 PARSED RESUME")+ print("=" * 60)+ print(f"Name: {profile.get('name')}")+ print(f"Title: {profile.get('current_title')}")+ print(f"Experience: {profile.get('years_experience')} years")+ print(f"Skills: {', '.join(profile.get('skills', {}).get('languages', []))}")+ print(f"\nSummary: {profile.get('summary')}")++ if args.job_desc:+ print("\n" + "=" * 60)+ print("📊 JOB FIT ANALYSIS")+ print("=" * 60)+ fit = score_fit(profile, args.job_desc)- label_emoji = {"Excellent": "🟢", "Good": "🟡", "Fair": "🟠", "Poor": "🔴"}.get(fit["fit_label"], "⚪")- print(f"{label_emoji} Fit Score: {fit['fit_score']}/100 ({fit['fit_label']})")- print(f"✅ Strengths: {', '.join(fit['strengths'][:3])}")++ fit_label = fit.get("fit_label", "N/A")++ label_emoji = {"Excellent": "🟢", "Good": "🟡", "Fair": "🟠", "Poor": "🔴"}.get(fit_label, "⚪")++ print(f"{label_emoji} Fit Score: {fit.get('fit_score', 'N/A')}/100 ({fit_label})")++ print(f"✅ Strengths: {', '.join(fit.get('strengths', [])[:3])}")+ print(f"⚠️ Gaps: {', '.join(fit.get('gaps', ['None identified'])[:3])}")- print(f"🎯 Recommendation: {fit['recommendation']}")- print(f"💭 {fit['recommendation_reason']}")++ print(f"🎯 Recommendation: {fit.get('recommendation', 'N/A')}")++ print(f"💭 {fit.get('recommendation_reason', 'N/A')}")+++if __name__ == "__main__":+ main()diff --cc agents/09-resume-parser-agent/requirements.txtindex 2167636,0000000..edd3bf4mode 100644,000000..100644--- a/agents/09-resume-parser-agent/requirements.txt+++ b/agents/09-resume-parser-agent/requirements.txt@@@ -1,4 -1,0 +1,5 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1+pypdf==4.3.1diff --cc agents/10-meeting-notes-agent/README.mdindex cee606b,0000000..23e2f7emode 100644,000000..100644--- a/agents/10-meeting-notes-agent/README.md+++ b/agents/10-meeting-notes-agent/README.md@@@ -1,35 -1,0 +1,39 @@@+# Meeting Notes Agent++Converts meeting transcripts into structured notes with summary, action items, decisions, and follow-ups.++**Framework**: LangChain+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Use built-in sample transcript+python agent.py++# Your own transcript file+python agent.py --transcript meeting_transcript.txt++# Inline text+python agent.py --text "Alice: Let's ship by Friday. Bob: I need 2 more days for testing..."++++# Custom output path++python agent.py --transcript meeting_transcript.txt --output sprint_notes.md+```++## Output+- Saves structured markdown to `meeting_notes.md` with:++Saves structured markdown to `meeting_notes.md` by default. If that file already exists,++the agent writes a timestamped file instead. The output includes:+- Executive summary+- Key decisions+- Action items with owners and due dates+- Blockers+- Next meeting timediff --cc agents/10-meeting-notes-agent/agent.pyindex 16ae03e,0000000..d911c68mode 100644,000000..100644--- a/agents/10-meeting-notes-agent/agent.py+++ b/agents/10-meeting-notes-agent/agent.py@@@ -1,136 -1,0 +1,152 @@@+"""+Meeting Notes Agent.++Converts meeting transcript text into structured meeting notes:+summary, action items, decisions, and follow-ups.++Usage:+ python agent.py --transcript meeting.txt+ python agent.py --text "John: Let's ship v2 next Friday..."+"""++import argparse+import json+import os- from datetime import date++import re++from datetime import date, datetime++from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()++NOTES_PROMPT = """You are a professional meeting note-taker. Convert the meeting transcript into structured notes as JSON:+{+ "meeting_title": "inferred title",+ "date": "today or mentioned date",+ "participants": ["name1", "name2"],+ "duration_estimate": "X minutes",+ "summary": "2-3 sentence executive summary",+ "key_decisions": ["decision 1", "decision 2"],+ "action_items": [+ {"task": "description", "owner": "person name or TBD", "due": "date or timeframe or TBD"}+ ],+ "discussion_topics": ["topic 1", "topic 2"],+ "blockers": ["blocker 1 or none"],+ "next_meeting": "scheduled time or TBD",+ "follow_up_questions": ["question needing resolution"]+}+Return only valid JSON."""++SAMPLE_TRANSCRIPT = """+Sarah: Alright everyone, let's get started. It's Monday the 3rd and we have John, Mike, and Lisa here.++John: Thanks Sarah. So the main thing I wanted to cover is the Q4 product roadmap.+We need to decide on the feature freeze date.++Sarah: I think we should freeze by November 15th. That gives QA three weeks before the holiday release.++Mike: That works for me. But we still need to finalize the payment integration. Lisa, where are you on that?++Lisa: I'm about 60% done. I need the API docs from the payment provider. I've emailed them twice but haven't heard back.++John: I'll escalate that today. I'll reach out to our account manager at PaymentCo. That's blocking us.++Sarah: Okay, so John will handle the PaymentCo escalation by end of today. Lisa continues on payment integration, targeting completion by November 10th.++Mike: I can help with testing once Lisa has a draft ready. Let's say I start testing November 11th.++Sarah: Great. Also, we decided to cut the social login feature from this release. Too risky to add now.++John: Agreed. We'll put it in Q1 backlog.++Sarah: Any other blockers? No? Okay. Same time next week, November 10th.+"""++++def parse_json_response(text: str) -> dict:++ cleaned = text.strip()++ if cleaned.startswith("```"):++ cleaned = re.sub(r"^```(?:json)?\s*", "", cleaned)++ cleaned = re.sub(r"\s*```$", "", cleaned)++ match = re.search(r"\{.*\}", cleaned, re.DOTALL)++ if match:++ cleaned = match.group(0)++ return json.loads(cleaned)+++++def generate_meeting_notes(transcript: str) -> dict:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)+ messages = [+ SystemMessage(content=NOTES_PROMPT),+ HumanMessage(content=f"Meeting transcript:\n\n{transcript}"),+ ]+ response = llm.invoke(messages)- return json.loads(response.content)++ return parse_json_response(response.content)+++def format_notes(notes: dict) -> str:+ lines = [+ f"# {notes.get('meeting_title', 'Meeting Notes')}",+ f"**Date:** {notes.get('date', date.today().isoformat())} | **Duration:** {notes.get('duration_estimate', 'N/A')}",+ f"**Participants:** {', '.join(notes.get('participants', []))}",+ "",+ "## Summary",+ notes.get("summary", ""),+ "",+ "## Key Decisions",+ *[f"- {d}" for d in notes.get("key_decisions", [])],+ "",+ "## Action Items",+ ]+ for item in notes.get("action_items", []):- lines.append(f"- [ ] **{item['task']}** — Owner: {item['owner']} | Due: {item['due']}")++ lines.append(f"- [ ] **{item.get('task', 'Task')}** — Owner: {item.get('owner', 'TBD')} | Due: {item.get('due', 'TBD')}")++ if notes.get("blockers"):+ lines += ["", "## Blockers", *[f"- {b}" for b in notes["blockers"]]]++ if notes.get("next_meeting") and notes["next_meeting"] != "TBD":+ lines += ["", f"**Next Meeting:** {notes['next_meeting']}"]++ return "\n".join(lines)+++def main():+ parser = argparse.ArgumentParser(description="Meeting Notes Agent")+ group = parser.add_mutually_exclusive_group()+ group.add_argument("--transcript", help="Path to transcript text file")+ group.add_argument("--text", help="Transcript text directly")++ parser.add_argument("--output", default="meeting_notes.md", help="Markdown output path")+ args = parser.parse_args()++ if args.transcript:+ with open(args.transcript) as f:+ transcript = f.read()+ print(f"\n📝 Processing: {args.transcript}\n")+ elif args.text:+ transcript = args.text+ print("\n📝 Processing transcript...\n")+ else:+ print("\n📝 Using sample meeting transcript\n")+ transcript = SAMPLE_TRANSCRIPT++ notes = generate_meeting_notes(transcript)+ formatted = format_notes(notes)++ print("=" * 60)+ print(formatted)+ print("=" * 60)++ # Save to file- output_file = "meeting_notes.md"++ output_file = args.output++ if os.path.exists(output_file) and args.output == "meeting_notes.md":++ stamp = datetime.now().strftime("%Y%m%d_%H%M%S")++ output_file = f"meeting_notes_{stamp}.md"+ with open(output_file, "w") as f:+ f.write(formatted)+ print(f"\n✅ Saved to: {output_file}")+++if __name__ == "__main__":+ main()diff --cc agents/10-meeting-notes-agent/requirements.txtindex 560b01a,0000000..cac1f57mode 100644,000000..100644--- a/agents/10-meeting-notes-agent/requirements.txt+++ b/agents/10-meeting-notes-agent/requirements.txt@@@ -1,3 -1,0 +1,4 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --cc agents/11-stock-research-agent/agent.pyindex 78e375b,0000000..c75306dmode 100644,000000..100644--- a/agents/11-stock-research-agent/agent.py+++ b/agents/11-stock-research-agent/agent.py@@@ -1,108 -1,0 +1,109 @@@+"""+Stock Research Agent using Agno + Yahoo Finance.++Provides comprehensive stock analysis: price data, financials,+analyst ratings, and AI-powered investment summary.++Usage:+ python agent.py --ticker AAPL- python agent.py --ticker NVDA --compare MSFT++ python agent.py --ticker NVDA+"""++import argparse+import os++from dotenv import load_dotenv++load_dotenv()++try:+ import yfinance as yf+ HAS_YFINANCE = True+except ImportError:+ HAS_YFINANCE = False++from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI+++def get_stock_data(ticker: str) -> dict:+ if not HAS_YFINANCE:+ return {"ticker": ticker, "error": "yfinance not installed", "mock": True}++ stock = yf.Ticker(ticker)+ info = stock.info++ return {+ "ticker": ticker,+ "name": info.get("longName", ticker),+ "sector": info.get("sector", "N/A"),+ "industry": info.get("industry", "N/A"),+ "price": info.get("currentPrice", info.get("regularMarketPrice", 0)),+ "market_cap": info.get("marketCap", 0),+ "pe_ratio": info.get("trailingPE", "N/A"),+ "forward_pe": info.get("forwardPE", "N/A"),+ "peg_ratio": info.get("pegRatio", "N/A"),+ "revenue_growth": info.get("revenueGrowth", "N/A"),+ "profit_margin": info.get("profitMargins", "N/A"),+ "dividend_yield": info.get("dividendYield", 0),+ "52w_high": info.get("fiftyTwoWeekHigh", "N/A"),+ "52w_low": info.get("fiftyTwoWeekLow", "N/A"),+ "analyst_rating": info.get("recommendationKey", "N/A"),+ "target_price": info.get("targetMeanPrice", "N/A"),+ "description": info.get("longBusinessSummary", "")[:500],+ }+++def analyze_stock(data: dict) -> str:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)++ stock_info = "\n".join(f"{k}: {v}" for k, v in data.items() if k != "description")++ messages = [+ SystemMessage(content="You are a financial analyst. Provide a concise stock analysis covering: Investment Thesis (2-3 sentences), Key Strengths (3 bullets), Key Risks (3 bullets), Valuation Assessment, and a Verdict (Buy/Hold/Sell with brief reasoning). Keep it under 300 words."),+ HumanMessage(content=f"Analyze this stock:\n{stock_info}\n\nCompany description: {data.get('description', 'N/A')}"),+ ]++ response = llm.invoke(messages)+ return response.content+++def format_number(n) -> str:+ if isinstance(n, (int, float)):+ if n >= 1e12:+ return f"${n/1e12:.2f}T"+ if n >= 1e9:+ return f"${n/1e9:.2f}B"+ if n >= 1e6:+ return f"${n/1e6:.2f}M"+ return f"${n:.2f}"+ return str(n)+++def main():+ parser = argparse.ArgumentParser(description="Stock Research Agent")+ parser.add_argument("--ticker", required=True, help="Stock ticker symbol (e.g., AAPL)")+ args = parser.parse_args()++ print(f"\n📈 Researching {args.ticker}...\n")++ data = get_stock_data(args.ticker)++ print("=" * 60)+ print(f"📊 {data.get('name', args.ticker)} ({args.ticker})")+ print("=" * 60)+ print(f"Price: ${data.get('price', 'N/A')} | Market Cap: {format_number(data.get('market_cap', 0))}")+ print(f"Sector: {data.get('sector')} | Industry: {data.get('industry')}")+ print(f"P/E: {data.get('pe_ratio')} | Forward P/E: {data.get('forward_pe')} | PEG: {data.get('peg_ratio')}")+ print(f"52W Range: ${data.get('52w_low')} - ${data.get('52w_high')}")- print(f"Analyst: {data.get('analyst_rating', 'N/A').upper()} | Target: ${data.get('target_price', 'N/A')}")++ analyst_rating = data.get("analyst_rating") or "N/A"++ print(f"Analyst: {str(analyst_rating).upper()} | Target: ${data.get('target_price', 'N/A')}")++ print("\n🤖 AI Analysis:")+ print("-" * 40)+ analysis = analyze_stock(data)+ print(analysis)+++if __name__ == "__main__":+ main()diff --cc agents/11-stock-research-agent/requirements.txtindex 1b7aac2,0000000..ea99719mode 100644,000000..100644--- a/agents/11-stock-research-agent/requirements.txt+++ b/agents/11-stock-research-agent/requirements.txt@@@ -1,4 -1,0 +1,5 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+yfinance==0.2.44+python-dotenv==1.0.1diff --cc agents/13-customer-support-agent/README.mdindex ab5659d,0000000..1b41e55mode 100644,000000..100644--- a/agents/13-customer-support-agent/README.md+++ b/agents/13-customer-support-agent/README.md@@@ -1,26 -1,0 +1,29 @@@+# Customer Support Agent++LangGraph-powered support agent with RAG knowledge base and automatic escalation routing.++**Framework**: LangGraph + FAISS+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+python agent.py++++# Use your own .txt/.md knowledge base files++python agent.py --kb-dir docs/+```++## Features++- RAG over product knowledge base+- Automatic escalation detection for sensitive issues (billing disputes, data loss, etc.)+- Conversation history maintained+- Easily swap in your own knowledge base docsdiff --cc agents/13-customer-support-agent/agent.pyindex 3f0223a,0000000..286d815mode 100644,000000..100644--- a/agents/13-customer-support-agent/agent.py+++ b/agents/13-customer-support-agent/agent.py@@@ -1,132 -1,0 +1,157 @@@+"""+Customer Support Agent using LangGraph with RAG.++Handles customer queries using a knowledge base (product docs).+Routes complex issues to human escalation.++Usage:+ python agent.py+ python agent.py --kb-dir docs/ # load custom knowledge base+"""++import argparse+import os++from pathlib import Path+from typing import Annotated, Literal, TypedDict++from dotenv import load_dotenv+from langchain_community.vectorstores import FAISS+from langchain_core.messages import AIMessage, HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI, OpenAIEmbeddings+from langchain_text_splitters import RecursiveCharacterTextSplitter+from langgraph.graph import END, StateGraph+from langgraph.graph.message import add_messages++load_dotenv()++SAMPLE_KB = [+ "Product: CloudSync Pro. Features: real-time sync across 5 devices, 1TB storage, offline mode, version history 30 days.",+ "Pricing: Basic $9/mo (100GB, 2 devices), Pro $19/mo (1TB, 5 devices), Business $49/mo (5TB, unlimited devices).",+ "Cancellation: Cancel anytime from Account > Subscription > Cancel. Refunds available within 14 days of charge.",+ "Password reset: Go to login page, click 'Forgot Password', enter email. Reset link expires in 1 hour.",+ "Sync issues: Check internet connection, ensure app is updated, try Sign Out and Sign In. If persists, contact support.",+ "Supported platforms: Windows 10+, macOS 12+, iOS 15+, Android 10+, Linux (Beta).",+ "Data security: AES-256 encryption at rest and in transit. SOC 2 Type II certified. Zero-knowledge architecture.",+ "File size limit: Individual files up to 10GB (Pro/Business), 2GB (Basic). No limit on total number of files.",+]++ESCALATION_KEYWORDS = ["refund", "lawsuit", "furious", "fraud", "broken", "data loss", "cancel account", "charge", "billing error"]+++class SupportState(TypedDict):+ messages: Annotated[list, add_messages]+ user_input: str+ retrieved_context: str+ response: str+ escalate: bool+++def retrieve_context(state: SupportState) -> SupportState:+ query = state["user_input"]+ if not hasattr(retrieve_context, "vectorstore"):- texts = SAMPLE_KB++ texts = getattr(retrieve_context, "kb_texts", SAMPLE_KB)+ splitter = RecursiveCharacterTextSplitter(chunk_size=200, chunk_overlap=20)+ docs_split = splitter.create_documents(texts)+ embeddings = OpenAIEmbeddings()+ retrieve_context.vectorstore = FAISS.from_documents(docs_split, embeddings)++ docs = retrieve_context.vectorstore.similarity_search(query, k=3)+ context = "\n".join(d.page_content for d in docs)+ return {"retrieved_context": context}+++def check_escalation(state: SupportState) -> SupportState:+ text = state["user_input"].lower()+ needs_escalation = any(kw in text for kw in ESCALATION_KEYWORDS)+ return {"escalate": needs_escalation}+++def generate_response(state: SupportState) -> SupportState:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.2)+ conversation = state["messages"][:-1] # exclude latest user msg++ if state.get("escalate"):+ response_text = "I understand your concern and I want to make sure this gets the attention it deserves. I'm connecting you with a senior support specialist who can resolve this directly. You'll hear back within 2 hours. Your case ID is #" + str(hash(state["user_input"]) % 100000) + "."+ else:+ messages = [+ SystemMessage(content=f"""You are a helpful customer support agent for CloudSync Pro.+Use this knowledge base context to answer accurately:+{state['retrieved_context']}++Be friendly, concise, and solution-focused. If unsure, say so honestly."""),+ *conversation,+ HumanMessage(content=state["user_input"]),+ ]+ response = llm.invoke(messages)+ response_text = response.content++ return {"response": response_text, "messages": [AIMessage(content=response_text)]}+++def route_after_escalation_check(state: SupportState) -> Literal["generate", "generate"]:+ return "generate"+++def build_graph():+ graph = StateGraph(SupportState)+ graph.add_node("retrieve", retrieve_context)+ graph.add_node("check_escalation", check_escalation)+ graph.add_node("generate", generate_response)+ graph.set_entry_point("retrieve")+ graph.add_edge("retrieve", "check_escalation")+ graph.add_edge("check_escalation", "generate")+ graph.add_edge("generate", END)+ return graph.compile()++++def load_kb_texts(kb_dir: str | None) -> list[str]:++ if not kb_dir:++ return SAMPLE_KB++++ root = Path(kb_dir)++ if not root.is_dir():++ raise ValueError(f"Knowledge base directory does not exist: {kb_dir}")++++ texts = []++ for path in sorted(root.rglob("*")):++ if path.is_file() and path.suffix.lower() in {".txt", ".md"}:++ texts.append(path.read_text(encoding="utf-8"))++++ if not texts:++ raise ValueError(f"No .txt or .md files found in knowledge base directory: {kb_dir}")++++ return texts+++++def main():+ parser = argparse.ArgumentParser(description="Customer Support Agent")++ parser.add_argument("--kb-dir", help="Directory containing .txt or .md support knowledge base files")+ args = parser.parse_args()+++ retrieve_context.kb_texts = load_kb_texts(args.kb_dir)++ if hasattr(retrieve_context, "vectorstore"):++ delattr(retrieve_context, "vectorstore")+++ agent = build_graph()+ state = {"messages": [], "user_input": "", "retrieved_context": "", "response": "", "escalate": False}++ print("\n🎧 Customer Support Agent (CloudSync Pro)")+ print("Type 'quit' to exit\n")++ while True:+ user_input = input("Customer: ").strip()+ if user_input.lower() in ("quit", "exit", "q"):+ break+ if not user_input:+ continue++ state["user_input"] = user_input+ state["messages"].append(HumanMessage(content=user_input))+ state = agent.invoke(state)++ escalation_indicator = " [ESCALATED]" if state.get("escalate") else ""+ print(f"\nAgent{escalation_indicator}: {state['response']}\n")+++if __name__ == "__main__":+ main()diff --cc agents/13-customer-support-agent/requirements.txtindex 7eb92e7,0000000..0da9cdbmode 100644,000000..100644--- a/agents/13-customer-support-agent/requirements.txt+++ b/agents/13-customer-support-agent/requirements.txt@@@ -1,7 -1,0 +1,8 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+langchain-community==0.3.0+langchain-text-splitters==0.3.0+langgraph==0.2.0+faiss-cpu==1.9.0+python-dotenv==1.0.1diff --cc agents/15-unit-test-generator/requirements.txtindex 7efd7d3,0000000..ec5312amode 100644,000000..100644--- a/agents/15-unit-test-generator/requirements.txt+++ b/agents/15-unit-test-generator/requirements.txt@@@ -1,4 -1,0 +1,5 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1+pytest==8.3.0diff --cc agents/16-documentation-writer/agent.pyindex 95b7869,0000000..9280792mode 100644,000000..100644--- a/agents/16-documentation-writer/agent.py+++ b/agents/16-documentation-writer/agent.py@@@ -1,193 -1,0 +1,193 @@@+"""+Documentation Writer Agent.++Generates comprehensive documentation for Python modules:+README, API reference, docstrings, and usage examples.++Usage:+ python agent.py --file path/to/module.py+ python agent.py --file src/utils.py --format readme+"""++import argparse+import ast+import os++from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()+++def extract_structure(code: str) -> str:+ """Extract functions, classes, and their signatures from Python code."""+ try:+ tree = ast.parse(code)+ structure = []++ for node in ast.walk(tree):+ if isinstance(node, ast.FunctionDef):+ args = [a.arg for a in node.args.args]+ structure.append(f"def {node.name}({', '.join(args)})")+ elif isinstance(node, ast.ClassDef):+ structure.append(f"class {node.name}:")+ for item in node.body:+ if isinstance(item, ast.FunctionDef):+ args = [a.arg for a in item.args.args]+ structure.append(f" def {item.name}({', '.join(args)})")++ return "\n".join(structure)+ except Exception:+ return "Could not parse structure"+++README_PROMPT = """You are a technical documentation expert. Generate a complete, professional README.md for this Python module.++Include:+1. Module title and one-line description+2. Features list (bullet points)+3. Installation section+4. Quick Start with working code example+5. API Reference (each public function/class with parameters, return type, example)+6. Configuration (environment variables if any)+7. Error Handling section++Write in clear, developer-friendly markdown. Be specific and concrete."""++DOCSTRING_PROMPT = """Add comprehensive Google-style docstrings to every function and class that lacks them.++Format:+```+def function(param: type) -> return_type:+ \"\"\"One-line summary.++ Args:+ param: Description of parameter.++ Returns:+ Description of return value.++ Raises:+ ErrorType: When this error is raised.++ Example:+ >>> function(value)+ expected_output+ \"\"\"+```++Return the complete updated Python file with docstrings added."""+++def generate_readme(code: str, filename: str) -> str:+ llm = ChatOpenAI(model="gpt-4o", temperature=0)+ structure = extract_structure(code)+ messages = [+ SystemMessage(content=README_PROMPT),+ HumanMessage(content=f"File: {filename}\n\nCode structure:\n{structure}\n\nFull code:\n```python\n{code[:3000]}\n```"),+ ]+ return llm.invoke(messages).content+++def add_docstrings(code: str, filename: str) -> str:+ llm = ChatOpenAI(model="gpt-4o", temperature=0)+ messages = [+ SystemMessage(content=DOCSTRING_PROMPT),+ HumanMessage(content=f"Add docstrings to this Python file ({filename}):\n\n```python\n{code}\n```"),+ ]+ result = llm.invoke(messages).content+ # Clean markdown fences+ if "```python" in result:+ result = result.split("```python")[1].split("```")[0].strip()+ return result++- SAMPLE_CODE = '''++SAMPLE_CODE = r'''+import hashlib+import re+from datetime import datetime+++def validate_email(email: str) -> bool:+ pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'+ return bool(re.match(pattern, email))+++def hash_password(password: str, salt: str = "") -> str:+ combined = f"{password}{salt}"+ return hashlib.sha256(combined.encode()).hexdigest()+++def parse_date(date_string: str) -> datetime:+ formats = ["%Y-%m-%d", "%d/%m/%Y", "%m-%d-%Y", "%Y%m%d"]+ for fmt in formats:+ try:+ return datetime.strptime(date_string, fmt)+ except ValueError:+ continue+ raise ValueError(f"Unable to parse date: {date_string}")+++class UserValidator:+ MIN_PASSWORD_LENGTH = 8++ def validate_username(self, username: str) -> tuple[bool, str]:+ if len(username) < 3:+ return False, "Username too short"+ if not re.match(r'^[a-zA-Z0-9_]+$', username):+ return False, "Only letters, numbers, underscores allowed"+ return True, ""++ def validate_password(self, password: str) -> tuple[bool, str]:+ if len(password) < self.MIN_PASSWORD_LENGTH:+ return False, f"Password must be at least {self.MIN_PASSWORD_LENGTH} characters"+ if not re.search(r'[A-Z]', password):+ return False, "Password must contain at least one uppercase letter"+ if not re.search(r'\d', password):+ return False, "Password must contain at least one digit"+ return True, ""+'''+++def main():+ parser = argparse.ArgumentParser(description="Documentation Writer Agent")+ group = parser.add_mutually_exclusive_group()+ group.add_argument("--file", help="Python file to document")+ group.add_argument("--code", help="Inline code to document")+ parser.add_argument("--format", choices=["readme", "docstrings", "both"], default="both", help="Documentation format to generate")+ args = parser.parse_args()++ if args.file:+ with open(args.file) as f:+ code = f.read()+ filename = os.path.basename(args.file)+ elif args.code:+ code = args.code+ filename = "module.py"+ else:+ code = SAMPLE_CODE+ filename = "validators.py"+ print("\n📝 Using sample validators module")++ print(f"\n✍️ Generating documentation for: {filename}\n")++ if args.format in ("readme", "both"):+ print("📄 Generating README...")+ readme = generate_readme(code, filename)+ readme_file = f"README_{filename.replace('.py', '')}.md"+ with open(readme_file, "w") as f:+ f.write(readme)+ print(f"✅ README saved to: {readme_file}")++ if args.format in ("docstrings", "both"):+ print("📝 Adding docstrings...")+ documented_code = add_docstrings(code, filename)+ output_file = f"documented_{filename}"+ with open(output_file, "w") as f:+ f.write(documented_code)+ print(f"✅ Documented code saved to: {output_file}")+++if __name__ == "__main__":+ main()diff --cc agents/16-documentation-writer/requirements.txtindex 560b01a,0000000..cac1f57mode 100644,000000..100644--- a/agents/16-documentation-writer/requirements.txt+++ b/agents/16-documentation-writer/requirements.txt@@@ -1,3 -1,0 +1,4 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --cc agents/17-recipe-agent/agent.pyindex 16ceac3,0000000..aa9a1bemode 100644,000000..100644--- a/agents/17-recipe-agent/agent.py+++ b/agents/17-recipe-agent/agent.py@@@ -1,111 -1,0 +1,125 @@@+"""+Recipe Recommendation Agent using Agno-style single agent.++Suggests recipes based on available ingredients, dietary restrictions,+and time constraints.++Usage:+ python agent.py --ingredients "chicken, garlic, lemon, rosemary"+ python agent.py --ingredients "tofu, broccoli, soy sauce" --diet vegan --time 20+"""++import argparse+import json+import os++import re++from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()++RECIPE_PROMPT = """You are a professional chef and nutritionist. Given available ingredients and constraints,+suggest 3 recipes. Return JSON:+{+ "recipes": [+ {+ "name": "Recipe Name",+ "cuisine": "Italian/Asian/etc",+ "difficulty": "Easy/Medium/Hard",+ "prep_time": "X minutes",+ "cook_time": "X minutes",+ "servings": N,+ "ingredients_needed": ["ingredient (amount)"],+ "missing_ingredients": ["optional additions"],+ "instructions": ["Step 1: ...", "Step 2: ..."],+ "nutrition_per_serving": {"calories": N, "protein": "Xg", "carbs": "Xg", "fat": "Xg"},+ "tips": "Chef's tip"+ }+ ],+ "recommended": "Recipe Name (best match)"+}+Return only valid JSON."""++++def parse_json_response(text: str) -> dict:++ cleaned = text.strip()++ if cleaned.startswith("```"):++ cleaned = re.sub(r"^```(?:json)?\s*", "", cleaned)++ cleaned = re.sub(r"\s*```$", "", cleaned)++ match = re.search(r"\{.*\}", cleaned, re.DOTALL)++ if match:++ cleaned = match.group(0)++ return json.loads(cleaned)+++++def get_recipes(ingredients: list[str], diet: str, time_limit: int, servings: int) -> dict:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.5)++ constraints = []+ if diet:+ constraints.append(f"Dietary restriction: {diet}")+ if time_limit:+ constraints.append(f"Max total time: {time_limit} minutes")+ if servings:+ constraints.append(f"Servings needed: {servings}")++ messages = [+ SystemMessage(content=RECIPE_PROMPT),+ HumanMessage(content=f"Available ingredients: {', '.join(ingredients)}\n\nConstraints:\n{chr(10).join(constraints) if constraints else 'None'}"),+ ]++ response = llm.invoke(messages)- return json.loads(response.content)++ return parse_json_response(response.content)+++def display_recipe(recipe: dict):- print(f"\n🍽️ {recipe['name']} ({recipe['cuisine']})")- print(f"⏱️ Prep: {recipe['prep_time']} | Cook: {recipe['cook_time']} | Difficulty: {recipe['difficulty']}")- print(f"👥 Serves: {recipe['servings']}")++ print(f"\n🍽️ {recipe.get('name', 'Recipe')} ({recipe.get('cuisine', 'N/A')})")++ print(f"⏱️ Prep: {recipe.get('prep_time', 'N/A')} | Cook: {recipe.get('cook_time', 'N/A')} | Difficulty: {recipe.get('difficulty', 'N/A')}")++ print(f"👥 Serves: {recipe.get('servings', 'N/A')}")+ print(f"\n📝 Ingredients:")- for ing in recipe["ingredients_needed"]:++ for ing in recipe.get("ingredients_needed", []):+ print(f" • {ing}")+ if recipe.get("missing_ingredients"):+ print(f"\n➕ Optional additions: {', '.join(recipe['missing_ingredients'])}")+ print(f"\n👨🍳 Instructions:")- for i, step in enumerate(recipe["instructions"], 1):++ for i, step in enumerate(recipe.get("instructions", []), 1):+ print(f" {i}. {step}")+ n = recipe.get("nutrition_per_serving", {})+ if n:+ print(f"\n🥗 Nutrition: {n.get('calories', '?')} cal | Protein: {n.get('protein', '?')} | Carbs: {n.get('carbs', '?')} | Fat: {n.get('fat', '?')}")+ if recipe.get("tips"):+ print(f"\n💡 Chef's tip: {recipe['tips']}")+++def main():+ parser = argparse.ArgumentParser(description="Recipe Recommendation Agent")+ parser.add_argument("--ingredients", default="chicken breast, garlic, lemon, olive oil, rosemary, potatoes", help="Comma-separated ingredients")+ parser.add_argument("--diet", default="", help="Dietary restriction (vegan, vegetarian, gluten-free, keto, etc.)")+ parser.add_argument("--time", type=int, default=0, help="Max cooking time in minutes")+ parser.add_argument("--servings", type=int, default=2, help="Number of servings")+ args = parser.parse_args()++ ingredients = [i.strip() for i in args.ingredients.split(",")]+ print(f"\n🥘 Finding recipes with: {', '.join(ingredients)}")+ if args.diet:+ print(f"🥗 Diet: {args.diet}")+ if args.time:+ print(f"⏱️ Max time: {args.time} minutes")++ result = get_recipes(ingredients, args.diet, args.time, args.servings)++ print("\n" + "=" * 60)- print("✅ RECOMMENDED:", result.get("recommended", result["recipes"][0]["name"]))++ recipes = result.get("recipes", [])++ recommended = result.get("recommended") or (recipes[0].get("name", "N/A") if recipes else "N/A")++ print("✅ RECOMMENDED:", recommended)+ print("=" * 60)+- for recipe in result["recipes"]:++ for recipe in recipes:+ display_recipe(recipe)+ print("\n" + "-" * 40)+++if __name__ == "__main__":+ main()diff --cc agents/17-recipe-agent/requirements.txtindex 560b01a,0000000..cac1f57mode 100644,000000..100644--- a/agents/17-recipe-agent/requirements.txt+++ b/agents/17-recipe-agent/requirements.txt@@@ -1,3 -1,0 +1,4 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --cc agents/19-competitive-analysis-agent/requirements.txtindex 3356501,0000000..c677a31mode 100644,000000..100644--- a/agents/19-competitive-analysis-agent/requirements.txt+++ b/agents/19-competitive-analysis-agent/requirements.txt@@@ -1,4 -1,0 +1,5 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+langgraph==0.2.0+python-dotenv==1.0.1diff --cc agents/20-multi-agent-debate/requirements.txtindex 560b01a,0000000..cac1f57mode 100644,000000..100644--- a/agents/20-multi-agent-debate/requirements.txt+++ b/agents/20-multi-agent-debate/requirements.txt@@@ -1,3 -1,0 +1,4 @@@+langchain==0.3.0++langchain-core==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --cc agents/README.mdindex 3b9d9ea,0000000..3acd2f0mode 100644,000000..100644--- a/agents/README.md+++ b/agents/README.md@@@ -1,43 -1,0 +1,43 @@@+# Agents — Working Implementations++Each folder is a self-contained, runnable AI agent. No monorepo setup needed.++## Quick Start++```bash+cd agents/<agent-name>+pip install -r requirements.txt+cp .env.example .env # fill in your API keys+python agent.py+```++## Agent Index++| # | Agent | Framework | LLM | Industry | Difficulty |+|---|---|---|---|---|---|+| 01 | [Web Research Agent](01-web-research-agent/) | LangGraph | GPT-4o / Claude | General | ⭐⭐ |+| 02 | [Code Review Agent](02-code-review-agent/) | LangChain | GPT-4o / Claude | Software Dev | ⭐⭐ |+| 03 | [PDF Q&A Agent](03-pdf-qa-agent/) | LlamaIndex | GPT-4o | Research | ⭐⭐ |+| 04 | [SQL Query Agent](04-sql-query-agent/) | LangChain | GPT-4o | Data | ⭐⭐ |+| 05 | [Email Drafting Agent](05-email-drafting-agent/) | CrewAI | GPT-4o | Communication | ⭐ |- | 06 | [News Summarizer Agent](06-news-summarizer-agent/) | AutoGen | GPT-4o | Media | ⭐ |++| 06 | [News Summarizer Agent](06-news-summarizer-agent/) | LangChain | GPT-4o | Media | ⭐ |+| 07 | [GitHub Issue Triager](07-github-issue-triager/) | LangGraph | GPT-4o / Claude | DevOps | ⭐⭐ |+| 08 | [Data Analysis Agent](08-data-analysis-agent/) | LangChain | GPT-4o | Analytics | ⭐⭐ |+| 09 | [Resume Parser Agent](09-resume-parser-agent/) | LangChain | GPT-4o | HR | ⭐ |- | 10 | [Meeting Notes Agent](10-meeting-notes-agent/) | LangChain | Whisper + GPT-4o | Productivity | ⭐⭐ |- | 11 | [Stock Research Agent](11-stock-research-agent/) | Agno | GPT-4o | Finance | ⭐⭐ |++| 10 | [Meeting Notes Agent](10-meeting-notes-agent/) | LangChain | GPT-4o | Productivity | ⭐⭐ |++| 11 | [Stock Research Agent](11-stock-research-agent/) | LangChain | GPT-4o | Finance | ⭐⭐ |+| 12 | [Travel Planner Agent](12-travel-planner-agent/) | CrewAI | GPT-4o | Travel | ⭐⭐ |+| 13 | [Customer Support Agent](13-customer-support-agent/) | LangGraph | GPT-4o | Customer Service | ⭐⭐⭐ |+| 14 | [Social Media Content Agent](14-social-media-agent/) | CrewAI | GPT-4o | Marketing | ⭐ |+| 15 | [Unit Test Generator Agent](15-unit-test-generator/) | LangChain | GPT-4o / Claude | Software Dev | ⭐⭐ |+| 16 | [Documentation Writer Agent](16-documentation-writer/) | LangChain | GPT-4o / Claude | Software Dev | ⭐⭐ |- | 17 | [Recipe Recommendation Agent](17-recipe-agent/) | Agno | GPT-4o | Food | ⭐ |++| 17 | [Recipe Recommendation Agent](17-recipe-agent/) | LangChain | GPT-4o | Food | ⭐ |+| 18 | [Job Application Agent](18-job-application-agent/) | CrewAI | GPT-4o | HR | ⭐⭐ |+| 19 | [Competitive Analysis Agent](19-competitive-analysis-agent/) | LangGraph | GPT-4o | Business | ⭐⭐⭐ |- | 20 | [Multi-Agent Debate System](20-multi-agent-debate/) | AutoGen | GPT-4o | Research | ⭐⭐⭐ |++| 20 | [Multi-Agent Debate System](20-multi-agent-debate/) | LangChain | GPT-4o | Research | ⭐⭐⭐ |++## Adding Your Agent++1. Create a folder: `agents/NN-your-agent-name/`+2. Include: `agent.py`, `requirements.txt`, `.env.example`, `README.md`, `metadata.yaml`+3. Open a PR following the [PR template](../.github/PULL_REQUEST_TEMPLATE.md)diff --cc crewai_mcp_course/README.mdindex d4e269b,d4e269b..1351dc9--- a/crewai_mcp_course/README.md+++ b/crewai_mcp_course/README.md@@@ -56,22 -56,22 +56,28 @@@ graph T### Using pip (traditional method)--1. Install the required packages:++1. Install the required packages for the lesson you want to run:```bash--pip install -r requirements.txt++pip install -r lesson_01/requirements.txt++pip install -r lesson_02/requirements.txt++pip install -r lesson_03/requirements.txt```2. Set up your environment variables:```bash--export FASTMCP_URL=http://your-fastmcp-server-url:port--export FASTMCP_API_KEY=your-api-key++export OPENAI_API_KEY=your-openai-api-key++export MCP_SERVER_URL=http://localhost:8000```3. Run the examples:```bash--python lesson1_setup.py--python lesson2_mcp_integration.py--python lesson3_advanced_patterns.py++python lesson_01/agent.py++python lesson_02/agent.py --topic "AI agents in healthcare"++++# Lesson 03 includes a matching FastMCP server and CrewAI wrappers.++python lesson_03/agent.py++# Optional: inspect/run the FastMCP server separately:++python lesson_03/mcp_server.py```### Using uv (recommended modern method)@@@ -91,20 -91,20 +97,25 @@@ source .venv/Scripts/activat3. Install dependencies:```bash--uv pip install -r requirements.txt++uv pip install -r lesson_01/requirements.txt++uv pip install -r lesson_02/requirements.txt++uv pip install -r lesson_03/requirements.txt```4. Set up your environment variables:```bash--export FASTMCP_URL=http://your-fastmcp-server-url:port--export FASTMCP_API_KEY=your-api-key++export OPENAI_API_KEY=your-openai-api-key++export MCP_SERVER_URL=http://localhost:8000```5. Run the examples:```bash--python lesson1_setup.py--python lesson2_mcp_integration.py--python lesson3_advanced_patterns.py++python lesson_01/agent.py++python lesson_02/agent.py --topic "AI agents in healthcare"++++python lesson_03/agent.py++# Optional: inspect/run the FastMCP server separately:++python lesson_03/mcp_server.py```## Requirements@@@ -112,12 -112,12 +123,13 @@@- Python 3.8+- CrewAI library- FastMCP library--- Access to an MCP server++- OpenAI API key++- FastMCP server example for Lesson 03## Course StructureEach lesson includes:--- A Python script with comprehensive comments++- A lesson folder with `agent.py`, `requirements.txt`, and `.env.example`- Clear objectives and expected outcomes- Step-by-step implementation- Best practices for error handling and security@@@ -129,4 -129,4 +141,4 @@@ After completing this course, you shoul- Integrate MCP servers with agent workflows- Build complex multi-agent systems- Implement data sharing between agents--- Design robust error handling for production systems++- Design robust error handling for production systemsdiff --cc crewai_mcp_course/lesson_03/agent.pyindex dbdb5f2,0000000..4c512afmode 100644,000000..100644--- a/crewai_mcp_course/lesson_03/agent.py+++ b/crewai_mcp_course/lesson_03/agent.py@@@ -1,144 -1,0 +1,145 @@@+"""+Lesson 03: CrewAI + FastMCP Integration++Demonstrates:+- Building a FastMCP server that exposes tools- - Connecting CrewAI agents to MCP tools- - Full production pipeline: MCP server → CrewAI agent → structured output++- Mirroring MCP server tools as CrewAI BaseTool wrappers++- Production pattern: keep tool contracts stable between MCP server and CrewAI wrappers++Architecture:- MCP Server (tools) ← CrewAI Agent → Output++ MCP Server tool contracts → CrewAI tool wrappers → Output+- Run the MCP server first: python mcp_server.py- Then run the agent: python agent.py++Run the agent: python agent.py++Optional: run python mcp_server.py to inspect the matching FastMCP server tools.+"""++import asyncio+import json+import os+from datetime import datetime++from crewai import Agent, Crew, Process, Task+from crewai.tools import BaseTool+from dotenv import load_dotenv+from langchain_openai import ChatOpenAI+from pydantic import Field++load_dotenv()++llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.2)++- # Simulated MCP tool wrappers (in production, these connect to the MCP server)++# CrewAI tool wrappers that mirror the FastMCP server's tool contracts.++# In production, replace these wrappers with a real MCP client adapter.+class DateTimeTool(BaseTool):+ name: str = "get_datetime"+ description: str = "Get the current date and time"++ def _run(self, query: str = "") -> str:+ return datetime.now().strftime("%Y-%m-%d %H:%M:%S UTC")+++class JsonFormatterTool(BaseTool):+ name: str = "format_as_json"+ description: str = "Format data as structured JSON. Input: a description of the data to format."++ def _run(self, data_description: str) -> str:+ return json.dumps({+ "formatted": True,+ "timestamp": datetime.now().isoformat(),+ "data": data_description,+ }, indent=2)+++class TaskPrioritizerTool(BaseTool):+ name: str = "prioritize_tasks"+ description: str = "Prioritize a list of tasks by importance. Input: comma-separated task list."++ def _run(self, tasks_csv: str) -> str:+ tasks = [t.strip() for t in tasks_csv.split(",")]+ prioritized = [{"rank": i + 1, "task": task, "priority": ["HIGH", "MEDIUM", "LOW"][i % 3]}+ for i, task in enumerate(tasks)]+ return json.dumps(prioritized, indent=2)+++# MCP-connected agent+mcp_agent = Agent(+ role="MCP-Powered Workflow Orchestrator",+ goal="Use MCP tools to orchestrate complex workflows and produce structured outputs",+ backstory="""You are an advanced AI agent with access to MCP (Model Context Protocol) tools.+ You excel at using these tools to gather data, format outputs, and prioritize work.+ You always produce structured, actionable results.""",+ llm=llm,+ tools=[DateTimeTool(), JsonFormatterTool(), TaskPrioritizerTool()],+ verbose=True,+)++# Coordinator agent+coordinator = Agent(+ role="Project Coordinator",+ goal="Coordinate tasks and produce a final project status report",+ backstory="Experienced project manager who synthesizes information into clear status reports.",+ llm=llm,+ verbose=True,+)+++def run_mcp_workflow(project_name: str, tasks: list[str]) -> str:+ tasks_str = ", ".join(tasks)++ gather_task = Task(+ description=f"""For project "{project_name}", use your MCP tools to:+ 1. Get the current datetime using get_datetime tool+ 2. Prioritize these tasks using prioritize_tasks tool: {tasks_str}+ 3. Format the results as JSON using format_as_json tool++ Return all gathered information.""",+ expected_output="Current time, prioritized task list, and formatted data",+ agent=mcp_agent,+ )++ report_task = Task(+ description=f"""Create a project status report for "{project_name}" using the gathered data.++ Report format:+ - Project: {project_name}+ - Generated: [timestamp from data]+ - Status: Active+ - Task Priority Matrix: [use the prioritized tasks]+ - Next Action: [highest priority incomplete task]+ - Executive Summary: 2-3 sentences++ Make it professional and actionable.""",+ expected_output="Professional project status report",+ agent=coordinator,+ context=[gather_task],+ )++ crew = Crew(+ agents=[mcp_agent, coordinator],+ tasks=[gather_task, report_task],+ process=Process.sequential,+ verbose=True,+ )++ return str(crew.kickoff())+++if __name__ == "__main__":+ project = "AI Agent Platform v2.0"+ tasks = [+ "Implement RAG pipeline",+ "Write unit tests",+ "Deploy to staging",+ "Update documentation",+ "Security audit",+ "Performance benchmarking",+ ]++ print(f"\n🔗 Running MCP-powered CrewAI workflow for: {project}\n")+ result = run_mcp_workflow(project, tasks)++ print("\n" + "=" * 60)+ print("PROJECT STATUS REPORT:")+ print("=" * 60)+ print(result)