react-agent  by langchain-ai

LangGraph template for a ReAct agent

Created 1 year ago
468 stars

Top 65.0% 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

6 days ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
1
Star History
66 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.3%
3k
Language agent research paper using verbal reinforcement learning
Created 2 years ago
Updated 8 months ago
Feedback? Help us improve.