GenAI_Agents

NirDiamant活跃维护

50 多个生成式 AI Agent 教程与实现,从基础对话机器人到复杂多智能体系统,帮你快速上手并复现各类 Agent 技术方案。

50+ tutorials and implementations for Generative AI Agent techniques, from basic conversational bots to complex multi-agent systems.

book-v1.0发布于 2026-10-26 13:00 UTC24,917star +52 / 7 天4,195fork同步于 2026-11-10 23:24 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/NirDiamant/GenAI_Agents.git
pip install -r requirements.txt
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

一套 60+ 篇 GenAI Agent 教程与实现合集,从对话机器人到多智能体系统,供你按需取用

50 多个生成式 AI Agent 教程与实现,从基础对话机器人到复杂多智能体系统,帮你快速上手并复现各类 Agent 技术方案。

核心能力

  • 覆盖从基础对话机器人到复杂多智能体系统的教程
  • 每个技术点配独立 notebook,首格自行安装额外依赖
  • 共享依赖统一放在 requirements.txt 中
  • 含 Thinking Budgets、Reflection、Plan Then Execute 等从零实现
  • 持续新增教程,README 称已有 64 篇并在增长

容易踩的坑

单个 notebook 会在首个 cell 里额外安装依赖,只装 requirements.txt 可能不够;README 未说明是否需要 API Key 或本地模型,运行前需自行确认各 notebook 的模型来源

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本book-v1.0
  1. book-v1.0AI Agents Made Simple: the book最新正式版2026-10-26 · 2026-10-26 13:00 UTC

    📖 The book is out: AI Agents Made Simple

    From the maintainer of this repo, a decision guide to AI agents: 28 chapters, 148 illustrations, no code. For every agent pattern: how it works, what breaks, what it costs, and when it is overkill.

    Launch price: $0.99 on Kindle for the first 24 hours → https://www.amazon.com/dp/B0HNXRSRH2

    Thank you for the stars. They are why this book exists.

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    AI Agents Made Simple reached #1 in Software Development, Software Engineering and Software Design Tools on Amazon.com's Kindle Store. A decision guide to building AI agents that work: 28 chapters, 148 illustrations, no code. Get the book on Amazon →

    PRs Welcome LinkedIn Reddit Twitter Discord

    GenAI Agents: Comprehensive Repository for Development and Implementation 🚀

    Welcome to one of the most extensive and dynamic collections of Generative AI (GenAI) agent tutorials and implementations available today. This repository serves as a comprehensive resource for learning, building, and sharing GenAI agents, ranging from simple conversational bots to complex, multi-agent systems.

    AI Agents Made Simple - the decision guide to building agents that work: 28 chapters on what each pattern does, what breaks, what it costs, and when it is overkill. No code.

    Get it on Amazon →

    🏆 Sponsors

        

    Recently added: Thinking Budgets From Scratch, Reflection From Scratch, Plan Then Execute From Scratch, Skills From Scratch, Designing Tools for Agents | 64 tutorials and growing

    📫 Stay Updated!

    Subscribe to DiamantAI Newsletter

    Join over 50,000 AI enthusiasts getting unique cutting-edge insights and free tutorials! Plus, subscribers get exclusive early access and special 33% discounts on my books!

    DiamantAI's newsletter

    I break these ideas down into short, one-idea-per-episode explainers on YouTube.

    Subscribe on YouTube   Browse every episode →

    Introduction

    Generative AI agents are at the forefront of artificial intelligence, revolutionizing the way we interact with and leverage AI technologies. This repository is designed to guide you through the development journey, from basic agent implementations to advanced, cutting-edge systems.

    Our goal is to provide a valuable resource for everyone - from beginners taking their first steps in AI to seasoned practitioners pushing the boundaries of what's possible. By offering a range of examples from foundational to complex, we aim to facilitate learning, experimentation, and innovation in the rapidly evolving field of GenAI agents.

    Furthermore, this repository serves as a platform for showcasing innovative agent creations. Whether you've developed a novel agent architecture or found an innovative application for existing techniques, we encourage you to share your work with the community.

    Related Projects

    🔍 RAG Techniques - 40+ notebooks on retrieval-augmented generation.

    🚀 Agents Towards Production - code-first tutorials for shipping production-grade agents.

    🖋️ Prompt Engineering Techniques - prompting strategies from basics to advanced.

    🧠 Agent Memory Techniques - 30 notebooks on agent memory: vector stores, graphs, Mem0, Zep.

    Join the community

    Contributions make this better - propose ideas, share techniques, or give feedback via CONTRIBUTING.md.

    r/EducationalAI · Discord · LinkedIn

    Key Features

    • 🎓 Learn to build GenAI agents from beginner to advanced levels
    • 🧠 Explore a wide range of agent architectures and applications
    • 📚 Step-by-step tutorials and comprehensive documentation
    • 🛠️ Practical, ready-to-use agent implementations
    • 🌟 Regular updates with the latest advancements in GenAI
    • 🤝 Share your own agent creations with the community

    GenAI Agent Implementations

    Below is a comprehensive overview of our GenAI agent implementations, organized by category and functionality. Each implementation is designed to showcase different aspects of AI agent development, from basic conversational agents to complex multi-agent systems.

    Updated 2026-10-31: most of the use-case notebooks below were contributed in late 2024. They now import cleanly on LangChain 1.x and LangGraph 1.x, and model IDs that providers have retired or scheduled for retirement (gpt-3.5-turbo, gpt-4, gpt-4o, gpt-4o-mini, DALL-E 3, Gemini 1.5, Claude 3, older Groq Llama models) were replaced with current ones. Each notebook still needs its own API keys, and not every notebook was run end to end against live services.

    🧭 Start here: the 2026 core patterns

    New to agents, or coming back after the 2024 notebooks? These teach one pattern each, in the order a build needs them, and most are plain Python plus one SDK, so they keep running when frameworks change. The newest ones score every run against planted answers and report what the pattern did not fix as well as what it did. The chapter numbers are from AI Agents Made Simple, which explains the decisions behind each pattern without code.

    Ch.PatternNotebook
    1Do you need an agent? Route firstOne-Step Decision Router
    2The agent loopAgent From Scratch: The While Loop
    3Workflows before agentsWorkflows First: Gated Contract Review
    5Tools designed for a modelDesigning Tools for Agents
    10Skills loaded on demandSkills From Scratch
    11Context engineeringContext Engineering From Scratch
    12Evals from tracesTrace-Based Agent Evaluation
    15Humans in the loopHuman-in-the-Loop Approval Agent
    16What an answer costsRead vs Write: What One AI Answer Costs
    18Plan, then executePlan Then Execute From Scratch
    19Reflection with a real checkReflection From Scratch
    20Thinking budgets and searchThinking Budgets From Scratch

    Chapter 27, from a while loop to a harness, is planned as a community notebook (#160).

    #CategoryAgent NameFrameworkKey Features
    1🌱 BeginnerSimple Conversational AgentLangChain/PydanticAIContext-aware conversations, history management
    2🌱 BeginnerSimple Question AnsweringLangChainQuery understanding, concise answers
    3🌱 BeginnerSimple Data AnalysisLangChain/PydanticAIDataset interpretation, natural language queries
    4🔧 FrameworkIntroduction to LangGraphLangGraphModular AI workflows, state management
    5🔧 FrameworkModel Context Protocol (MCP)MCPAI-external resource integration
    6🎓 EducationalATLAS: Academic Task SystemLangGraphMulti-agent academic planning, note-taking
    7🎓 EducationalScientific Paper AgentLangGraphLiterature review automation
    8🎓 EducationalChiron - Feynman LearningLangGraphAdaptive learning, checkpoint system
    9💼 BusinessCustomer Support AgentLangGraphQuery categorization, sentiment analysis
    10💼 BusinessEssay Grading AgentLangGraphAutomated grading, multiple criteria
    11💼 BusinessTravel Planning AgentLangGraphPersonalized itineraries
    12💼 BusinessGenAI Career AssistantLangGraphCareer guidance, learning paths
    13💼 BusinessProject Manager AssistantLangGraphTask generation, risk assessment
    14💼 BusinessContract Analysis AssistantLangGraphClause analysis, compliance checking
    15💼 BusinessE2E Testing AgentLangGraphTest automation, browser control
    16🎨 CreativeGIF Animation GeneratorLangGraphText-to-animation pipeline
    17🎨 CreativeTTS Poem GeneratorLangGraphText classification, speech synthesis
    18🎨 CreativeMusic CompositorLangGraphAI music composition
    19🎨 CreativeContent IntelligenceLangGraphMulti-platform content generation
    20🎨 CreativeBusiness Meme GeneratorLangGraphBrand-aligned meme creation
    21🎨 CreativeMurder Mystery GameLangGraphProcedural story generation
    22📊 AnalysisMemory-Enhanced ConversationalLangChainShort/long-term memory integration
    23📊 AnalysisMulti-Agent CollaborationLangChainHistorical research, data analysis
    24📊 AnalysisSelf-Improving AgentLangChainLearning from interactions
    25📊 AnalysisTask-Oriented AgentLangChainText summarization, translation
    26📊 AnalysisInternet Search AgentLangChainWeb research, summarization
    27📊 AnalysisResearch Team - AutogenAutoGenMulti-agent research collaboration
    28📊 AnalysisSales Call AnalyzerLangGraphAudio transcription, NLP analysis
    29📊 AnalysisWeather Emergency SystemLangGraphReal-time data processing
    30📊 AnalysisSelf-Healing CodebaseLangGraphError detection, automated fixes
    31📊 AnalysisDataScribeLangGraphDatabase exploration, query planning
    32📊 AnalysisMemory-Enhanced EmailLangGraphEmail triage, response generation
    33📰 NewsNews TL;DRLangGraphNews summarization, API integration
    34📰 NewsAInsightLangGraphAI/ML news aggregation
    35📰 NewsJournalism AssistantLangGraphFact-checking, bias detection
    36📰 NewsBlog WriterOpenAI SwarmCollaborative content creation
    37📰 NewsPodcast GeneratorLangGraphContent search, audio generation
    38🛍️ ShoppingShopGenieLangGraphProduct comparison, recommendations
    39🛍️ ShoppingCar Buyer AgentLangGraphWeb scraping, decision support
    40🎯 Task ManagementTaskifierLangGraphWork style analysis, task breakdown
    41🎯 Task ManagementGrocery ManagementCrewAIInventory tracking, recipe suggestions
    42🔍 QALangGraph InspectorLangGraphSystem testing, vulnerability detection
    43🔍 QAEU Green Deal BotLangGraphRegulatory compliance, FAQ system
    44🔍 QASystematic ReviewLangGraphAcademic paper processing, draft generation
    45🌟 AdvancedControllable RAG AgentCustomComplex question answering, deterministic graph
    46💼 BusinessHR AI AssistantLangGraphRecruitment pipeline, JD generation, CV analysis
    47📊 AnalysisML and Data Science AssistantLangGraphAgentic ML pipeline, preprocessing to evaluation
    48🎨 CreativeArt Tourguide with LightRAGLightRAG + LangGraphKnowledge-graph RAG, interactive art exploration
    49🎓 EducationalGutenberg SageLangGraph + OllamaLocal LLM RAG, NER-enhanced retrieval
    50💼 BusinessContextual Quoting SystemLangGraphMulti-agent quoting, RAG + structured data
    51📊 AnalysisDocument Intake AgentLangGraphOffice docs to LLM-ready markdown, conversion as a tool call
    52🎨 CreativeSocial Media Publishing AgentLangGraphPer-platform generation, self-review loop, publishing via Publora API
    53🔍 QAHuman-in-the-Loop Approval AgentLangGraphRisk-based approval, in-process checkpoints, auditable tool execution
    54🔍 QATrace-Based Agent EvaluationPythonDeterministic trace scoring, case diagnostics, regression quality gates
    55🌱 BeginnerAgent From Scratch: The While LoopPure PythonThe minimal agent loop, tool calls, the retry trap, where a rule must live
    56🔍 QAOne-Step Decision RouterTransformersDecision from one forward pass, calibration check, temperature scaling, confidence gate
    57🎓 EducationalRead vs Write: What One AI Answer CostsTransformersPrefill vs decode timing, memory-bandwidth check, KV-cache growth, batching, optional power metering
    58🎓 EducationalContext Engineering From ScratchPure Python + OpenAITokens per layer, clearing used tool results, the prompt-cache trade-off, a scored before/after
    59🎓 EducationalWorkflows First: Gated Contract ReviewPure Python + OpenAIGated workflow vs agent, planted broken files, cost and run-to-run spread, scored exactly
    60🎓 EducationalDesigning Tools for AgentsPure Python + OpenAIThin API wrapper vs model-designed tools: planted refund tickets, idempotent writes, instructive errors
    61🎓 EducationalSkills From ScratchPure Python + OpenAISkill folders, progressive disclosure vs stuffed prompt at 3/10/30 procedures, trigger tests, poisoned skill
    62🎓 EducationalPlan Then Execute From ScratchPure Python + OpenAIPlanner, plan checks, assumption-triggered replans; injection test; step-by-step comparison with measured costs
    63🎓 EducationalReflection From ScratchPure Python + OpenAISelf-review vs skeptical reviewer vs failing tests, evidence gate, fixes vs regressions, hidden tests
    64🎓 EducationalThinking Budgets From ScratchPure Python + OpenAIReasoning effort none-to-high vs checked retries, vote, picker and cascade on scored SQL

    Explore our extensive list of GenAI agent implementations, sorted by categories:

    🌱 Beginner-Friendly Agents

    1. Simple Conversational Agent

      Overview 🔎

      A context-aware conversational AI maintains information across interactions, enabling more natural dialogues.

      Implementation 🛠️

      Integrates a language model, prompt template, and history manager to generate contextual responses and track conversation sessions.

    2. Simple Question Answering Agent

      Overview 🔎

      Answering (QA) agent using LangChain and OpenAI's language model understands user queries and provides relevant, concise answers.

      Implementation 🛠️

      Combines OpenAI's GPT model, a prompt template, and an LLMChain to process user questions and generate AI-driven responses in a streamlined manner.

    3. Simple Data Analysis Agent

      Overview 🔎

      An AI-powered data analysis agent interprets and answers questions about datasets using natural language, combining language models with data manipulation tools for intuitive data exploration.

      Implementation 🛠️

      Integrates a language model, data manipulation framework, and agent framework to process natural language queries and perform data analysis on a synthetic dataset, enabling accessible insights for non-technical users.

    🔧 Framework Tutorial

    1. Introduction to LangGraph: Building Modular AI Workflows

      Overview 🔎

      This tutorial introduces LangGraph, a powerful framework for creating modular, graph-based AI workflows. Learn how to leverage LangGraph to build more complex and flexible AI agents that can handle multi-step processes efficiently.

      Implementation 🛠️

      Step-by-step guide on using LangGraph to create a StateGraph workflow. The tutorial covers key concepts such as state management, node creation, and graph compilation. It demonstrates these principles by constructing a simple text analysis pipeline, serving as a foundation for more advanced agent architectures.

      Additional Resources 📚

    2. Model Context Protocol (MCP): Seamless Integration of AI and External Resources

      Overview 🔎

      This tutorial introduces the Model Context Protocol (MCP), an open standard for connecting AI models with external data sources and tools. Learn how MCP serves as a universal bridge between GenAI agents and the wider digital ecosystem, enabling more capable and context-aware AI applications.

      Implementation 🛠️

      Provides a hands-on guide to implementing MCP servers and clients, demonstrating how to connect language models with external tools and data sources. The tutorial covers server setup, tool definition, and integration with AI clients, with practical examples of building useful agent capabilities through the protocol.

      Additional Resources 📚

    🎓 Educational and Research Agents

    1. ATLAS: Academic Task and Learning Agent System

      Overview 🔎

      ATLAS demonstrates how to build an intelligent multi-agent system that transforms academic support through AI-powered assistance. The system leverages LangGraph's workflow framework to coordinate multiple specialized agents that provide personalized academic planning, note-taking, and advisory support.

      Implementation 🛠️

      Implements a state-managed multi-agent architecture using four specialized agents (Coordinator, Planner, Notewriter, and Advisor) working in concert through LangGraph's workflow framework. The system features sophisticated workflows for profile analysis and academic support, with continuous adaptation based on student performance and feedback.

      Additional Resources 📚

    2. Scientific Paper Agent - Literature Review

      Overview 🔎

      An intelligent research assistant that helps users navigate, understand, and analyze scientific literature through an orchestrated workflow. The system combines academic APIs with sophisticated paper processing techniques to automate literature review tasks, enabling researchers to efficiently extract insights from academic papers while maintaining research rigor and quality control.

      Implementation 🛠️

      Leverages LangGraph to create a five-node workflow system including decision making, planning, tool execution, and quality validation nodes. The system integrates the CORE API for paper access, PDFplumber for document processing, and advanced language models for analysis. Key features include a retry mechanism for robust paper downloads, structured data handling through Pydantic models, and quality-focused improvement cycles with human-in-the-loop validation options.

      Additional Resources 📚

    3. Chiron - A Feynman-Enhanced Learning Agent

      Overview 🔎

      An adaptive learning agent that guides users through educational content using a structured checkpoint system and Feynman-style teaching. The system processes learning materials (either user-provided or web-retrieved), verifies understanding through interactive checkpoints, and provides simplified explanations when needed, creating a personalized learning experience that mimics one-on-one tutoring.

      Implementation 🛠️

      Uses LangGraph to orchestrate a learning workflow that includes checkpoint definition, context building, understanding verification, and Feynman teaching nodes. The system integrates web search for dynamic content retrieval, employs semantic chunking for context processing, and manages embeddings for relevant information retrieval. Key features include a 70% understanding threshold for progression, interactive human-in-the-loop validation, and structured output through Pydantic models for consistent data handling.

      Additional Resources 📚

    💼 Business and Professional Agents

    1. Customer Support Agent (LangGraph)

      Overview 🔎

      An intelligent customer support agent using LangGraph categorizes queries, analyzes sentiment, and provides appropriate responses or escalates issues.

      Implementation 🛠️

      Utilizes LangGraph to create a workflow combining state management, query categorization, sentiment analysis, and response generation.

    2. Essay Grading Agent (LangGraph)

      Overview 🔎

      An automated essay grading system using LangGraph and an LLM model evaluates essays based on relevance, grammar, structure, and depth of analysis.

      Implementation 🛠️

      Utilizes a state graph to define the grading workflow, incorporating separate grading functions for each criterion.

    3. Travel Planning Agent (LangGraph)

      Overview 🔎

      A Travel Planner using LangGraph demonstrates how to build a stateful, multi-step conversational AI application that collects user input and generates personalized travel itineraries.

      Implementation 🛠️

      Utilizes StateGraph to define the application flow, incorporates custom PlannerState for process management.

    4. GenAI Career Assistant Agent

      Overview 🔎

      The GenAI Career Assistant demonstrates how to create a multi-agent system that provides personalized guidance for careers in Generative AI. Using LangGraph and Gemini LLM, the system delivers customized learning paths, resume assistance, interview preparation, and job search support.

      Implementation 🛠️

      Leverages a multi-agent architecture using LangGraph to coordinate specialized agents (Learning, Resume, Interview, Job Search) through TypedDict-based state management. The system employs sophisticated query categorization and routing while integrating with external tools like DuckDuckGo for job searches and dynamic content generation.

      Additional Resources 📚

    5. Project Manager Assistant Agent

      Overview 🔎

      An AI agent designed to assist in project management tasks by automating the process of creating actionable tasks from project descriptions, identifying dependencies, scheduling work, and assigning tasks to team members based on expertise. The system includes risk assessment and self-reflection capabilities to optimize project plans through multiple iterations, aiming to minimize overall project risk.

      Implementation 🛠️

      Leverages LangGraph to orchestrate a workflow of specialized nodes including task generation, dependency mapping, scheduling, allocation, and risk assessment. Each node uses GPT-4o-mini for structured outputs following Pydantic models. The system implements a feedback loop for self-improvement, where risk scores trigger reflection cycles that generate insights to optimize the project plan. Visualization tools display Gantt charts of the generated schedules across iterations.

      Additional Resources 📚

    6. Contract Analysis Assistant (ClauseAI)

      Overview 🔎

      ClauseAI demonstrates how to build an AI-powered contract analysis system using a multi-agent approach. The system employs specialized AI agents for different aspects of contract review, from clause analysis to compliance checking, and leverages LangGraph for workflow orchestration and Pinecone for efficient clause retrieval and comparison.

      Implementation 🛠️

      Implements a sophisticated state-based workflow using LangGraph to coordinate multiple AI agents through contract analysis stages. The system features Pydantic models for data validation, vector storage with Pinecone for clause comparison, and LLM-based analysis for generating comprehensive contract reports. The implementation includes parallel processing capabilities and customizable report generation based on user requirements.

      Additional Resources 📚

    7. E2E Testing Agent

      Overview 🔎

      The E2E Testing Agent demonstrates how to build an AI-powered system that converts natural language test instructions into executable end-to-end web tests. Using LangGraph for workflow orchestration and Playwright for browser automation, the system enables users to specify test cases in plain English while handling the complexity of test generation and execution.

      Implementation 🛠️

      Implements a structured workflow using LangGraph to coordinate test generation, validation, and execution. The system features TypedDict state management, integration with Playwright for browser automation, and LLM-based code generation for converting natural language instructions into executable test scripts. The implementation includes DOM state analysis, error handling, and comprehensive test reporting.

      Additional Resources 📚

    🎨 Creative and Content Generation Agents

    1. GIF Animation Generator Agent (LangGraph)

      Overview 🔎

      A GIF animation generator that integrates LangGraph for workflow management, GPT-4 for text generation, and DALL-E for image creation, producing custom animations from user prompts.

      Implementation 🛠️

      Utilizes LangGraph to orchestrate a workflow that generates character descriptions, plots, and image prompts using GPT-4, creates images with DALL-E 3, and assembles them into GIFs using PIL. Employs asynchronous programming for efficient parallel processing.

    2. TTS Poem Generator Agent (LangGraph)

      Overview 🔎

      An advanced text-to-speech (TTS) agent using LangGraph and OpenAI's APIs classifies input text, processes it based on content type, and generates corresponding speech output.

      Implementation 🛠️

      Utilizes LangGraph to orchestrate a workflow that classifies input text using GPT models, applies content-specific processing, and converts the processed text to speech using OpenAI's Realtime API (gpt-realtime-2.1-mini). The system adapts its output based on the identified content type (general, poem, news, or joke).

    3. Music Compositor Agent (LangGraph)

      Overview 🔎

      An AI Music Compositor using LangGraph and OpenAI's language models generates custom musical compositions based on user input. The system processes the input through specialized components, each contributing to the final musical piece, which is then converted to a playable MIDI file.

      Implementation 🛠️

      LangGraph orchestrates a workflow that transforms user input into a musical composition, using ChatOpenAI (GPT-4) to generate melody, harmony, and rhythm, which are then style-adapted. The final AI-generated composition is converted to a MIDI file using music21 and can be played back using pygame.

    4. Content Intelligence: Multi-Platform Content Generation Agent

      Overview 🔎

      Content Intelligence demonstrates how to build an advanced content generation system that transforms input text into platform-optimized content across multiple social media channels. The system employs LangGraph for workflow orchestration to analyze content, conduct research, and generate tailored content while maintaining brand consistency across different platforms.

      Implementation 🛠️

      Implements a sophisticated workflow using LangGraph to coordinate multiple specialized nodes (Summary, Research, Platform-Specific) through the content generation process. The system features TypedDict and Pydantic models for state management, integration with Tavily Search for research enhancement, and platform-specific content generation using GPT-4. The implementation includes parallel processing for multiple platforms and customizable content templates.

      Additional Resources 📚

    5. Business Meme Generator Using LangGraph and Memegen.link

      Overview 🔎

      The Business Meme Generator demonstrates how to create an AI-powered system that generates contextually relevant memes based on company website analysis. Using LangGraph for workflow orchestration, the system combines Groq's Llama model for text analysis and the Memegen.link API to automatically produce brand-aligned memes for digital marketing.

      Implementation 🛠️

      Implements a state-managed workflow using LangGraph to coordinate website content analysis, meme concept generation, and image creation. The system features Pydantic models for data validation, asynchronous processing with aiohttp, and integration with external APIs (Groq, Memegen.link) to create a complete meme generation pipeline with customizable templates.

      Additional Resources 📚

    6. Murder Mystery Game with LLM Agents

      Overview 🔎

      A text-based detective game that utilizes autonomous LLM agents as interactive characters in a procedurally generated murder mystery. Drawing inspiration from the UNBOUNDED paper, the system creates unique scenarios each time, with players taking on the role of Sherlock Holmes to solve the case through character interviews and deductive reasoning.

      Implementation 🛠️

      Leverages two LangGraph workflows - a main game loop for story/character generation and game progression, and a conversation sub-graph for character interactions. The system uses a combination of LLM-powered narrative generation, character AI, and structured game mechanics to create an immersive investigative experience with replayable storylines.

      Additional Resources 📚

    📊 Analysis and Information Processing Agents

    1. Memory-Enhanced Conversational Agent

      Overview 🔎

      A memory-enhanced conversational AI agent incorporates short-term and long-term memory systems to maintain context within conversations and across multiple sessions, improving interaction quality and personalization.

      Implementation 🛠️

      Integrates a language model with separate short-term and long-term memory stores, utilizes a prompt template incorporating both memory types, and employs a memory manager for storage and retrieval. The system includes an interaction loop that updates and utilizes memories for each response.

    2. Multi-Agent Collaboration System

      Overview 🔎

      A multi-agent collaboration system combining historical research with data analysis, leveraging large language models to simulate specialized agents working together to answer complex historical questions.

      Implementation 🛠️

      Utilizes a base Agent class to create specialized HistoryResearchAgent and DataAnalysisAgent, orchestrated by a HistoryDataCollaborationSystem. The system follows a five-step process: historical context provision, data needs identification, historical data provision, data analysis, and final synthesis.

    3. Self-Improving Agent

      Overview 🔎

      A Self-Improving Agent using LangChain engages in conversations, learns from interactions, and continuously improves its performance over time through reflection and adaptation.

      Implementation 🛠️

      Integrates a language model with chat history management, response generation, and a reflection mechanism. The system employs a learning system that incorporates insights from reflection to enhance future performance, creating a continuous improvement loop.

    4. Task-Oriented Agent

      Overview 🔎

      A language model application using LangChain that summarizes text and translates the summary to Spanish, combining custom functions, structured tools, and an agent for efficient text processing.

      Implementation 🛠️

      Utilizes custom functions for summarization and translation, wrapped as structured tools. Employs a prompt template to guide the agent, which orchestrates the use of tools. An agent executor manages the process, taking input text and producing both an English summary and its Spanish translation.

    5. Internet Search and Summarize Agent

      Overview 🔎

      An intelligent web research assistant that combines web search capabilities with AI-powered summarization, automating the process of gathering information from the internet and distilling it into concise, relevant summaries.

      Implementation 🛠️

      Integrates a web search module using DuckDuckGo's API, a result parser, and a text summarization engine leveraging OpenAI's language models. The system performs site-specific or general searches, extracts relevant content, generates concise summaries, and compiles attributed results for efficient information retrieval and synthesis.

    6. Multi agent research team - Autogen

      Overview 🔎

      This technique explores a multi-agent system for collaborative research using the AutoGen library. It employs agents to solve tasks collaboratively, focusing on efficient execution and quality assurance. The system enhances research by distributing tasks among specialized agents.

      Implementation 🛠️

      Agents are configured with specific roles using the GPT-4 model, including admin, developer, planner, executor, and quality assurance. Interaction management ensures orderly communication with defined transitions. Task execution involves collaborative planning, coding, execution, and quality checking, demonstrating a scalable framework for various domains.

      Additional Resources 📚

    7. Sales Call Analyzer

      Overview 🔎

      An intelligent system that automates the analysis of sales call recordings by combining audio transcription with advanced natural language processing. The analyzer transcribes audio using OpenAI's gpt-transcribe, processes the text using NLP techniques, and generates comprehensive reports including sentiment analysis, key phrases, pain points, and actionable recommendations to improve sales performance.

      Implementation 🛠️

      Utilizes multiple components in a structured workflow: OpenAI's gpt-transcribe for audio transcription, CrewAI for task automation and agent management, and LangChain for orchestrating the analysis pipeline. The system processes audio through a series of steps from transcription to detailed analysis, leveraging custom agents and tasks to generate structured JSON reports containing insights about customer sentiment, sales opportunities, and recommended improvements.

      Additional Resources 📚

    8. Weather Emergency & Response System

      Overview 🔎

      A comprehensive system demonstrating two agent graph implementations for weather emergency response: a real-time graph processing live weather data, and a hybrid graph combining real and simulated data for testing high-severity scenarios. The system handles complete workflow from data gathering through emergency plan generation, with automated notifications and human verification steps.

      Implementation 🛠️

      Utilizes LangGraph for orchestrating complex workflows with state management, integrating OpenWeatherMap API for real-time data, and Gemini for analysis and response generation. The system incorporates email notifications, social media monitoring simulation, and severity-based routing with configurable human verification for low/medium severity events.

      Additional Resources 📚

    9. Self-Healing Codebase System

      Overview 🔎

      An intelligent system that automatically detects, diagnoses, and fixes runtime code errors using LangGraph workflow orchestration and ChromaDB vector storage. The system maintains a memory of encountered bugs and their fixes through vector embeddings, enabling pattern recognition for similar errors across the codebase.

      Implementation 🛠️

      Utilizes a state-based graph workflow that processes function definitions and runtime arguments through specialized nodes for error detection, code analysis, and fix generation. Incorporates ChromaDB for vector-based storage of bug patterns and fixes, with automated search and retrieval capabilities for similar error patterns, while maintaining code execution safety through structured validation steps.

      Additional Resources 📚

    10. DataScribe: AI-Powered Schema Explorer

      Overview 🔎

      An intelligent agent system that enables intuitive exploration and querying of relational databases through natural language interactions. The system utilizes a fleet of specialized agents, coordinated by a stateful Supervisor, to handle schema discovery, query planning, and data analysis tasks while maintaining contextual understanding through vector-based relationship graphs.

      Implementation 🛠️

      Leverages LangGraph for orchestrating a multi-agent workflow including discovery, inference, and planning agents, with NetworkX for relationship graph visualization and management. The system incorporates dynamic state management through TypedDict classes, maintains database context between sessions using a db_graph attribute, and includes safety measures to prevent unauthorized database modifications.

    11. Memory-Enhanced Email Agent (LangGraph & LangMem)

      Overview 🔎

      An intelligent email assistant that combines three types of memory (semantic, episodic, and procedural) to create a system that improves over time. The agent can triage incoming emails, draft contextually appropriate responses using stored knowledge, and enhance its performance based on user feedback.

      Implementation 🛠️

      Leverages LangGraph for workflow orchestration and LangMem for sophisticated memory management across multiple memory types. The system implements a triage workflow with memory-enhanced decision making, specialized tools for email composition and calendar management, and a self-improvement mechanism that updates its own prompts based on feedback and past performance.

      Additional Resources 📚

    📰 News and Information Agents

    1. News TL;DR using LangGraph

      Overview 🔎

      A n