react-agent  by langchain-ai

LangGraph template for a ReAct agent

Created 2 years ago
798 stars

Top 43.4% on SourcePulse

GitHubView on GitHub
Project Summary

This template provides a foundational ReAct agent implementation using LangGraph, suitable for developers and researchers looking to build and extend agentic workflows. It offers a clear, iterative approach to problem-solving by enabling agents to reason, act with tools, and observe results, simplifying the creation of complex task execution systems.

How It Works

The agent operates on a core ReAct loop, where it iteratively reasons about user queries, selects an appropriate tool, executes it, and observes the outcome. This cycle continues until a final answer can be formulated. The design emphasizes flexibility, allowing for easy integration of custom tools and modification of the reasoning process within the LangGraph framework.

Quick Start & Requirements

  • Install LangGraph Studio.
  • Create a .env file from .env.example.
  • Set API keys for models (e.g., Anthropic, OpenAI) and tools (e.g., Tavily) in .env.
  • Default model: anthropic/claude-3-5-sonnet-20240620.
  • Documentation: LangGraph Docs

Highlighted Details

  • Implements a flexible ReAct agent pattern.
  • Easily extensible with custom Python functions as tools.
  • Supports model configuration for various providers (Anthropic, OpenAI).
  • Allows customization of system prompts and agent reasoning logic.

Maintenance & Community

  • Developed by LangChain AI.
  • LangGraph Studio offers tracing and collaboration features via LangSmith integration.

Licensing & Compatibility

  • License not explicitly stated in the README. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The template is presented as a starting point, with documentation for LangGraph still under construction. Specific details regarding error handling, advanced state management, or production readiness are not elaborated upon.

Health Check
Last Commit

1 month ago

Responsiveness

1 day

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

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Shyamal Anadkat Shyamal Anadkat(Research Scientist at OpenAI), and
1 more.

reflexion by noahshinn

0%
3k
Language agent research paper using verbal reinforcement learning
Created 3 years ago
Updated 1 year ago
Feedback? Help us improve.