react-agent  by langchain-ai

LangGraph template for a ReAct agent

created 11 months ago
365 stars

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

2 days ago

Responsiveness

1 day

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

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Didier Lopes Didier Lopes(Founder of OpenBB), and
1 more.

langgraph by langchain-ai

2.1%
17k
Agent orchestration framework for building controllable agents
created 2 years ago
updated 1 day ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Carol Willing Carol Willing(Core Contributor to CPython, Jupyter), and
38 more.

langchain by langchain-ai

0.4%
113k
Framework for building LLM-powered applications
created 2 years ago
updated 1 day ago
Feedback? Help us improve.