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.
feat: add 20 working agents, community health files, README overhaul
ashishpatel2614c8fed0fe69
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.mdnew file mode 100644index 0000000..4d5ff82--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug_report.md@@ -0,0 +1,44 @@+---+name: Bug Report+about: Report a broken link, broken agent, or documentation error+title: '[BUG] '+labels: 'bug'+assignees: 'ashishpatel26'+---++## Bug Description++A clear description of what the bug is.++## Type of Issue++- [ ] Broken link in README+- [ ] Agent code not working+- [ ] Missing dependency / requirements issue+- [ ] Documentation error+- [ ] Other++## Steps to Reproduce++1. Go to '...'+2. Click on '...'+3. Run '...'+4. See error++## Expected Behavior++What you expected to happen.++## Actual Behavior++What actually happened. Include error messages, screenshots, or logs.++## Environment (if applicable)++- OS: [e.g. Ubuntu 22.04]+- Python version: [e.g. 3.11]+- Framework version: [e.g. crewai==0.80.0]++## Additional Context++Add any other context about the problem here.diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.mdnew file mode 100644index 0000000..e3af4e2--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature_request.md@@ -0,0 +1,39 @@+---+name: Add Agent / Feature Request+about: Suggest a new agent implementation or use case to add+title: '[AGENT] '+labels: 'enhancement'+assignees: 'ashishpatel26'+---++## Agent / Feature Summary++Brief description of the agent or use case you want to add.++## Type of Contribution++- [ ] New agent implementation (with code)+- [ ] New use case link (external project)+- [ ] New framework coverage+- [ ] Documentation improvement+- [ ] Other++## Agent Details (if applicable)++- **Framework**: [e.g. LangGraph, CrewAI, AutoGen, Agno]+- **Industry**: [e.g. Healthcare, Finance, Education]+- **Complexity**: [Beginner / Intermediate / Advanced]+- **LLM Required**: [e.g. GPT-4, Claude, Gemini, Local]++## Description++What does this agent do? Why is it useful?++## Implementation Link (if external)++GitHub URL to the existing implementation (if you're adding a link):++## Are you willing to contribute this yourself?++- [ ] Yes, I'll open a PR+- [ ] No, I'm requesting someone else implement itdiff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdnew file mode 100644index 0000000..40fd4f5--- /dev/null+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -0,0 +1,46 @@+## Summary++Brief description of what this PR adds or changes.++## Type of Change++- [ ] New agent implementation (adds runnable code)+- [ ] New use case link (adds external project to table)+- [ ] Bug fix (fixes broken link, typo, or error)+- [ ] Documentation improvement+- [ ] New framework coverage++## Agent Details (if adding new agent)++- **Agent name**:+- **Framework**: [LangGraph / CrewAI / AutoGen / Agno / LlamaIndex / Other]+- **Industry**:+- **Folder**: `agents/your-agent-name/`++## How to Run (if adding code)++```bash+cd agents/your-agent-name+pip install -r requirements.txt+cp .env.example .env # fill in your API keys+python agent.py+```++Expected output:+```+# paste sample output here+```++## Checklist++- [ ] README.md included in agent folder (with setup + demo output)+- [ ] `requirements.txt` with pinned versions+- [ ] `.env.example` with required env vars (no real keys!)+- [ ] Agent runs end-to-end in under 10 minutes+- [ ] No hardcoded API keys or secrets+- [ ] `metadata.yaml` added+- [ ] Added to main README table++## Related Issues++Closes #diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.ymlnew file mode 100644index 0000000..ba75ba2--- /dev/null+++ b/.github/workflows/link-checker.yml@@ -0,0 +1,47 @@+name: Link Checker++on:+ schedule:+ - cron: '0 0 * * 1' # every Monday at midnight UTC+ push:+ branches: [main]+ paths:+ - 'README.md'+ workflow_dispatch:++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'+ --timeout 30+ --retry-wait-time 5+ --max-retries 3+ README.md+ fail: false+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}++ - name: Create issue for broken links+ if: failure()+ 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 --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdnew file mode 100644index 0000000..cadc786--- /dev/null+++ b/CODE_OF_CONDUCT.md@@ -0,0 +1,39 @@+# Code of Conduct++## Our Pledge++We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.++We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.++## Our Standards++**Positive behavior includes:**+- Using welcoming and inclusive language+- Being respectful of differing viewpoints and experiences+- Gracefully accepting constructive criticism+- Focusing on what is best for the community+- Showing empathy towards other community members++**Unacceptable behavior includes:**+- The use of sexualized language or imagery, and sexual attention or advances of any kind+- Trolling, insulting or derogatory comments, and personal or political attacks+- Public or private harassment+- Publishing others' private information without explicit permission+- Other conduct which could reasonably be considered inappropriate in a professional setting++## Enforcement Responsibilities++Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.++## Scope++This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces.++## Enforcement++Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at **[email protected]**. All complaints will be reviewed and investigated promptly and fairly.++## Attribution++This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.diff --git a/CONTRIBUTION.md b/CONTRIBUTION.mdindex 6791cd0..f119211 100644--- a/CONTRIBUTION.md+++ b/CONTRIBUTION.md@@ -167,8 +167,4 @@ By contributing, you agree to the project's Code of Conduct. Be respectful, cons----<<<<<<< HEADThank you for contributing to 500-AI-Agents-Projects — your examples, templates, and tools make the agent community stronger and more reproducible.-=======-Thank you for contributing to 500-AI-Agents-Projects — your examples, templates, and tools make the agent community stronger and more reproducible.->>>>>>> f5a092190b226a6723718d7680aa689f1d2b64bcdiff --git a/README.md b/README.mdindex 93f1f6d..8db71c6 100644--- a/README.md+++ b/README.md@@ -1,315 +1,292 @@-# 🌟 500+ AI Agent Projects / UseCases+# 500+ AI Agent Projects & Use Cases-[](https://github.com/ashishpatel26/500-AI-Agents-Projects)+<div align="center">-+[](https://github.com/ashishpatel26/500-AI-Agents-Projects/stargazers)+[](https://github.com/ashishpatel26/500-AI-Agents-Projects/network/members)+[](https://github.com/ashishpatel26/500-AI-Agents-Projects/graphs/contributors)+[](CONTRIBUTION.md)+[](LICENSE)+[](https://github.com/ashishpatel26/500-AI-Agents-Projects/commits/main)-A curated collection of AI agent use cases across industries, showcasing practical applications and linking to open-source projects for implementation. Explore how AI agents are transforming industries like healthcare, finance, education, and more! 🤖✨+**The most comprehensive collection of AI agent projects, use cases, and working implementations.**++[🚀 Quick Start](#-quick-start) • [🗺️ Browse Agents](#-browse-by-framework) • [🏭 By Industry](#-industry-use-cases) • [🤝 Contribute](#-contributing) • [📊 Frameworks Compared](#-framework-comparison)++</div>----## 📋 Table of Contents+++## What is this?-- [Introduction](#introduction)-- [Industry Usecase](#-industry-usecase-mindmap)-- [Use Case Table](#use-case-table)-- [Framework Wise UseCase](#framework-wise-usecases)- - [CrewAI UseCase](#framework-name-crewai)- - [AutoGen UseCase](#framework-name-autogen)- - [Agno UseCase](#framework-name-agno)- - [Langgraph UseCase](#framework-name-langgraph)-- [Contributing](#contributing)-- [License](#license)+A curated collection of **500+ AI agent projects** — production examples, tutorials, and working code spanning every major framework (LangGraph, CrewAI, AutoGen, Agno) and industry (Healthcare, Finance, Education, Cybersecurity, and more).++**Who it's for:**+- 🧑💻 **Developers** building their first or next AI agent+- 🔬 **Researchers** surveying the agent landscape+- 🏢 **Teams** evaluating frameworks for production use+- 🎓 **Students** learning agent architectures from real examples----## 🧠 Introduction+## ⚡ Quick Start++Pick a framework and run an agent in under 5 minutes:-Artificial Intelligence (AI) agents are revolutionizing the way industries operate. From personalized learning to financial trading bots, AI agents bring efficiency, innovation, and scalability. This repository provides:+```bash+# Clone the repo+git clone https://github.com/ashishpatel26/500-AI-Agents-Projects.git+cd 500-AI-Agents-Projects-- A categorized list of industries where AI agents are making an impact.-- Detailed use cases with links to open-source projects for implementation.+# Run any agent from the agents/ directory+cd agents/01-web-research-agent+pip install -r requirements.txt+cp .env.example .env # add your API key+python agent.py+```-Whether you're a developer, researcher, or business enthusiast, this repository is your go-to resource for AI agent inspiration and learning.+> All agents in `agents/` are self-contained with their own `requirements.txt` and `.env.example`. No monorepo setup needed.----## 🏭 Industry UseCase MindMap+## 🗺️ Navigation Guide-+| I want to... | Go to |+|---|---|+| Run a working agent right now | [`agents/`](agents/) |+| Browse by AI framework | [Framework-wise Use Cases](#-browse-by-framework) |+| Browse by industry | [Industry Use Cases](#-industry-use-cases) |+| Understand which framework to use | [Framework Comparison](#-framework-comparison) |+| Add my own agent | [Contributing](CONTRIBUTION.md) |+| Learn with a course | [`crewai_mcp_course/`](crewai_mcp_course/) |----## 🧩 Use Case Table--| Use Case | Industry | Description | Code Github |-| ------------------------------------------- | ---------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| **HIA (Health Insights Agent)** | Healthcare | analyses medical reports and provide 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) |-| **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 | A medical ai agent that helps automating the process of hospitals / insurance claiming workflow. | [](https://github.com/MahmoudRabea13/MediSuite-Ai-Agent) |-| **Lina-Egyptian-Medical-Chatbot** | Health insurance | A medical ai agent that helps automating the process of hospitals / insurance claiming workflow. | [](https://github.com/MahmoudRabea13/MediSuite-Ai-Agent) |--## Framework wise Usecases+## 📊 Framework Comparison++Choosing a framework? Here's when to use each:++| Framework | Best For | Complexity | Multi-Agent | Streaming | Local LLM |+|---|---|---|---|---|---|+| **LangGraph** | Stateful workflows, RAG pipelines, complex graphs | ⭐⭐⭐ | ✅ | ✅ | ✅ |+| **CrewAI** | Role-based teams, business automation, rapid prototyping | ⭐⭐ | ✅ | ✅ | ✅ |+| **AutoGen** | Code generation, research, self-healing workflows | ⭐⭐⭐ | ✅ | ✅ | ✅ |+| **Agno** | Lightweight single agents, tool integration, fast iteration | ⭐ | ✅ | ✅ | ✅ |+| **LlamaIndex** | Document Q&A, enterprise RAG, data pipelines | ⭐⭐ | ⚠️ | ✅ | ✅ |++**Quick decision guide:**+- Just starting out → **Agno** or **CrewAI**+- Need stateful graphs + RAG → **LangGraph**+- Building code-writing / research agents → **AutoGen**+- Enterprise document pipelines → **LlamaIndex**----### **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) |+| **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) |++---++## 🔧 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) |---## 🤝 Contributing-Contributions are welcome! 🎉 Here's how you can help:+Contributions are welcome! 🎉 This repo grows through community contributions.++**Ways to contribute:**+1. **Add a working agent** — create a folder in `agents/` with runnable code+2. **Add an external link** — add a row to the industry or framework tables+3. **Fix a broken link** — open an issue or PR+4. **Improve documentation** — fix typos, add context, improve examples-1. Fork the repository.-2. Add a new use case or improve an existing one.-3. Submit a pull request with your changes.+**To contribute:**+1. Fork the repository+2. Create a branch: `feat/agent-name` or `fix/description`+3. Add your changes following the [Contributing Guidelines](CONTRIBUTION.md)+4. Open a PR using the PR template-Please follow our [Contributing Guidelines](CONTRIBUTING.md) for more details.+See [CONTRIBUTION.md](CONTRIBUTION.md) for full requirements (metadata.yaml, requirements.txt, etc.).---@@ -318,15 +295,11 @@ Please follow our [Contributing Guidelines](CONTRIBUTING.md) for more details.<picture><sourcemedia="(prefers-color-scheme: dark)"- srcset="- https://api.star-history.com/svg?repos=ashishpatel26/500-AI-Agents-Projects&type=date&legend=top-left- "+ srcset="https://api.star-history.com/svg?repos=ashishpatel26/500-AI-Agents-Projects&type=date&legend=top-left"/><sourcemedia="(prefers-color-scheme: light)"- srcset="- https://api.star-history.com/svg?repos=ashishpatel26/500-AI-Agents-Projects&type=date&legend=top-left- "+ srcset="https://api.star-history.com/svg?repos=ashishpatel26/500-AI-Agents-Projects&type=date&legend=top-left"/><imgalt="Star History Chart"@@ -342,6 +315,10 @@ This repository is licensed under the MIT License. See the [LICENSE](LICENSE) fi----## 🚀 Let's Build Together!+<div align="center">++**⭐ Star this repo if you find it useful — it helps others discover it!**++[Report Issue](https://github.com/ashishpatel26/500-AI-Agents-Projects/issues) • [Request Agent](https://github.com/ashishpatel26/500-AI-Agents-Projects/issues/new?template=feature_request.md) • [Contribute](CONTRIBUTION.md)-Feel free to share this repository with your network and star ⭐ it if you find it useful. Let’s collaborate to create the ultimate resource for AI agent use cases!+</div>diff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 0000000..a3cfe2f--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,39 @@+# Security Policy++## Supported Versions++| Version | Supported |+| ------- | ------------------ |+| main | :white_check_mark: |++## Reporting a Vulnerability++**Do not report security vulnerabilities through public GitHub issues.**++If you discover a security vulnerability in this repository or any of the agent implementations, please report it responsibly:++1. **Email**: [email protected] with subject `[SECURITY] 500-AI-Agents-Projects`+2. **GitHub**: Use [GitHub's private security advisory](https://github.com/ashishpatel26/500-AI-Agents-Projects/security/advisories/new)++### What to include++- Description of the vulnerability+- Steps to reproduce+- Potential impact+- Suggested fix (if any)++### Response timeline++- Acknowledgement within **48 hours**+- Status update within **7 days**+- Fix or mitigation within **30 days** (depending on severity)++## Security Best Practices for Agent Implementations++When using or contributing agent code from this repo:++- **Never hardcode API keys** — always use `.env` files or environment variables+- **Never commit `.env` files** — they are gitignored by default+- **Validate external inputs** before passing to LLM agents+- **Review tool permissions** — agents with code execution can be dangerous if misconfigured+- **Use least-privilege API keys** — restrict API key scopes to what the agent actually needsdiff --git a/agents/01-web-research-agent/.env.example b/agents/01-web-research-agent/.env.examplenew file mode 100644index 0000000..1fe82a1--- /dev/null+++ b/agents/01-web-research-agent/.env.example@@ -0,0 +1,2 @@+OPENAI_API_KEY=your_openai_api_key_here+TAVILY_API_KEY=your_tavily_api_key_herediff --git a/agents/01-web-research-agent/README.md b/agents/01-web-research-agent/README.mdnew file mode 100644index 0000000..48df25f--- /dev/null+++ b/agents/01-web-research-agent/README.md@@ -0,0 +1,62 @@+# Web Research Agent++A LangGraph agent that searches the web for any topic and synthesizes a structured research report.++**Framework**: LangGraph+**LLM**: GPT-4o-mini (OpenAI)+**Search**: Tavily++## What it does++1. Takes a research query+2. Searches the web using Tavily (5 results)+3. Synthesizes findings into a structured report (Summary, Key Findings, Sources)++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+# Edit .env and add your API keys+```++Get free API keys:+- OpenAI: https://platform.openai.com/api-keys+- Tavily: https://app.tavily.com (free tier available)++## Run++```bash+# Default query+python agent.py++# Custom query+python agent.py --query "latest advances in quantum computing"+```++## Sample Output++```+🔍 Researching: latest advances in AI agents 2024++============================================================+📄 RESEARCH REPORT+============================================================+## Summary+AI agents have seen significant advances in 2024, with major improvements+in reasoning, tool use, and multi-agent collaboration...++## Key Findings+- LangGraph and CrewAI have emerged as leading frameworks for production agents+- OpenAI's GPT-4o enables real-time multimodal agent interactions+- ...++## Sources+- https://...+```++## Architecture++```+User Query → [Search Node] → Tavily Web Search → [Synthesize Node] → GPT-4o → Report+```diff --git a/agents/01-web-research-agent/agent.py b/agents/01-web-research-agent/agent.pynew file mode 100644index 0000000..1c4ba51--- /dev/null+++ b/agents/01-web-research-agent/agent.py@@ -0,0 +1,83 @@+"""+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"])+ 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 --git a/agents/01-web-research-agent/metadata.yaml b/agents/01-web-research-agent/metadata.yamlnew file mode 100644index 0000000..9952819--- /dev/null+++ b/agents/01-web-research-agent/metadata.yaml@@ -0,0 +1,11 @@+title: web-research-agent+description: Searches the web for a topic and synthesizes a structured research report+author: ashishpatel26+language: python+framework: langgraph+tags: [research, web-search, rag, langgraph]+industry: general+difficulty: intermediate+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/01-web-research-agent/requirements.txt b/agents/01-web-research-agent/requirements.txtnew file mode 100644index 0000000..b910545--- /dev/null+++ b/agents/01-web-research-agent/requirements.txt@@ -0,0 +1,5 @@+langchain==0.3.0+langchain-openai==0.2.0+langchain-tavily==0.1.0+langgraph==0.2.0+python-dotenv==1.0.1diff --git a/agents/02-code-review-agent/.env.example b/agents/02-code-review-agent/.env.examplenew file mode 100644index 0000000..95a02ca--- /dev/null+++ b/agents/02-code-review-agent/.env.example@@ -0,0 +1,3 @@+OPENAI_API_KEY=your_openai_api_key_here+# Alternative: use Anthropic Claude+# ANTHROPIC_API_KEY=your_anthropic_api_key_herediff --git a/agents/02-code-review-agent/README.md b/agents/02-code-review-agent/README.mdnew file mode 100644index 0000000..afb271a--- /dev/null+++ b/agents/02-code-review-agent/README.md@@ -0,0 +1,47 @@+# Code Review Agent++An AI agent that reviews code for bugs, security issues, performance problems, and style violations.++**Framework**: LangChain+**LLM**: GPT-4o++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Review a file+python agent.py --file path/to/your/code.py++# Review inline code+python agent.py --code "def divide(a, b): return a / b"++# Review non-Python code+python agent.py --file app.js --language javascript+```++## Sample Output++```+🔍 Reviewing: example.py++============================================================+📋 CODE REVIEW+============================================================+## Overall: 🟡 Needs Work++### 1. Bugs & Correctness+- `divide(a, b)` has no zero-division check → `ZeroDivisionError` on `b=0`++### 2. Security Issues+- No input validation on external parameters++### 3. Improvements+- Add type hints: `def divide(a: float, b: float) -> float`+- Raise `ValueError` for `b == 0` with descriptive message+```diff --git a/agents/02-code-review-agent/agent.py b/agents/02-code-review-agent/agent.pynew file mode 100644index 0000000..308fdd4--- /dev/null+++ b/agents/02-code-review-agent/agent.py@@ -0,0 +1,67 @@+"""+Code Review Agent using LangChain.++Reviews Python code for bugs, security issues, style violations, and+suggests improvements. Accepts a file path or inline code snippet.++Usage:+ python agent.py --file path/to/code.py+ python agent.py --code "def add(a,b): return a+b"+"""++import argparse+import os++from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()++SYSTEM_PROMPT = """You are an expert code reviewer. Analyze the provided code and return a structured review covering:++1. **Bugs & Correctness** — logic errors, edge cases, exception handling+2. **Security Issues** — injection risks, secrets exposure, unsafe operations+3. **Performance** — inefficiencies, unnecessary computation, memory issues+4. **Code Style** — PEP 8 violations, naming conventions, readability+5. **Improvements** — refactoring suggestions, better patterns++Format: Use markdown. Rate overall quality as: 🟢 Good / 🟡 Needs Work / 🔴 Critical Issues."""+++def review_code(code: str, language: str = "python") -> str:+ llm = ChatOpenAI(model="gpt-4o", temperature=0)+ messages = [+ SystemMessage(content=SYSTEM_PROMPT),+ HumanMessage(content=f"Review this {language} code:\n\n```{language}\n{code}\n```"),+ ]+ response = llm.invoke(messages)+ return response.content+++def main():+ parser = argparse.ArgumentParser(description="Code Review Agent")+ group = parser.add_mutually_exclusive_group(required=True)+ group.add_argument("--file", help="Path to file to review")+ group.add_argument("--code", help="Inline code snippet to review")+ parser.add_argument("--language", default="python", help="Programming language (default: python)")+ args = parser.parse_args()++ if args.file:+ with open(args.file) as f:+ code = f.read()+ print(f"\n🔍 Reviewing: {args.file}\n")+ else:+ code = args.code+ print(f"\n🔍 Reviewing inline code snippet\n")++ review = review_code(code, args.language)++ print("=" * 60)+ print("📋 CODE REVIEW")+ print("=" * 60)+ print(review)+++if __name__ == "__main__":+ main()diff --git a/agents/02-code-review-agent/metadata.yaml b/agents/02-code-review-agent/metadata.yamlnew file mode 100644index 0000000..3b9e511--- /dev/null+++ b/agents/02-code-review-agent/metadata.yaml@@ -0,0 +1,11 @@+title: code-review-agent+description: Reviews code for bugs, security issues, performance, and style violations+author: ashishpatel26+language: python+framework: langchain+tags: [code-review, software-development, security, quality]+industry: software-development+difficulty: beginner+llm: gpt-4o+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/02-code-review-agent/requirements.txt b/agents/02-code-review-agent/requirements.txtnew file mode 100644index 0000000..560b01a--- /dev/null+++ b/agents/02-code-review-agent/requirements.txt@@ -0,0 +1,3 @@+langchain==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/03-pdf-qa-agent/.env.example b/agents/03-pdf-qa-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/03-pdf-qa-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/03-pdf-qa-agent/README.md b/agents/03-pdf-qa-agent/README.mdnew file mode 100644index 0000000..705ba43--- /dev/null+++ b/agents/03-pdf-qa-agent/README.md@@ -0,0 +1,30 @@+# PDF Q&A Agent++Loads any PDF and lets you ask questions about it. Supports both single-question and interactive chat modes.++**Framework**: LlamaIndex+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Interactive Q&A (recommended)+python agent.py --pdf your_document.pdf++# Single question+python agent.py --pdf research_paper.pdf --question "What methodology was used?"+```++## Use cases++- Research paper analysis+- Contract review+- Financial report Q&A+- Technical documentation chatdiff --git a/agents/03-pdf-qa-agent/agent.py b/agents/03-pdf-qa-agent/agent.pynew file mode 100644index 0000000..f9adbda--- /dev/null+++ b/agents/03-pdf-qa-agent/agent.py@@ -0,0 +1,79 @@+"""+PDF Q&A Agent using LlamaIndex.++Loads a PDF, indexes it, and answers questions about its content.+Maintains conversation history for follow-up questions.++Usage:+ python agent.py --pdf path/to/document.pdf+ python agent.py --pdf report.pdf --question "What is the main finding?"+"""++import argparse+import os++from dotenv import load_dotenv+from llama_index.core import SimpleDirectoryReader, VectorStoreIndex+from llama_index.core.memory import ChatMemoryBuffer+from llama_index.llms.openai import OpenAI++load_dotenv()+++def build_index(pdf_path: str) -> VectorStoreIndex:+ print(f"📄 Loading and indexing {pdf_path}...")+ reader = SimpleDirectoryReader(input_files=[pdf_path])+ docs = reader.load_data()+ index = VectorStoreIndex.from_documents(docs)+ print(f"✅ Indexed {len(docs)} document chunk(s)")+ return index+++def interactive_qa(index: VectorStoreIndex):+ llm = OpenAI(model="gpt-4o-mini", temperature=0)+ memory = ChatMemoryBuffer.from_defaults(token_limit=4096)+ chat_engine = index.as_chat_engine(+ chat_mode="context",+ llm=llm,+ memory=memory,+ verbose=False,+ )++ print("\n💬 PDF Q&A Agent ready. Type 'quit' to exit.\n")+ while True:+ question = input("You: ").strip()+ if question.lower() in ("quit", "exit", "q"):+ break+ if not question:+ continue+ response = chat_engine.chat(question)+ print(f"\nAgent: {response.response}\n")+++def single_question(index: VectorStoreIndex, question: str):+ query_engine = index.as_query_engine(similarity_top_k=5)+ response = query_engine.query(question)+ print("\n" + "=" * 60)+ print("📋 ANSWER")+ print("=" * 60)+ print(response.response)+ if hasattr(response, "source_nodes"):+ print(f"\n📚 Sources: {len(response.source_nodes)} chunk(s) referenced")+++def main():+ parser = argparse.ArgumentParser(description="PDF Q&A Agent")+ parser.add_argument("--pdf", required=True, help="Path to PDF file")+ parser.add_argument("--question", help="Single question (omit for interactive mode)")+ args = parser.parse_args()++ index = build_index(args.pdf)++ if args.question:+ single_question(index, args.question)+ else:+ interactive_qa(index)+++if __name__ == "__main__":+ main()diff --git a/agents/03-pdf-qa-agent/metadata.yaml b/agents/03-pdf-qa-agent/metadata.yamlnew file mode 100644index 0000000..08cd459--- /dev/null+++ b/agents/03-pdf-qa-agent/metadata.yaml@@ -0,0 +1,11 @@+title: pdf-qa-agent+description: Loads a PDF and answers questions about its content with conversation history+author: ashishpatel26+language: python+framework: llamaindex+tags: [pdf, rag, qa, document-analysis, llamaindex]+industry: research+difficulty: beginner+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/03-pdf-qa-agent/requirements.txt b/agents/03-pdf-qa-agent/requirements.txtnew file mode 100644index 0000000..9e7a780--- /dev/null+++ b/agents/03-pdf-qa-agent/requirements.txt@@ -0,0 +1,4 @@+llama-index==0.11.0+llama-index-llms-openai==0.3.0+llama-index-embeddings-openai==0.3.0+python-dotenv==1.0.1diff --git a/agents/04-sql-query-agent/.env.example b/agents/04-sql-query-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/04-sql-query-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/04-sql-query-agent/README.md b/agents/04-sql-query-agent/README.mdnew file mode 100644index 0000000..ee1f849--- /dev/null+++ b/agents/04-sql-query-agent/README.md@@ -0,0 +1,39 @@+# 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?"+```++## 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 --git a/agents/04-sql-query-agent/agent.py b/agents/04-sql-query-agent/agent.pynew file mode 100644index 0000000..167440f--- /dev/null+++ b/agents/04-sql-query-agent/agent.py@@ -0,0 +1,120 @@+"""+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 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}")+ 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)")+ 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)+ print(f"\n📊 Connected to: {args.db}")+ 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 --git a/agents/04-sql-query-agent/metadata.yaml b/agents/04-sql-query-agent/metadata.yamlnew file mode 100644index 0000000..4c6e1e2--- /dev/null+++ b/agents/04-sql-query-agent/metadata.yaml@@ -0,0 +1,11 @@+title: sql-query-agent+description: Answers natural language questions about SQL databases by generating and executing queries+author: ashishpatel26+language: python+framework: langchain+tags: [sql, database, natural-language, data-analysis]+industry: data-analytics+difficulty: intermediate+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/04-sql-query-agent/requirements.txt b/agents/04-sql-query-agent/requirements.txtnew file mode 100644index 0000000..70c7503--- /dev/null+++ b/agents/04-sql-query-agent/requirements.txt@@ -0,0 +1,4 @@+langchain==0.3.0+langchain-openai==0.2.0+langchain-community==0.3.0+python-dotenv==1.0.1diff --git a/agents/05-email-drafting-agent/.env.example b/agents/05-email-drafting-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/05-email-drafting-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/05-email-drafting-agent/README.md b/agents/05-email-drafting-agent/README.mdnew file mode 100644index 0000000..8b5a027--- /dev/null+++ b/agents/05-email-drafting-agent/README.md@@ -0,0 +1,32 @@+# Email Drafting Agent++A CrewAI two-agent system that drafts professional emails. An analyst agent extracts requirements, then a writer agent produces the final email.++**Framework**: CrewAI+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Default example+python agent.py++# Custom email+python agent.py \+ --context "Apologize for the delayed delivery of the software project" \+ --tone "apologetic but confident" \+ --recipient "the client project manager"+```++## Architecture++```+Context → [Analyst Agent] → Email Brief → [Writer Agent] → Final Email+```diff --git a/agents/05-email-drafting-agent/agent.py b/agents/05-email-drafting-agent/agent.pynew file mode 100644index 0000000..06d8d65--- /dev/null+++ b/agents/05-email-drafting-agent/agent.py@@ -0,0 +1,91 @@+"""+Email Drafting Agent using CrewAI.++A two-agent crew that drafts professional emails:+- Analyst agent: understands context and tone requirements+- Writer agent: drafts the final email++Usage:+ python agent.py+ python agent.py --context "Follow up on the Q3 proposal sent last week" --tone "professional"+"""++import argparse+import os++from crewai import Agent, Crew, Process, Task+from dotenv import load_dotenv+from langchain_openai import ChatOpenAI++load_dotenv()+++def build_email_crew(context: str, tone: str, recipient: str) -> str:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.3)++ analyst = Agent(+ role="Email Context Analyst",+ goal="Understand the email context, extract key points, and define the structure",+ backstory="You are an expert business communication analyst who distills complex situations into clear email requirements.",+ llm=llm,+ verbose=False,+ )++ writer = Agent(+ role="Professional Email Writer",+ goal="Draft clear, concise, and effective professional emails",+ backstory="You are a professional copywriter specializing in business emails that get responses.",+ llm=llm,+ verbose=False,+ )++ analyze_task = Task(+ description=f"""Analyze this email requirement:+Context: {context}+Recipient: {recipient}+Desired tone: {tone}++Extract: purpose, key points to cover, call to action, subject line suggestion.""",+ agent=analyst,+ expected_output="Structured email brief: purpose, key points, CTA, and suggested subject line",+ )++ write_task = Task(+ description=f"""Using the analysis, draft a complete professional email.+Tone: {tone}. Recipient: {recipient}.+Include: Subject line, greeting, body paragraphs, closing, signature placeholder.+Keep it concise — under 200 words for the body.""",+ agent=writer,+ expected_output="Complete formatted email ready to send",+ context=[analyze_task],+ )++ crew = Crew(+ agents=[analyst, writer],+ tasks=[analyze_task, write_task],+ process=Process.sequential,+ verbose=False,+ )++ result = crew.kickoff()+ return str(result)+++def main():+ parser = argparse.ArgumentParser(description="Email Drafting Agent")+ parser.add_argument("--context", default="Follow up on our product demo from last Tuesday. They seemed interested but haven't responded.", help="Email context/purpose")+ parser.add_argument("--tone", default="professional and friendly", help="Email tone")+ parser.add_argument("--recipient", default="a potential client", help="Who the email is for")+ args = parser.parse_args()++ print(f"\n✉️ Drafting email...\n")+ email = build_email_crew(args.context, args.tone, args.recipient)++ print("=" * 60)+ print("📧 DRAFTED EMAIL")+ print("=" * 60)+ print(email)+++if __name__ == "__main__":+ main()diff --git a/agents/05-email-drafting-agent/metadata.yaml b/agents/05-email-drafting-agent/metadata.yamlnew file mode 100644index 0000000..c39bf3e--- /dev/null+++ b/agents/05-email-drafting-agent/metadata.yaml@@ -0,0 +1,11 @@+title: email-drafting-agent+description: Two-agent CrewAI system that drafts professional emails from context+author: ashishpatel26+language: python+framework: crewai+tags: [email, communication, crewai, productivity]+industry: communication+difficulty: beginner+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/05-email-drafting-agent/requirements.txt b/agents/05-email-drafting-agent/requirements.txtnew file mode 100644index 0000000..fc83995--- /dev/null+++ b/agents/05-email-drafting-agent/requirements.txt@@ -0,0 +1,3 @@+crewai==0.80.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/06-news-summarizer-agent/.env.example b/agents/06-news-summarizer-agent/.env.examplenew file mode 100644index 0000000..d59249d--- /dev/null+++ b/agents/06-news-summarizer-agent/.env.example@@ -0,0 +1,3 @@+OPENAI_API_KEY=your_openai_api_key_here+# Optional: get free key at https://newsapi.org+NEWS_API_KEY=your_newsapi_key_herediff --git a/agents/06-news-summarizer-agent/README.md b/agents/06-news-summarizer-agent/README.mdnew file mode 100644index 0000000..353e1e6--- /dev/null+++ b/agents/06-news-summarizer-agent/README.md@@ -0,0 +1,23 @@+# News Summarizer Agent++Fetches news articles on any topic and produces a structured briefing with key themes and insights.++**Framework**: LangChain+**LLM**: GPT-4o-mini+**Data**: NewsAPI (optional — runs with mock data without a key)++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+python agent.py --topic "artificial intelligence"+python agent.py --topic "climate change" --count 10+```++Works without a NewsAPI key using sample data. For real news, get a free key at newsapi.org.diff --git a/agents/06-news-summarizer-agent/agent.py b/agents/06-news-summarizer-agent/agent.pynew file mode 100644index 0000000..4fa70b9--- /dev/null+++ b/agents/06-news-summarizer-agent/agent.py@@ -0,0 +1,75 @@+"""+News Summarizer Agent using AutoGen.++Fetches news articles and produces structured summaries with key insights.++Usage:+ python agent.py --topic "artificial intelligence"+ python agent.py --topic "climate change" --count 5+"""++import argparse+import os++import requests+from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()++NEWS_API_KEY = os.getenv("NEWS_API_KEY")+++def fetch_news(topic: str, count: int = 5) -> list[dict]:+ if not NEWS_API_KEY:+ # Return mock data if no API key+ return [+ {"title": f"Major development in {topic}", "description": f"Researchers announce breakthrough in {topic} field.", "url": "https://example.com/1", "source": {"name": "Tech News"}},+ {"title": f"{topic.title()} industry sees rapid growth", "description": f"New report shows {topic} adoption up 40% year-over-year.", "url": "https://example.com/2", "source": {"name": "Business Daily"}},+ {"title": f"Experts weigh in on {topic} challenges", "description": f"Leading experts discuss obstacles facing the {topic} space.", "url": "https://example.com/3", "source": {"name": "Science Weekly"}},+ ]++ url = f"https://newsapi.org/v2/everything?q={topic}&language=en&pageSize={count}&sortBy=publishedAt&apiKey={NEWS_API_KEY}"+ response = requests.get(url, timeout=10)+ data = response.json()+ return data.get("articles", [])+++def summarize_news(topic: str, articles: list[dict]) -> str:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)++ articles_text = "\n\n".join(+ f"Title: {a['title']}\nSource: {a.get('source', {}).get('name', 'Unknown')}\nSummary: {a.get('description', 'N/A')}"+ for a in articles[:5]+ )++ messages = [+ SystemMessage(content="You are a news analyst. Create a structured news briefing with: 1) Top Story, 2) Key Themes (3 bullet points), 3) What to Watch, 4) Quick Headlines list."),+ HumanMessage(content=f"Topic: {topic}\n\nArticles:\n{articles_text}"),+ ]++ response = llm.invoke(messages)+ return response.content+++def main():+ parser = argparse.ArgumentParser(description="News Summarizer Agent")+ parser.add_argument("--topic", default="artificial intelligence", help="News topic to search")+ parser.add_argument("--count", type=int, default=5, help="Number of articles to fetch")+ args = parser.parse_args()++ print(f"\n📰 Fetching news about: {args.topic}\n")+ articles = fetch_news(args.topic, args.count)+ print(f"✅ Found {len(articles)} articles")++ summary = summarize_news(args.topic, articles)++ print("\n" + "=" * 60)+ print(f"📋 NEWS BRIEFING: {args.topic.upper()}")+ print("=" * 60)+ print(summary)+++if __name__ == "__main__":+ main()diff --git a/agents/06-news-summarizer-agent/metadata.yaml b/agents/06-news-summarizer-agent/metadata.yamlnew file mode 100644index 0000000..eba10b8--- /dev/null+++ b/agents/06-news-summarizer-agent/metadata.yaml@@ -0,0 +1,11 @@+title: news-summarizer-agent+description: Fetches news on any topic and produces a structured briefing with key themes+author: ashishpatel26+language: python+framework: langchain+tags: [news, summarization, media, nlp]+industry: media+difficulty: beginner+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/06-news-summarizer-agent/requirements.txt b/agents/06-news-summarizer-agent/requirements.txtnew file mode 100644index 0000000..d00535c--- /dev/null+++ b/agents/06-news-summarizer-agent/requirements.txt@@ -0,0 +1,4 @@+langchain==0.3.0+langchain-openai==0.2.0+requests==2.32.3+python-dotenv==1.0.1diff --git a/agents/07-github-issue-triager/.env.example b/agents/07-github-issue-triager/.env.examplenew file mode 100644index 0000000..27fcbf9--- /dev/null+++ b/agents/07-github-issue-triager/.env.example@@ -0,0 +1,3 @@+OPENAI_API_KEY=your_openai_api_key_here+# Optional: increases GitHub API rate limit+GITHUB_TOKEN=your_github_token_herediff --git a/agents/07-github-issue-triager/README.md b/agents/07-github-issue-triager/README.mdnew file mode 100644index 0000000..93e75ce--- /dev/null+++ b/agents/07-github-issue-triager/README.md@@ -0,0 +1,33 @@+# GitHub Issue Triager++Automatically triages GitHub issues: assigns severity, category, labels, and routing recommendations.++**Framework**: LangChain+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# From a GitHub URL+python agent.py --issue-url https://github.com/owner/repo/issues/123++# From title + body text+python agent.py --title "App crashes on login" --body "Steps: 1. Open app 2. Click login 3. App crashes"+```++## Output++```+🔴 Severity: CRITICAL (Priority: 9/10)+📁 Category: bug+👤 Assignee: backend team+🏷️ Labels: bug, critical, authentication+📝 Summary: Authentication crash affecting all users on login+```diff --git a/agents/07-github-issue-triager/agent.py b/agents/07-github-issue-triager/agent.pynew file mode 100644index 0000000..0d28fc6--- /dev/null+++ b/agents/07-github-issue-triager/agent.py@@ -0,0 +1,107 @@+"""+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++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 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)+++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"], "⚪")++ 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']}")+++if __name__ == "__main__":+ main()diff --git a/agents/07-github-issue-triager/metadata.yaml b/agents/07-github-issue-triager/metadata.yamlnew file mode 100644index 0000000..e7e2123--- /dev/null+++ b/agents/07-github-issue-triager/metadata.yaml@@ -0,0 +1,11 @@+title: github-issue-triager+description: Automatically triages GitHub issues with severity, category, and routing recommendations+author: ashishpatel26+language: python+framework: langchain+tags: [github, devops, triage, issue-management, automation]+industry: software-development+difficulty: intermediate+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/07-github-issue-triager/requirements.txt b/agents/07-github-issue-triager/requirements.txtnew file mode 100644index 0000000..d00535c--- /dev/null+++ b/agents/07-github-issue-triager/requirements.txt@@ -0,0 +1,4 @@+langchain==0.3.0+langchain-openai==0.2.0+requests==2.32.3+python-dotenv==1.0.1diff --git a/agents/08-data-analysis-agent/.env.example b/agents/08-data-analysis-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/08-data-analysis-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/08-data-analysis-agent/README.md b/agents/08-data-analysis-agent/README.mdnew file mode 100644index 0000000..4378fe5--- /dev/null+++ b/agents/08-data-analysis-agent/README.md@@ -0,0 +1,33 @@+# 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++# Your own data+python agent.py --file your_data.csv++# Single question+python agent.py --file sales.csv --question "What is the monthly revenue trend?"+```++## 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 --git a/agents/08-data-analysis-agent/agent.py b/agents/08-data-analysis-agent/agent.pynew file mode 100644index 0000000..e0a023b--- /dev/null+++ b/agents/08-data-analysis-agent/agent.py@@ -0,0 +1,96 @@+"""+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)")+ 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")++ llm = ChatOpenAI(model="gpt-4o", temperature=0)+ agent = create_pandas_dataframe_agent(+ llm,+ df,+ verbose=False,+ allow_dangerous_code=True,+ )++ 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 --git a/agents/08-data-analysis-agent/metadata.yaml b/agents/08-data-analysis-agent/metadata.yamlnew file mode 100644index 0000000..26d1a7d--- /dev/null+++ b/agents/08-data-analysis-agent/metadata.yaml@@ -0,0 +1,11 @@+title: data-analysis-agent+description: Chat with CSV/Excel data using natural language queries powered by pandas+author: ashishpatel26+language: python+framework: langchain+tags: [data-analysis, pandas, csv, analytics, natural-language]+industry: analytics+difficulty: intermediate+llm: gpt-4o+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/08-data-analysis-agent/requirements.txt b/agents/08-data-analysis-agent/requirements.txtnew file mode 100644index 0000000..4f2b182--- /dev/null+++ b/agents/08-data-analysis-agent/requirements.txt@@ -0,0 +1,6 @@+langchain==0.3.0+langchain-openai==0.2.0+langchain-experimental==0.3.0+pandas==2.2.0+openpyxl==3.1.5+python-dotenv==1.0.1diff --git a/agents/09-resume-parser-agent/.env.example b/agents/09-resume-parser-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/09-resume-parser-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/09-resume-parser-agent/README.md b/agents/09-resume-parser-agent/README.mdnew file mode 100644index 0000000..a12c753--- /dev/null+++ b/agents/09-resume-parser-agent/README.md@@ -0,0 +1,33 @@+# Resume Parser Agent++Parses resumes (TXT or PDF) into structured JSON and optionally scores candidate fit against a job description.++**Framework**: LangChain+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Parse only (uses built-in sample resume)+python agent.py++# Parse your resume+python agent.py --resume path/to/resume.pdf++# Parse + fit score+python agent.py --resume resume.pdf --job-desc "Senior Python Engineer with K8s experience..."+```++## Output includes++- Structured JSON: name, email, skills, experience, education+- Candidate summary+- Fit score (0-100) vs job description+- Hire/Consider/Pass recommendationdiff --git a/agents/09-resume-parser-agent/agent.py b/agents/09-resume-parser-agent/agent.pynew file mode 100644index 0000000..9bfda87--- /dev/null+++ b/agents/09-resume-parser-agent/agent.py@@ -0,0 +1,161 @@+"""+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++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 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)+++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)+++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])}")+ print(f"⚠️ Gaps: {', '.join(fit.get('gaps', ['None identified'])[:3])}")+ print(f"🎯 Recommendation: {fit['recommendation']}")+ print(f"💭 {fit['recommendation_reason']}")+++if __name__ == "__main__":+ main()diff --git a/agents/09-resume-parser-agent/metadata.yaml b/agents/09-resume-parser-agent/metadata.yamlnew file mode 100644index 0000000..90e6399--- /dev/null+++ b/agents/09-resume-parser-agent/metadata.yaml@@ -0,0 +1,11 @@+title: resume-parser-agent+description: Parses resumes to structured JSON and scores candidate fit against job descriptions+author: ashishpatel26+language: python+framework: langchain+tags: [hr, recruitment, resume, nlp, parsing]+industry: human-resources+difficulty: beginner+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/09-resume-parser-agent/requirements.txt b/agents/09-resume-parser-agent/requirements.txtnew file mode 100644index 0000000..2167636--- /dev/null+++ b/agents/09-resume-parser-agent/requirements.txt@@ -0,0 +1,4 @@+langchain==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1+pypdf==4.3.1diff --git a/agents/10-meeting-notes-agent/.env.example b/agents/10-meeting-notes-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/10-meeting-notes-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/10-meeting-notes-agent/README.md b/agents/10-meeting-notes-agent/README.mdnew file mode 100644index 0000000..cee606b--- /dev/null+++ b/agents/10-meeting-notes-agent/README.md@@ -0,0 +1,35 @@+# 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..."+```++## Output++Saves structured markdown to `meeting_notes.md` with:+- Executive summary+- Key decisions+- Action items with owners and due dates+- Blockers+- Next meeting timediff --git a/agents/10-meeting-notes-agent/agent.py b/agents/10-meeting-notes-agent/agent.pynew file mode 100644index 0000000..16ae03e--- /dev/null+++ b/agents/10-meeting-notes-agent/agent.py@@ -0,0 +1,136 @@+"""+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++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 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)+++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']}")++ 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")+ 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"+ with open(output_file, "w") as f:+ f.write(formatted)+ print(f"\n✅ Saved to: {output_file}")+++if __name__ == "__main__":+ main()diff --git a/agents/10-meeting-notes-agent/metadata.yaml b/agents/10-meeting-notes-agent/metadata.yamlnew file mode 100644index 0000000..3f9022c--- /dev/null+++ b/agents/10-meeting-notes-agent/metadata.yaml@@ -0,0 +1,11 @@+title: meeting-notes-agent+description: Converts meeting transcripts into structured notes with action items and decisions+author: ashishpatel26+language: python+framework: langchain+tags: [productivity, meetings, summarization, action-items]+industry: productivity+difficulty: beginner+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/10-meeting-notes-agent/requirements.txt b/agents/10-meeting-notes-agent/requirements.txtnew file mode 100644index 0000000..560b01a--- /dev/null+++ b/agents/10-meeting-notes-agent/requirements.txt@@ -0,0 +1,3 @@+langchain==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/11-stock-research-agent/.env.example b/agents/11-stock-research-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/11-stock-research-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/11-stock-research-agent/README.md b/agents/11-stock-research-agent/README.mdnew file mode 100644index 0000000..1d9bfbe--- /dev/null+++ b/agents/11-stock-research-agent/README.md@@ -0,0 +1,26 @@+# Stock Research Agent++Fetches real-time stock data via Yahoo Finance and generates an AI-powered investment analysis.++**Framework**: LangChain+**LLM**: GPT-4o-mini+**Data**: Yahoo Finance (free, no API key needed)++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+python agent.py --ticker AAPL+python agent.py --ticker NVDA+python agent.py --ticker TSLA+```++## Output++Real-time fundamentals + AI analysis covering investment thesis, strengths, risks, valuation, and verdict.diff --git a/agents/11-stock-research-agent/agent.py b/agents/11-stock-research-agent/agent.pynew file mode 100644index 0000000..78e375b--- /dev/null+++ b/agents/11-stock-research-agent/agent.py@@ -0,0 +1,108 @@+"""+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+"""++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')}")++ print("\n🤖 AI Analysis:")+ print("-" * 40)+ analysis = analyze_stock(data)+ print(analysis)+++if __name__ == "__main__":+ main()diff --git a/agents/11-stock-research-agent/metadata.yaml b/agents/11-stock-research-agent/metadata.yamlnew file mode 100644index 0000000..f4099b8--- /dev/null+++ b/agents/11-stock-research-agent/metadata.yaml@@ -0,0 +1,11 @@+title: stock-research-agent+description: Real-time stock fundamentals with AI-powered investment analysis+author: ashishpatel26+language: python+framework: langchain+tags: [finance, stocks, investment, yfinance, analysis]+industry: finance+difficulty: intermediate+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/11-stock-research-agent/requirements.txt b/agents/11-stock-research-agent/requirements.txtnew file mode 100644index 0000000..1b7aac2--- /dev/null+++ b/agents/11-stock-research-agent/requirements.txt@@ -0,0 +1,4 @@+langchain==0.3.0+langchain-openai==0.2.0+yfinance==0.2.44+python-dotenv==1.0.1diff --git a/agents/12-travel-planner-agent/.env.example b/agents/12-travel-planner-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/12-travel-planner-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/12-travel-planner-agent/README.md b/agents/12-travel-planner-agent/README.mdnew file mode 100644index 0000000..970ef85--- /dev/null+++ b/agents/12-travel-planner-agent/README.md@@ -0,0 +1,20 @@+# Travel Planner Agent++Three-agent CrewAI system that creates personalized travel itineraries with destination research, day-by-day plans, and budget breakdown.++**Framework**: CrewAI+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+python agent.py --destination "Tokyo, Japan" --days 7 --budget 3000+python agent.py --destination "Paris, France" --days 5 --budget 5000 --interests "art, wine, architecture"+```diff --git a/agents/12-travel-planner-agent/agent.py b/agents/12-travel-planner-agent/agent.pynew file mode 100644index 0000000..b5e747a--- /dev/null+++ b/agents/12-travel-planner-agent/agent.py@@ -0,0 +1,106 @@+"""+Travel Planner Agent using CrewAI.++Multi-agent crew that creates personalized travel itineraries:+- Destination Researcher: gathers destination info+- Activity Planner: creates day-by-day activities+- Budget Analyst: estimates costs++Usage:+ python agent.py --destination "Tokyo, Japan" --days 5 --budget 2000+"""++import argparse+import os++from crewai import Agent, Crew, Process, Task+from dotenv import load_dotenv+from langchain_openai import ChatOpenAI++load_dotenv()+++def build_travel_crew(destination: str, days: int, budget: float, interests: str) -> str:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.4)++ researcher = Agent(+ role="Destination Researcher",+ goal=f"Research {destination} and provide key travel insights",+ backstory="Expert travel journalist who has visited 100+ countries. Knows the best hidden gems and practical tips.",+ llm=llm,+ verbose=False,+ )++ planner = Agent(+ role="Travel Itinerary Planner",+ goal=f"Create a detailed {days}-day itinerary for {destination}",+ backstory="Luxury travel consultant with 15 years of experience crafting personalized itineraries.",+ llm=llm,+ verbose=False,+ )++ budget_analyst = Agent(+ role="Travel Budget Analyst",+ goal=f"Estimate realistic costs for the trip within ${budget} budget",+ backstory="Financial travel advisor who helps travelers maximize experiences within budget.",+ llm=llm,+ verbose=False,+ )++ research_task = Task(+ description=f"""Research {destination} for a {days}-day trip.+Cover: best time to visit, neighborhoods to stay in, must-see attractions,+local food scene, transportation tips, and cultural customs to know.+Traveler interests: {interests}""",+ agent=researcher,+ expected_output="Destination brief with key areas, attractions, food, and practical tips",+ )++ planning_task = Task(+ description=f"""Create a {days}-day itinerary for {destination}.+Budget: ${budget} total. Interests: {interests}.+Include morning/afternoon/evening activities, specific restaurant recommendations,+and travel time between locations. Make it achievable and enjoyable.""",+ agent=planner,+ expected_output=f"Day-by-day {days}-day itinerary with activities, meals, and timing",+ context=[research_task],+ )++ budget_task = Task(+ description=f"""Provide a budget breakdown for the {days}-day {destination} trip.+Total budget: ${budget}. Include: flights (estimate), accommodation, food, activities,+transportation. Flag if budget is tight and suggest adjustments.""",+ agent=budget_analyst,+ expected_output="Itemized budget breakdown with daily averages and money-saving tips",+ context=[research_task, planning_task],+ )++ crew = Crew(+ agents=[researcher, planner, budget_analyst],+ tasks=[research_task, planning_task, budget_task],+ process=Process.sequential,+ verbose=False,+ )++ return str(crew.kickoff())+++def main():+ parser = argparse.ArgumentParser(description="Travel Planner Agent")+ parser.add_argument("--destination", default="Tokyo, Japan", help="Travel destination")+ parser.add_argument("--days", type=int, default=7, help="Number of days")+ parser.add_argument("--budget", type=float, default=3000, help="Total budget in USD")+ parser.add_argument("--interests", default="food, culture, history", help="Traveler interests")+ args = parser.parse_args()++ print(f"\n✈️ Planning {args.days}-day trip to {args.destination} (Budget: ${args.budget})\n")+ itinerary = build_travel_crew(args.destination, args.days, args.budget, args.interests)++ print("=" * 60)+ print("🗺️ TRAVEL ITINERARY")+ print("=" * 60)+ print(itinerary)+++if __name__ == "__main__":+ main()diff --git a/agents/12-travel-planner-agent/metadata.yaml b/agents/12-travel-planner-agent/metadata.yamlnew file mode 100644index 0000000..2a565be--- /dev/null+++ b/agents/12-travel-planner-agent/metadata.yaml@@ -0,0 +1,11 @@+title: travel-planner-agent+description: Multi-agent CrewAI system creating personalized travel itineraries with budget planning+author: ashishpatel26+language: python+framework: crewai+tags: [travel, planning, crewai, itinerary, budget]+industry: travel+difficulty: intermediate+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/12-travel-planner-agent/requirements.txt b/agents/12-travel-planner-agent/requirements.txtnew file mode 100644index 0000000..fc83995--- /dev/null+++ b/agents/12-travel-planner-agent/requirements.txt@@ -0,0 +1,3 @@+crewai==0.80.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/13-customer-support-agent/.env.example b/agents/13-customer-support-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/13-customer-support-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/13-customer-support-agent/README.md b/agents/13-customer-support-agent/README.mdnew file mode 100644index 0000000..ab5659d--- /dev/null+++ b/agents/13-customer-support-agent/README.md@@ -0,0 +1,26 @@+# 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+```++## 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 --git a/agents/13-customer-support-agent/agent.py b/agents/13-customer-support-agent/agent.pynew file mode 100644index 0000000..3f0223a--- /dev/null+++ b/agents/13-customer-support-agent/agent.py@@ -0,0 +1,132 @@+"""+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 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+ 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 main():+ parser = argparse.ArgumentParser(description="Customer Support Agent")+ args = parser.parse_args()++ 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 --git a/agents/13-customer-support-agent/metadata.yaml b/agents/13-customer-support-agent/metadata.yamlnew file mode 100644index 0000000..e98d7b5--- /dev/null+++ b/agents/13-customer-support-agent/metadata.yaml@@ -0,0 +1,11 @@+title: customer-support-agent+description: RAG-powered customer support agent with escalation routing using LangGraph+author: ashishpatel26+language: python+framework: langgraph+tags: [customer-support, rag, langgraph, faiss, escalation]+industry: customer-service+difficulty: advanced+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/13-customer-support-agent/requirements.txt b/agents/13-customer-support-agent/requirements.txtnew file mode 100644index 0000000..7eb92e7--- /dev/null+++ b/agents/13-customer-support-agent/requirements.txt@@ -0,0 +1,7 @@+langchain==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 --git a/agents/14-social-media-agent/.env.example b/agents/14-social-media-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/14-social-media-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/14-social-media-agent/README.md b/agents/14-social-media-agent/README.mdnew file mode 100644index 0000000..fc2b226--- /dev/null+++ b/agents/14-social-media-agent/README.md@@ -0,0 +1,20 @@+# Social Media Content Agent++Generates platform-optimized social media content (Twitter/X, LinkedIn, Instagram) from any topic.++**Framework**: CrewAI+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+python agent.py --topic "The future of remote work"+python agent.py --topic "Product launch announcement" --brand "YourBrand" --platforms "twitter,linkedin"+```diff --git a/agents/14-social-media-agent/agent.py b/agents/14-social-media-agent/agent.pynew file mode 100644index 0000000..4b3ac33--- /dev/null+++ b/agents/14-social-media-agent/agent.py@@ -0,0 +1,95 @@+"""+Social Media Content Agent using CrewAI.++Generates platform-optimized content (Twitter/X, LinkedIn, Instagram)+from a topic or article URL.++Usage:+ python agent.py --topic "The rise of AI agents in 2025"+ python agent.py --topic "New product launch: CloudSync Pro v3" --brand "CloudSync"+"""++import argparse+import os++from crewai import Agent, Crew, Process, Task+from dotenv import load_dotenv+from langchain_openai import ChatOpenAI++load_dotenv()+++def generate_social_content(topic: str, brand: str, platforms: list[str]) -> str:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.7)++ strategist = Agent(+ role="Social Media Strategist",+ goal="Analyze the topic and define the key message, target audience, and tone for each platform",+ backstory="Award-winning social media strategist who has grown 50+ brand accounts to 100k+ followers.",+ llm=llm,+ verbose=False,+ )++ writer = Agent(+ role="Social Media Copywriter",+ goal="Write engaging, platform-optimized content that drives engagement",+ backstory="Viral content creator with expertise in platform-specific formats, hashtags, and hooks.",+ llm=llm,+ verbose=False,+ )++ strategy_task = Task(+ description=f"""Analyze this topic for social media: "{topic}"+Brand: {brand or 'Not specified'}+Platforms: {', '.join(platforms)}+Define: core message, target audience, emotional hook, 5 relevant hashtags.""",+ agent=strategist,+ expected_output="Content strategy: message, audience, hook, and hashtags",+ )++ writing_task = Task(+ description=f"""Write social media posts for: {', '.join(platforms)}+Topic: {topic}. Brand: {brand or 'General'}.++For each platform:+- Twitter/X: 2 tweet variations (under 280 chars each) + thread opener+- LinkedIn: Professional post (150-200 words) with storytelling hook+- Instagram: Caption (100-150 words) + 15 hashtags++Make them platform-native — Twitter punchy, LinkedIn thoughtful, Instagram visual.""",+ agent=writer,+ expected_output="Platform-optimized posts for all requested platforms",+ context=[strategy_task],+ )++ crew = Crew(+ agents=[strategist, writer],+ tasks=[strategy_task, writing_task],+ process=Process.sequential,+ verbose=False,+ )++ return str(crew.kickoff())+++def main():+ parser = argparse.ArgumentParser(description="Social Media Content Agent")+ parser.add_argument("--topic", default="How AI is transforming software development in 2025", help="Content topic")+ parser.add_argument("--brand", default="", help="Brand name (optional)")+ parser.add_argument("--platforms", default="twitter,linkedin,instagram", help="Comma-separated platforms")+ args = parser.parse_args()++ platforms = [p.strip() for p in args.platforms.split(",")]+ print(f"\n📱 Generating content for: {', '.join(platforms)}")+ print(f"📌 Topic: {args.topic}\n")++ content = generate_social_content(args.topic, args.brand, platforms)++ print("=" * 60)+ print("✍️ SOCIAL MEDIA CONTENT")+ print("=" * 60)+ print(content)+++if __name__ == "__main__":+ main()diff --git a/agents/14-social-media-agent/metadata.yaml b/agents/14-social-media-agent/metadata.yamlnew file mode 100644index 0000000..c7d706f--- /dev/null+++ b/agents/14-social-media-agent/metadata.yaml@@ -0,0 +1,11 @@+title: social-media-content-agent+description: Generates platform-optimized content for Twitter, LinkedIn, and Instagram+author: ashishpatel26+language: python+framework: crewai+tags: [social-media, content, marketing, crewai, copywriting]+industry: marketing+difficulty: beginner+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/14-social-media-agent/requirements.txt b/agents/14-social-media-agent/requirements.txtnew file mode 100644index 0000000..fc83995--- /dev/null+++ b/agents/14-social-media-agent/requirements.txt@@ -0,0 +1,3 @@+crewai==0.80.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/15-unit-test-generator/.env.example b/agents/15-unit-test-generator/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/15-unit-test-generator/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/15-unit-test-generator/README.md b/agents/15-unit-test-generator/README.mdnew file mode 100644index 0000000..67f2090--- /dev/null+++ b/agents/15-unit-test-generator/README.md@@ -0,0 +1,31 @@+# Unit Test Generator Agent++Analyzes Python code and generates comprehensive pytest test suites — happy paths, edge cases, and error conditions.++**Framework**: LangChain+**LLM**: GPT-4o++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Generate tests for a Python file+python agent.py --file my_module.py++# Generate tests for inline code+python agent.py --code "def divide(a, b): return a / b"++# Specify output file+python agent.py --file utils.py --output tests/test_utils.py+```++## Example++Input: `shopping_cart.py` with add_item, remove_item, total methods+Output: `test_shopping.py` with 20+ pytest tests using fixtures, parametrize, and mockingdiff --git a/agents/15-unit-test-generator/agent.py b/agents/15-unit-test-generator/agent.pynew file mode 100644index 0000000..8e98223--- /dev/null+++ b/agents/15-unit-test-generator/agent.py@@ -0,0 +1,128 @@+"""+Unit Test Generator Agent.++Analyzes Python code and generates comprehensive pytest test suites+covering happy paths, edge cases, and error conditions.++Usage:+ python agent.py --file path/to/module.py+ python agent.py --code "def calculate_bmi(weight, height): return weight / height**2"+"""++import argparse+import os++from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()++TEST_PROMPT = """You are an expert Python test engineer. Generate a comprehensive pytest test suite for the provided code.++Requirements:+1. Use pytest fixtures where appropriate+2. Test happy paths (normal expected inputs)+3. Test edge cases (boundary values, empty inputs)+4. Test error conditions (invalid inputs, exceptions)+5. Use descriptive test names: `test_function_name_scenario`+6. Add brief docstrings to each test+7. Use `pytest.mark.parametrize` for repetitive tests+8. Mock external dependencies (API calls, file I/O, DB)+9. Aim for 90%+ code coverage++Output ONLY the complete test file content, ready to run with `pytest`."""++SAMPLE_CODE = '''+def calculate_discount(price: float, discount_percent: float) -> float:+ """Calculate discounted price."""+ if price < 0:+ raise ValueError("Price cannot be negative")+ if not 0 <= discount_percent <= 100:+ raise ValueError("Discount must be between 0 and 100")+ return price * (1 - discount_percent / 100)+++def find_longest_word(text: str) -> str:+ """Find the longest word in a text string."""+ if not text or not text.strip():+ return ""+ words = text.split()+ return max(words, key=len)+++class ShoppingCart:+ def __init__(self):+ self.items = {}++ def add_item(self, name: str, price: float, quantity: int = 1):+ if price < 0:+ raise ValueError("Price cannot be negative")+ if quantity < 1:+ raise ValueError("Quantity must be at least 1")+ if name in self.items:+ self.items[name]["quantity"] += quantity+ else:+ self.items[name] = {"price": price, "quantity": quantity}++ def remove_item(self, name: str):+ if name not in self.items:+ raise KeyError(f"Item '{name}' not in cart")+ del self.items[name]++ def total(self) -> float:+ return sum(item["price"] * item["quantity"] for item in self.items.values())+'''+++def generate_tests(code: str, filename: str = "module") -> str:+ llm = ChatOpenAI(model="gpt-4o", temperature=0)+ messages = [+ SystemMessage(content=TEST_PROMPT),+ HumanMessage(content=f"Generate tests for this Python code (from `{filename}`):\n\n```python\n{code}\n```"),+ ]+ response = llm.invoke(messages)+ return response.content+++def main():+ parser = argparse.ArgumentParser(description="Unit Test Generator")+ group = parser.add_mutually_exclusive_group()+ group.add_argument("--file", help="Python file to generate tests for")+ group.add_argument("--code", help="Inline code to generate tests for")+ parser.add_argument("--output", help="Output file path (default: test_<name>.py)")+ args = parser.parse_args()++ if args.file:+ with open(args.file) as f:+ code = f.read()+ module_name = os.path.splitext(os.path.basename(args.file))[0]+ print(f"\n🧪 Generating tests for: {args.file}")+ elif args.code:+ code = args.code+ module_name = "module"+ print(f"\n🧪 Generating tests for inline code")+ else:+ code = SAMPLE_CODE+ module_name = "shopping"+ print(f"\n🧪 Generating tests for sample code")++ tests = generate_tests(code, module_name)++ # Clean up markdown fences if present+ if tests.startswith("```"):+ lines = tests.split("\n")+ tests = "\n".join(lines[1:-1] if lines[-1] == "```" else lines[1:])++ output_file = args.output or f"test_{module_name}.py"+ with open(output_file, "w") as f:+ f.write(tests)++ print(f"\n✅ Tests saved to: {output_file}")+ print(f"\nRun with: pytest {output_file} -v")+ print("\n" + "=" * 60)+ print(tests[:500] + "..." if len(tests) > 500 else tests)+++if __name__ == "__main__":+ main()diff --git a/agents/15-unit-test-generator/metadata.yaml b/agents/15-unit-test-generator/metadata.yamlnew file mode 100644index 0000000..77e27ed--- /dev/null+++ b/agents/15-unit-test-generator/metadata.yaml@@ -0,0 +1,11 @@+title: unit-test-generator-agent+description: Generates comprehensive pytest test suites from Python code+author: ashishpatel26+language: python+framework: langchain+tags: [testing, pytest, code-quality, automation, software-development]+industry: software-development+difficulty: intermediate+llm: gpt-4o+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/15-unit-test-generator/requirements.txt b/agents/15-unit-test-generator/requirements.txtnew file mode 100644index 0000000..7efd7d3--- /dev/null+++ b/agents/15-unit-test-generator/requirements.txt@@ -0,0 +1,4 @@+langchain==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1+pytest==8.3.0diff --git a/agents/16-documentation-writer/.env.example b/agents/16-documentation-writer/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/16-documentation-writer/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/16-documentation-writer/README.md b/agents/16-documentation-writer/README.mdnew file mode 100644index 0000000..a6cb2dc--- /dev/null+++ b/agents/16-documentation-writer/README.md@@ -0,0 +1,26 @@+# Documentation Writer Agent++Generates comprehensive documentation for Python modules: README, API reference, and Google-style docstrings.++**Framework**: LangChain+**LLM**: GPT-4o++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Generate README + docstrings+python agent.py --file my_module.py++# README only+python agent.py --file utils.py --format readme++# Docstrings only+python agent.py --file api.py --format docstrings+```diff --git a/agents/16-documentation-writer/agent.py b/agents/16-documentation-writer/agent.pynew file mode 100644index 0000000..95b7869--- /dev/null+++ b/agents/16-documentation-writer/agent.py@@ -0,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 = '''+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 --git a/agents/16-documentation-writer/metadata.yaml b/agents/16-documentation-writer/metadata.yamlnew file mode 100644index 0000000..b8c249d--- /dev/null+++ b/agents/16-documentation-writer/metadata.yaml@@ -0,0 +1,11 @@+title: documentation-writer-agent+description: Generates README and docstrings for Python modules+author: ashishpatel26+language: python+framework: langchain+tags: [documentation, docstrings, readme, software-development]+industry: software-development+difficulty: intermediate+llm: gpt-4o+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/16-documentation-writer/requirements.txt b/agents/16-documentation-writer/requirements.txtnew file mode 100644index 0000000..560b01a--- /dev/null+++ b/agents/16-documentation-writer/requirements.txt@@ -0,0 +1,3 @@+langchain==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/17-recipe-agent/.env.example b/agents/17-recipe-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/17-recipe-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/17-recipe-agent/README.md b/agents/17-recipe-agent/README.mdnew file mode 100644index 0000000..446ea4e--- /dev/null+++ b/agents/17-recipe-agent/README.md@@ -0,0 +1,21 @@+# Recipe Recommendation Agent++Suggests 3 recipes from your available ingredients with full instructions, nutritional info, and chef tips.++**Framework**: LangChain+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+python agent.py --ingredients "chicken, garlic, lemon, rosemary"+python agent.py --ingredients "tofu, broccoli, ginger, soy sauce" --diet vegan --time 20+python agent.py --ingredients "pasta, tomatoes, basil, parmesan" --servings 4+```diff --git a/agents/17-recipe-agent/agent.py b/agents/17-recipe-agent/agent.pynew file mode 100644index 0000000..16ceac3--- /dev/null+++ b/agents/17-recipe-agent/agent.py@@ -0,0 +1,111 @@+"""+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++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 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)+++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📝 Ingredients:")+ for ing in recipe["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):+ 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"]))+ print("=" * 60)++ for recipe in result["recipes"]:+ display_recipe(recipe)+ print("\n" + "-" * 40)+++if __name__ == "__main__":+ main()diff --git a/agents/17-recipe-agent/metadata.yaml b/agents/17-recipe-agent/metadata.yamlnew file mode 100644index 0000000..040bacf--- /dev/null+++ b/agents/17-recipe-agent/metadata.yaml@@ -0,0 +1,11 @@+title: recipe-recommendation-agent+description: Suggests recipes from available ingredients with instructions and nutrition info+author: ashishpatel26+language: python+framework: langchain+tags: [recipes, food, nutrition, recommendation]+industry: food+difficulty: beginner+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/17-recipe-agent/requirements.txt b/agents/17-recipe-agent/requirements.txtnew file mode 100644index 0000000..560b01a--- /dev/null+++ b/agents/17-recipe-agent/requirements.txt@@ -0,0 +1,3 @@+langchain==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/18-job-application-agent/.env.example b/agents/18-job-application-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/18-job-application-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/18-job-application-agent/README.md b/agents/18-job-application-agent/README.mdnew file mode 100644index 0000000..c9eed22--- /dev/null+++ b/agents/18-job-application-agent/README.md@@ -0,0 +1,32 @@+# Job Application Agent++CrewAI agent that generates a complete job application package: cover letter, tailored resume bullets, interview questions, and salary range.++**Framework**: CrewAI+**LLM**: GPT-4o-mini++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+# Uses built-in sample+python agent.py++# Your own job + profile+python agent.py \+ --job-desc "$(cat job_posting.txt)" \+ --candidate "$(cat my_profile.txt)"+```++## Output includes++- Tailored cover letter (250-300 words)+- Top 5 resume bullets to highlight+- 10 interview questions with answer frameworks+- Salary negotiation rangediff --git a/agents/18-job-application-agent/agent.py b/agents/18-job-application-agent/agent.pynew file mode 100644index 0000000..4376340--- /dev/null+++ b/agents/18-job-application-agent/agent.py@@ -0,0 +1,121 @@+"""+Job Application Agent using CrewAI.++Analyzes a job description and a candidate profile, then generates:+- Tailored cover letter+- Resume bullet points to highlight+- Interview preparation questions++Usage:+ python agent.py --job-desc "Senior Python Engineer at Stripe..." --candidate "7 years Python, FastAPI..."+"""++import argparse+import os++from crewai import Agent, Crew, Process, Task+from dotenv import load_dotenv+from langchain_openai import ChatOpenAI++load_dotenv()++SAMPLE_JOB = """Senior Python Engineer at Stripe+We're looking for a Senior Python Engineer to join our API Platform team.++Requirements:+- 5+ years Python development+- Experience with distributed systems+- Strong understanding of REST APIs and microservices+- Experience with PostgreSQL, Redis+- Kubernetes experience preferred+- Strong communication skills++Responsibilities:+- Design and build high-performance APIs handling millions of requests/day+- Lead technical design reviews+- Mentor junior engineers+- Collaborate with product managers on technical feasibility+"""++SAMPLE_CANDIDATE = """+Jane Doe — 7 years Python experience+Current role: Senior Software Engineer at DataCorp+Skills: Python, FastAPI, Django, PostgreSQL, Redis, Docker, Kubernetes, AWS+Achievements:+- Built API platform handling 5M requests/day+- Led team of 4 engineers+- Reduced API latency by 40%+- Mentored 3 junior engineers+Education: BS Computer Science, UC Berkeley+"""+++def run_job_application_crew(job_desc: str, candidate_profile: str) -> str:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.4)++ analyst = Agent(+ role="Job Requirements Analyst",+ goal="Analyze the job description and identify key requirements, values, and culture signals",+ backstory="Ex-hiring manager at FAANG with 10 years recruiting experience. Expert at decoding job descriptions.",+ llm=llm,+ verbose=False,+ )++ writer = Agent(+ role="Career Coach and Application Writer",+ goal="Create tailored application materials that maximize interview chances",+ backstory="Career coach who has helped 500+ candidates land roles at top tech companies.",+ llm=llm,+ verbose=False,+ )++ analyst_task = Task(+ description=f"""Analyze this job description:+{job_desc}++Extract: top 5 required skills, culture signals, what this company values most, potential red flags, and key phrases to mirror in the application.""",+ agent=analyst,+ expected_output="Job analysis: key requirements, culture signals, important keywords",+ )++ application_task = Task(+ description=f"""Using the job analysis, create application materials for this candidate:+{candidate_profile}++Produce:+1. COVER LETTER (250-300 words, 3 paragraphs: hook, evidence, close)+2. TOP 5 RESUME BULLETS TO HIGHLIGHT (tailored to this specific role)+3. 10 LIKELY INTERVIEW QUESTIONS (5 behavioral, 5 technical) with suggested answer frameworks+4. NEGOTIATION RANGE ESTIMATE based on role seniority and company""",+ agent=writer,+ expected_output="Cover letter, resume bullets, interview questions, salary range",+ context=[analyst_task],+ )++ crew = Crew(+ agents=[analyst, writer],+ tasks=[analyst_task, application_task],+ process=Process.sequential,+ verbose=False,+ )++ return str(crew.kickoff())+++def main():+ parser = argparse.ArgumentParser(description="Job Application Agent")+ parser.add_argument("--job-desc", default=SAMPLE_JOB, help="Job description text")+ parser.add_argument("--candidate", default=SAMPLE_CANDIDATE, help="Candidate profile summary")+ args = parser.parse_args()++ print("\n💼 Preparing job application materials...\n")+ result = run_job_application_crew(args.job_desc, args.candidate)++ print("=" * 60)+ print("📋 JOB APPLICATION PACKAGE")+ print("=" * 60)+ print(result)+++if __name__ == "__main__":+ main()diff --git a/agents/18-job-application-agent/metadata.yaml b/agents/18-job-application-agent/metadata.yamlnew file mode 100644index 0000000..661b731--- /dev/null+++ b/agents/18-job-application-agent/metadata.yaml@@ -0,0 +1,11 @@+title: job-application-agent+description: Generates cover letter, interview prep, and salary range from job description + candidate profile+author: ashishpatel26+language: python+framework: crewai+tags: [hr, job-search, cover-letter, interview-prep, recruitment]+industry: human-resources+difficulty: intermediate+llm: gpt-4o-mini+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/18-job-application-agent/requirements.txt b/agents/18-job-application-agent/requirements.txtnew file mode 100644index 0000000..fc83995--- /dev/null+++ b/agents/18-job-application-agent/requirements.txt@@ -0,0 +1,3 @@+crewai==0.80.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/19-competitive-analysis-agent/.env.example b/agents/19-competitive-analysis-agent/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/19-competitive-analysis-agent/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/19-competitive-analysis-agent/README.md b/agents/19-competitive-analysis-agent/README.mdnew file mode 100644index 0000000..26260bc--- /dev/null+++ b/agents/19-competitive-analysis-agent/README.md@@ -0,0 +1,29 @@+# Competitive Analysis Agent++LangGraph multi-step agent that identifies competitors, analyzes each one, and generates a strategic competitive report.++**Framework**: LangGraph+**LLM**: GPT-4o-mini + GPT-4o++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+python agent.py --company "Notion" --industry "productivity software"+python agent.py --company "Stripe" --industry "payment processing"+python agent.py --company "Figma" --industry "design tools"+```++## Output++- 5 competitor analyses+- Executive summary+- Market gaps and opportunities+- 5 strategic recommendations+- Threat assessment by competitordiff --git a/agents/19-competitive-analysis-agent/agent.py b/agents/19-competitive-analysis-agent/agent.pynew file mode 100644index 0000000..b8314d9--- /dev/null+++ b/agents/19-competitive-analysis-agent/agent.py@@ -0,0 +1,118 @@+"""+Competitive Analysis Agent using LangGraph.++Multi-step agent that analyzes competitors:+1. Identifies key competitors+2. Analyzes each competitor's strengths/weaknesses+3. Generates competitive positioning recommendations++Usage:+ python agent.py --company "Notion" --industry "productivity software"+"""++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 langgraph.graph import END, StateGraph+from langgraph.graph.message import add_messages++load_dotenv()+++class AnalysisState(TypedDict):+ messages: Annotated[list, add_messages]+ company: str+ industry: str+ competitors: list[str]+ competitor_analyses: dict[str, str]+ final_report: str+++def identify_competitors(state: AnalysisState) -> AnalysisState:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)+ response = llm.invoke([+ SystemMessage(content="You are a market research analyst. List exactly 5 main competitors as a comma-separated list. Nothing else."),+ HumanMessage(content=f"Company: {state['company']}\nIndustry: {state['industry']}\n\nList 5 main competitors:"),+ ])+ competitors = [c.strip() for c in response.content.split(",")][:5]+ return {"competitors": competitors, "messages": [response]}+++def analyze_competitor(state: AnalysisState) -> AnalysisState:+ llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)+ analyses = {}++ for competitor in state["competitors"]:+ response = llm.invoke([+ SystemMessage(content="Provide a concise competitive analysis in 100 words covering: main products, strengths (2), weaknesses (2), pricing model, target market."),+ HumanMessage(content=f"Analyze {competitor} vs {state['company']} in {state['industry']}:"),+ ])+ analyses[competitor] = response.content++ return {"competitor_analyses": analyses}+++def generate_report(state: AnalysisState) -> AnalysisState:+ llm = ChatOpenAI(model="gpt-4o", temperature=0)++ analyses_text = "\n\n".join(+ f"**{name}:**\n{analysis}"+ for name, analysis in state["competitor_analyses"].items()+ )++ response = llm.invoke([+ SystemMessage(content="""You are a strategic consultant. Create a competitive analysis report with:+1. Executive Summary (3 sentences)+2. Competitive Landscape Table (company, strength, weakness, price)+3. Market Gaps & Opportunities (3 bullet points)+4. Strategic Recommendations for {company} (5 action items)+5. Threat Assessment (High/Medium/Low for each competitor)""".replace("{company}", state["company"])),+ HumanMessage(content=f"Company: {state['company']}\nIndustry: {state['industry']}\n\nCompetitor analyses:\n{analyses_text}"),+ ])++ return {"final_report": response.content, "messages": [response]}+++def build_graph():+ graph = StateGraph(AnalysisState)+ graph.add_node("identify", identify_competitors)+ graph.add_node("analyze", analyze_competitor)+ graph.add_node("report", generate_report)+ graph.set_entry_point("identify")+ graph.add_edge("identify", "analyze")+ graph.add_edge("analyze", "report")+ graph.add_edge("report", END)+ return graph.compile()+++def main():+ parser = argparse.ArgumentParser(description="Competitive Analysis Agent")+ parser.add_argument("--company", default="Notion", help="Company to analyze")+ parser.add_argument("--industry", default="productivity and collaboration software", help="Industry")+ args = parser.parse_args()++ print(f"\n🔍 Analyzing competitive landscape for {args.company}...\n")++ agent = build_graph()+ result = agent.invoke({+ "company": args.company,+ "industry": args.industry,+ "messages": [],+ "competitors": [],+ "competitor_analyses": {},+ "final_report": "",+ })++ print(f"🏢 Competitors identified: {', '.join(result['competitors'])}\n")+ print("=" * 60)+ print("📊 COMPETITIVE ANALYSIS REPORT")+ print("=" * 60)+ print(result["final_report"])+++if __name__ == "__main__":+ main()diff --git a/agents/19-competitive-analysis-agent/metadata.yaml b/agents/19-competitive-analysis-agent/metadata.yamlnew file mode 100644index 0000000..5c83c51--- /dev/null+++ b/agents/19-competitive-analysis-agent/metadata.yaml@@ -0,0 +1,11 @@+title: competitive-analysis-agent+description: Multi-step LangGraph agent for comprehensive competitive landscape analysis+author: ashishpatel26+language: python+framework: langgraph+tags: [business, competitive-analysis, strategy, langgraph, market-research]+industry: business+difficulty: advanced+llm: gpt-4o+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/19-competitive-analysis-agent/requirements.txt b/agents/19-competitive-analysis-agent/requirements.txtnew file mode 100644index 0000000..3356501--- /dev/null+++ b/agents/19-competitive-analysis-agent/requirements.txt@@ -0,0 +1,4 @@+langchain==0.3.0+langchain-openai==0.2.0+langgraph==0.2.0+python-dotenv==1.0.1diff --git a/agents/20-multi-agent-debate/.env.example b/agents/20-multi-agent-debate/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/agents/20-multi-agent-debate/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/agents/20-multi-agent-debate/README.md b/agents/20-multi-agent-debate/README.mdnew file mode 100644index 0000000..79d4a79--- /dev/null+++ b/agents/20-multi-agent-debate/README.md@@ -0,0 +1,29 @@+# Multi-Agent Debate System++Two AI agents debate any topic from opposing sides, with an impartial AI judge declaring a winner.++**Framework**: LangChain (multi-agent)+**LLM**: GPT-4o-mini (debaters) + GPT-4o (judge)++## Setup++```bash+pip install -r requirements.txt+cp .env.example .env+```++## Run++```bash+python agent.py --topic "AI will eliminate more jobs than it creates"+python agent.py --topic "Remote work is better than office work" --rounds 3+python agent.py --topic "Cryptocurrency will replace fiat currency" --rounds 2+```++## Architecture++```+Topic → [PRO Agent] ↔ [CON Agent] (N rounds) → [Judge Agent] → Verdict+```++The judge scores each side and provides a balanced synthesis conclusion.diff --git a/agents/20-multi-agent-debate/agent.py b/agents/20-multi-agent-debate/agent.pynew file mode 100644index 0000000..87422e2--- /dev/null+++ b/agents/20-multi-agent-debate/agent.py@@ -0,0 +1,130 @@+"""+Multi-Agent Debate System using AutoGen-style orchestration.++Two AI agents debate a topic from opposing sides, moderated by a judge+who declares a winner and synthesizes the key arguments.++Usage:+ python agent.py --topic "AI will eliminate more jobs than it creates"+ python agent.py --topic "Remote work is better than office work" --rounds 3+"""++import argparse+import os++from dotenv import load_dotenv+from langchain_core.messages import HumanMessage, SystemMessage+from langchain_openai import ChatOpenAI++load_dotenv()+++class DebateAgent:+ def __init__(self, name: str, position: str, expertise: str):+ self.name = name+ self.position = position+ self.expertise = expertise+ self.llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.6)+ self.arguments = []++ def make_argument(self, topic: str, round_num: int, opponent_last_arg: str = "") -> str:+ system_msg = f"""You are {self.name}, a {self.expertise}.+You are arguing {self.position} on this topic.+Make compelling, evidence-based arguments. Be direct and persuasive.+Keep response under 150 words. Round {round_num}."""++ if opponent_last_arg:+ user_msg = f"Topic: {topic}\n\nYour opponent just said: '{opponent_last_arg}'\n\nRespond and advance your argument:"+ else:+ user_msg = f"Topic: {topic}\n\nMake your opening argument for {self.position.upper()}:"++ response = self.llm.invoke([+ SystemMessage(content=system_msg),+ HumanMessage(content=user_msg),+ ])+ argument = response.content+ self.arguments.append(argument)+ return argument+++class DebateJudge:+ def __init__(self):+ self.llm = ChatOpenAI(model="gpt-4o", temperature=0)++ def evaluate(self, topic: str, pro_agent: DebateAgent, con_agent: DebateAgent) -> dict:+ pro_args = "\n\n".join(f"Round {i+1}: {a}" for i, a in enumerate(pro_agent.arguments))+ con_args = "\n\n".join(f"Round {i+1}: {a}" for i, a in enumerate(con_agent.arguments))++ response = self.llm.invoke([+ SystemMessage(content="""You are an impartial debate judge. Evaluate both sides fairly.+Return a structured verdict with: winner, score (out of 10 each), strongest argument per side, key insights, and balanced synthesis conclusion."""),+ HumanMessage(content=f"""Topic: "{topic}"++PRO arguments ({pro_agent.name}):+{pro_args}++CON arguments ({con_agent.name}):+{con_args}++Provide your verdict:"""),+ ])+ return {"verdict": response.content}+++def run_debate(topic: str, rounds: int = 2) -> None:+ pro = DebateAgent(+ name="Dr. Alex Chen",+ position="FOR",+ expertise="technology economist and AI researcher"+ )+ con = DebateAgent(+ name="Prof. Sarah Martinez",+ position="AGAINST",+ expertise="labor economist and social policy expert"+ )+ judge = DebateJudge()++ print(f"\n{'='*60}")+ print(f"⚖️ DEBATE: {topic}")+ print(f"{'='*60}")+ print(f"🟢 FOR: {pro.name} ({pro.expertise})")+ print(f"🔴 AGAINST: {con.name} ({con.expertise})")+ print(f"🏛️ Rounds: {rounds}")+ print("=" * 60)++ last_con_arg = ""+ last_pro_arg = ""++ for round_num in range(1, rounds + 1):+ print(f"\n--- Round {round_num} ---\n")++ pro_arg = pro.make_argument(topic, round_num, last_con_arg)+ print(f"🟢 {pro.name} (FOR):")+ print(pro_arg)++ con_arg = con.make_argument(topic, round_num, pro_arg)+ print(f"\n🔴 {con.name} (AGAINST):")+ print(con_arg)++ last_pro_arg = pro_arg+ last_con_arg = con_arg++ print(f"\n{'='*60}")+ print("🏛️ JUDGE'S VERDICT")+ print("=" * 60)+ verdict = judge.evaluate(topic, pro, con)+ print(verdict["verdict"])+++def main():+ parser = argparse.ArgumentParser(description="Multi-Agent Debate System")+ parser.add_argument("--topic", default="AI will create more jobs than it eliminates over the next decade", help="Debate topic")+ parser.add_argument("--rounds", type=int, default=2, help="Number of debate rounds (1-4)")+ args = parser.parse_args()++ rounds = max(1, min(4, args.rounds))+ run_debate(args.topic, rounds)+++if __name__ == "__main__":+ main()diff --git a/agents/20-multi-agent-debate/metadata.yaml b/agents/20-multi-agent-debate/metadata.yamlnew file mode 100644index 0000000..a249c3f--- /dev/null+++ b/agents/20-multi-agent-debate/metadata.yaml@@ -0,0 +1,11 @@+title: multi-agent-debate-system+description: Two AI agents debate any topic with an AI judge scoring the outcome+author: ashishpatel26+language: python+framework: langchain+tags: [multi-agent, debate, reasoning, research, argumentation]+industry: research+difficulty: advanced+llm: gpt-4o+entrypoint: agent.py+requirements: requirements.txtdiff --git a/agents/20-multi-agent-debate/requirements.txt b/agents/20-multi-agent-debate/requirements.txtnew file mode 100644index 0000000..560b01a--- /dev/null+++ b/agents/20-multi-agent-debate/requirements.txt@@ -0,0 +1,3 @@+langchain==0.3.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/agents/README.md b/agents/README.mdnew file mode 100644index 0000000..3b9d9ea--- /dev/null+++ b/agents/README.md@@ -0,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 | ⭐ |+| 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 | ⭐⭐ |+| 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 | ⭐ |+| 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 | ⭐⭐⭐ |++## 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 --git a/crewai_mcp_course/lesson_01/.env.example b/crewai_mcp_course/lesson_01/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/crewai_mcp_course/lesson_01/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/crewai_mcp_course/lesson_01/agent.py b/crewai_mcp_course/lesson_01/agent.pynew file mode 100644index 0000000..4c5721e--- /dev/null+++ b/crewai_mcp_course/lesson_01/agent.py@@ -0,0 +1,57 @@+"""+Lesson 01: Your First CrewAI Agent++Demonstrates the fundamentals of CrewAI:+- Creating agents with roles, goals, and backstories+- Defining tasks+- Running a simple crew++Run: python agent.py+"""++from crewai import Agent, Crew, Process, Task+from langchain_openai import ChatOpenAI++llm = ChatOpenAI(model="gpt-4o-mini", temperature=0.3)++# 1. Define the agent+researcher = Agent(+ role="AI Researcher",+ goal="Research and summarize the latest developments in AI agents",+ backstory="""You are a seasoned AI researcher who stays up-to-date with+ the latest papers, frameworks, and applications in the AI agent space.+ You write clear, accurate summaries for technical audiences.""",+ llm=llm,+ verbose=True,+)++# 2. Define the task+research_task = Task(+ description="""Research and write a concise briefing on:+ "The current state of AI agents in 2025"++ Cover:+ - What are AI agents and why they matter+ - Top 3 frameworks (CrewAI, LangGraph, AutoGen)+ - 2 real-world use cases making impact+ - What's coming next++ Keep it under 300 words, technical audience.""",+ expected_output="A concise technical briefing on AI agents in 2025",+ agent=researcher,+)++# 3. Create and run the crew+crew = Crew(+ agents=[researcher],+ tasks=[research_task],+ process=Process.sequential,+ verbose=True,+)++if __name__ == "__main__":+ result = crew.kickoff()+ print("\n" + "=" * 60)+ print("FINAL RESULT:")+ print("=" * 60)+ print(result)diff --git a/crewai_mcp_course/lesson_01/requirements.txt b/crewai_mcp_course/lesson_01/requirements.txtnew file mode 100644index 0000000..fc83995--- /dev/null+++ b/crewai_mcp_course/lesson_01/requirements.txt@@ -0,0 +1,3 @@+crewai==0.80.0+langchain-openai==0.2.0+python-dotenv==1.0.1diff --git a/crewai_mcp_course/lesson_02/.env.example b/crewai_mcp_course/lesson_02/.env.examplenew file mode 100644index 0000000..3cac181--- /dev/null+++ b/crewai_mcp_course/lesson_02/.env.example@@ -0,0 +1 @@+OPENAI_API_KEY=your_openai_api_key_herediff --git a/crewai_mcp_course/lesson_02/agent.py b/crewai_mcp_course/lesson_02/agent.pynew file mode 100644index 0000000..6831c7b--- /dev/null+++ b/crewai_mcp_course/lesson_02/agent.py@@ -0,0 +1,145 @@+"""+Lesson 02: Multi-Agent Crew with Tool Use++Demonstrates:+- Multiple specialized agents with different roles+- Custom tools (web search, calculator)+- Sequential and hierarchical processes+- Agent collaboration patterns++Run: python agent.py --topic "quantum computing applications"+"""++import argparse+import os++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.3)+++# Custom Tool: Word Counter+class WordCountTool(BaseTool):+ name: str = "word_counter"+ description: str = "Count words in a text string. Input: text string."++ def _run(self, text: str) -> str:+ count = len(text.split())+ return f"Word count: {count}"+++# Custom Tool: Text Formatter+class TextFormatterTool(BaseTool):+ name: str = "text_formatter"+ description: str = "Format text as a numbered list. Input: comma-separated items."++ def _run(self, items: str) -> str:+ item_list = [i.strip() for i in items.split(",")]+ return "\n".join(f"{i+1}. {item}" for i, item in enumerate(item_list))+++word_counter = WordCountTool()+formatter = TextFormatterTool()++# Agent 1: Researcher+researcher = Agent(+ role="Senior Researcher",+ goal="Research topics thoroughly and provide factual, well-structured information",+ backstory="PhD researcher with expertise in synthesizing complex information from multiple sources.",+ llm=llm,+ tools=[word_counter],+ verbose=True,+)++# Agent 2: Writer+writer = Agent(+ role="Technical Writer",+ goal="Transform research into clear, engaging content for technical audiences",+ backstory="Award-winning technical writer with 10 years experience in AI/ML documentation.",+ llm=llm,+ tools=[formatter],+ verbose=True,+)++# Agent 3: Editor+editor = Agent(+ role="Content Editor",+ goal="Review and polish content for clarity, accuracy, and conciseness",+ backstory="Senior editor who ensures all content meets the highest quality standards.",+ llm=llm,+ verbose=True,+)+++def run_crew(topic: str) -> str:+ research_task = Task(+ description=f"""Research the topic: "{topic}"++ Find:+ 1. Core definition and key concepts (3 bullet points)+ 2. Current applications (3 real examples)+ 3. Future potential (2 predictions)+ 4. Key challenges or limitations++ Use the word_counter tool to verify your output is under 250 words.""",+ expected_output="Research brief with definitions, applications, and future outlook",+ agent=researcher,+ )++ writing_task = Task(+ description=f"""Transform the research into an engaging technical article about "{topic}".++ Structure:+ - Hook opening (1-2 sentences)+ - What it is (clear definition)+ - Why it matters (use formatter tool for 3 key benefits as numbered list)+ - Real-world impact (2 examples)+ - Call to action closing++ Target: 200-250 words, technical but accessible.""",+ expected_output="Polished technical article ready for publication",+ agent=writer,+ context=[research_task],+ )++ editing_task = Task(+ description="""Review the article for:+ 1. Accuracy (check facts align with research)+ 2. Clarity (remove jargon, improve flow)+ 3. Conciseness (trim wordiness)+ 4. Add a compelling title and subtitle++ Return the final polished version.""",+ expected_output="Final edited article with title, subtitle, and polished content",+ agent=editor,+ context=[research_task, writing_task],+ )++ crew = Crew(+ agents=[researcher, writer, editor],+ tasks=[research_task, writing_task, editing_task],+ process=Process.sequential,+ verbose=True,+ )++ return str(crew.kickoff())+++if __name__ == "__main__":+ parser = argparse.ArgumentParser(description="Multi-Agent Research & Writing Crew")+ parser.add_argument("--topic", default="AI agents in healthcare", help="Research topic")+ args = parser.parse_args()++ print(f"\n🚀 Starting crew for topic: {args.topic}\n")+ result = run_crew(args.topic)++ print("\n" + "=" * 60)+ print("FINAL ARTICLE:")+ print("=" * 60)+ print(result)diff --git a/crewai_mcp_course/lesson_02/requirements.txt b/crewai_mcp_course/lesson_02/requirements.txtnew file mode 100644index 0000000..6254236--- /dev/null+++ b/crewai_mcp_course/lesson_02/requirements.txt@@ -0,0 +1,4 @@+crewai==0.80.0+langchain-openai==0.2.0+python-dotenv==1.0.1+pydantic==2.9.0diff --git a/crewai_mcp_course/lesson_03/.env.example b/crewai_mcp_course/lesson_03/.env.examplenew file mode 100644index 0000000..e2fde81--- /dev/null+++ b/crewai_mcp_course/lesson_03/.env.example@@ -0,0 +1,2 @@+OPENAI_API_KEY=your_openai_api_key_here+MCP_SERVER_URL=http://localhost:8000diff --git a/crewai_mcp_course/lesson_03/agent.py b/crewai_mcp_course/lesson_03/agent.pynew file mode 100644index 0000000..dbdb5f2--- /dev/null+++ b/crewai_mcp_course/lesson_03/agent.py@@ -0,0 +1,144 @@+"""+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++Architecture:+ MCP Server (tools) ← CrewAI Agent → Output++Run the MCP server first: python mcp_server.py+Then run the agent: python agent.py+"""++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)+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)diff --git a/crewai_mcp_course/lesson_03/mcp_server.py b/crewai_mcp_course/lesson_03/mcp_server.pynew file mode 100644index 0000000..521ea7d--- /dev/null+++ b/crewai_mcp_course/lesson_03/mcp_server.py@@ -0,0 +1,95 @@+"""+FastMCP Server for Lesson 03.++Exposes tools that CrewAI agents can call via the MCP protocol.+This is the server side — agents connect to this to use the tools.++Run: python mcp_server.py+(Keep this running while agent.py is running)+"""++import json+from datetime import datetime++try:+ from fastmcp import FastMCP+ HAS_FASTMCP = True+except ImportError:+ HAS_FASTMCP = False+ print("FastMCP not installed. Run: pip install fastmcp")+ print("Showing example server code only.\n")+++def create_mcp_server():+ if not HAS_FASTMCP:+ return None++ mcp = FastMCP("CrewAI Course Tools")++ @mcp.tool()+ def get_datetime() -> str:+ """Get the current date and time in UTC."""+ return datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC")++ @mcp.tool()+ def prioritize_tasks(tasks: list[str]) -> str:+ """+ Prioritize a list of tasks by estimated importance.++ Args:+ tasks: List of task descriptions to prioritize++ Returns:+ JSON string with prioritized tasks+ """+ prioritized = []+ for i, task in enumerate(tasks):+ priority = "HIGH" if i < len(tasks) // 3 else "MEDIUM" if i < 2 * len(tasks) // 3 else "LOW"+ prioritized.append({"rank": i + 1, "task": task, "priority": priority})+ return json.dumps(prioritized, indent=2)++ @mcp.tool()+ def format_as_json(data: dict) -> str:+ """+ Format data as pretty-printed JSON.++ Args:+ data: Dictionary to format++ Returns:+ Pretty-printed JSON string+ """+ return json.dumps(data, indent=2, default=str)++ @mcp.tool()+ def calculate_project_metrics(tasks_completed: int, tasks_total: int) -> dict:+ """+ Calculate project completion metrics.++ Args:+ tasks_completed: Number of completed tasks+ tasks_total: Total number of tasks++ Returns:+ Dictionary with completion percentage and status+ """+ percentage = (tasks_completed / tasks_total * 100) if tasks_total > 0 else 0+ status = "On Track" if percentage >= 50 else "At Risk" if percentage >= 25 else "Behind"+ return {+ "completed": tasks_completed,+ "total": tasks_total,+ "percentage": round(percentage, 1),+ "status": status,+ }++ return mcp+++if __name__ == "__main__":+ mcp = create_mcp_server()+ if mcp:+ print("🚀 MCP Server starting on localhost:8000")+ print("Tools available: get_datetime, prioritize_tasks, format_as_json, calculate_project_metrics")+ mcp.run(transport="streamable-http", host="localhost", port=8000)+ else:+ print("Install fastmcp to run the server: pip install fastmcp")diff --git a/crewai_mcp_course/lesson_03/requirements.txt b/crewai_mcp_course/lesson_03/requirements.txtnew file mode 100644index 0000000..9056e1a--- /dev/null+++ b/crewai_mcp_course/lesson_03/requirements.txt@@ -0,0 +1,5 @@+crewai==0.80.0+langchain-openai==0.2.0+fastmcp==0.4.0+python-dotenv==1.0.1+pydantic==2.9.0diff --git a/images/Awesome AI Agent UseCases Industry Include _ Healthcare, Finance, Education, Customer Service, Retail, Transportation, Manufacturing, RealEstate, Agriculture, Energy, Entertainment, Legal, Human Resource, Hosp (1).jpg b/images/Awesome AI Agent UseCases Industry Include _ Healthcare, Finance, Education, Customer Service, Retail, Transportation, Manufacturing, RealEstate, Agriculture, Energy, Entertainment, Legal, Human Resource, Hosp (1).jpgdeleted file mode 100644index 9db60d4..0000000Binary files a/images/Awesome AI Agent UseCases Industry Include _ Healthcare, Finance, Education, Customer Service, Retail, Transportation, Manufacturing, RealEstate, Agriculture, Energy, Entertainment, Legal, Human Resource, Hosp (1).jpg and /dev/null differdiff --git a/images/Awesome AI Agent UseCases Industry Include _ Healthcare, Finance, Education, Customer Service, Retail, Transportation, Manufacturing, RealEstate, Agriculture, Energy, Entertainment, Legal, Human Resource, Hospital.jpg b/images/Awesome AI Agent UseCases Industry Include _ Healthcare, Finance, Education, Customer Service, Retail, Transportation, Manufacturing, RealEstate, Agriculture, Energy, Entertainment, Legal, Human Resource, Hospital.jpgdeleted file mode 100644index dc89802..0000000Binary files a/images/Awesome AI Agent UseCases Industry Include _ Healthcare, Finance, Education, Customer Service, Retail, Transportation, Manufacturing, RealEstate, Agriculture, Energy, Entertainment, Legal, Human Resource, Hospital.jpg and /dev/null differ