Stay Hungry,Stay Foolish!

langraph-up-react

langraph-up-react

https://github.com/fanqingsong/langraph-up-react

LangGraph ReAct Agent Template

Version LangGraph Build License README CN DeepWiki Twitter

This template showcases a ReAct agent implemented using LangGraph, works seamlessly with LangGraph Studio. ReAct agents are uncomplicated, prototypical agents that can be flexibly extended to many tools.

🎉 Latest v0.2.0 Release: Complete evaluation system and multi-model support! Check the release notes for all new features.

Graph view in LangGraph studio UI

The core logic, defined in src/react_agent/graph.py, demonstrates a flexible ReAct agent that iteratively reasons about user queries and executes actions. The template features a modular architecture with shared components in src/common/, MCP integration for external documentation sources, and comprehensive testing suite.

⭐ Star this repo if you find it helpful! Visit our webinar series for tutorials and advanced LangGraph development techniques.

Features

Multi-Provider Model Support

  • SiliconFlow Integration: Complete support for Chinese MaaS platform with open-source models (Qwen, GLM, DeepSeek, etc.)
  • Qwen Models: Complete Qwen series support via langchain-qwq package, including Qwen-Plus, Qwen-Turbo, QwQ-32B, QvQ-72B
  • OpenAI: GPT-4o, GPT-4o-mini, etc.
    • OpenAI-Compatible: Any provider supporting OpenAI API format via custom API key and base URL
  • Anthropic: Claude 4 Sonnet, Claude 3.5 Haiku, etc.

Production-Grade Agent Evaluation System

  • Dual Evaluation Framework: Graph trajectory evaluation + Multi-turn chat simulation for comprehensive agent testing
  • LLM-as-Judge Methodology: Scenario-specific evaluation criteria with professional assessment systems
  • Multi-Model Benchmarking: Compare performance across different model providers and configurations
  • LangSmith Integration: Complete evaluation tracking with historical analysis and collaboration features

Agent Tool Integration Ecosystem

  • Model Context Protocol (MCP): Dynamic external tool loading at runtime
  • DeepWiki MCP Server: Optional MCP tools for GitHub repository documentation access and Q&A capabilities
  • Web Search: Built-in traditional LangChain tools (Tavily) for internet information retrieval

 

posted @ 2025-09-21 20:56  lightsong  阅读(32)  评论(0)    收藏  举报
千山鸟飞绝,万径人踪灭