agents-from-scratch  by langchain-ai

Build an email assistant with human-in-the-loop and memory

Created 5 months ago
1,250 stars

Top 31.6% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides a step-by-step guide to building an "ambient" email assistant using LangGraph, targeting developers and researchers interested in agent development. It demonstrates how to integrate human-in-the-loop (HITL) capabilities and memory management, culminating in a deployable agent with Gmail API integration.

How It Works

The project structures agent development into four progressive stages: foundational agent construction, evaluation, HITL integration, and memory implementation. It leverages LangGraph for orchestrating agent workflows, enabling modularity and state management. The approach emphasizes practical application, moving from basic agent logic to sophisticated features like user feedback loops and persistent memory, all within a clear, notebook-driven tutorial format.

Quick Start & Requirements

  • Install: uv sync --extra dev (recommended) or pip install -e .
  • Prerequisites: Python 3.11+, OpenAI API key, LangSmith API key.
  • Setup: Requires setting environment variables (LANGSMITH_API_KEY, OPENAI_API_KEY, LANGSMITH_PROJECT). Estimated setup time is minimal, primarily for API key generation and environment variable configuration.
  • Links: LangGraph 101 Notebook, Gmail Tools README

Highlighted Details

  • Comprehensive guide covering agent basics, evaluation, HITL, and memory.
  • Demonstrates integration with Gmail API for real-world email management.
  • Includes automated testing with LangSmith for trace inspection and evaluation metrics.
  • Utilizes LangGraph's state management and node/edge architecture for workflow orchestration.

Maintenance & Community

This repository is part of the LangChain ecosystem, indicating potential backing and community support. Specific contributor details or community channels (like Discord/Slack) are not explicitly mentioned in the README.

Licensing & Compatibility

The repository's license is not specified in the provided README text. Users should verify licensing for commercial use or integration with closed-source projects.

Limitations & Caveats

The project requires specific API keys for OpenAI and LangSmith, and direct Gmail integration necessitates separate Google API credential setup. While the core concepts are generalizable, the provided code is specifically tailored to email assistance.

Health Check
Last Commit

1 month ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
99 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.