กลับไปหน้า Tools

GetNotes Tools

langchain-ai/langgraph

Tool นี้คืออะไร

LangGraph เป็นเฟรมเวิร์กการจัดการระดับต่ำสำหรับสร้าง จัดการ และปรับใช้เอเจนต์ AI ที่มีสถานะและทำงานได้ยาวนาน เหมาะสำหรับนักพัฒนาที่ต้องการสร้างเอเจนต์ที่ซับซ้อน โดยมีประโยชน์ด้านการทำงานที่ทนทาน การแทรกแซงของมนุษย์ หน่วยความจำที่ครอบคลุม และการปรับใช้ที่พร้อมใช้งานจริง

ข้อมูลโปรเจกต์

ดาว

38.4K

Forks

6.5K

License

MIT

อัปเดต GitHub ล่าสุด

28 ก.ค. 2569

เพิ่มใน GetNotes

14 ก.ค. 2569

Repository

langchain-ai/langgraph

รูปแบบ

Library / SDK

เหมาะกับงาน

AI และ AgentsAutomation

เหมาะกับอาชีพ

Ecosystem

Python

แปลและเรียบเรียงโดย AI

เนื้อหาฉบับภาษาไทย

ใช้อ่านเพื่อทำความเข้าใจเบื้องต้น โปรดตรวจสอบรายละเอียดสำคัญกับเอกสารต้นฉบับด้านล่าง

PyPI - LicensePyPI - DownloadsVersionTwitter / X

LangGraph ได้รับความไว้วางใจจากบริษัทชั้นนำที่กำลังกำหนดอนาคตของเอเจนต์ เช่น Klarna, Replit, Elastic และอื่นๆ โดยเป็นเฟรมเวิร์กการจัดการระดับต่ำสำหรับการสร้าง จัดการ และปรับใช้เอเจนต์ที่มีสถานะและทำงานได้ยาวนาน

bash
pip install -U langgraph
เคล็ดลับ

หากคุณกำลังมองหาวิธีสร้างเอเจนต์อย่างรวดเร็ว ลองดู Deep Agents — ซึ่งเป็นแพ็กเกจระดับสูงที่สร้างขึ้นบน LangGraph สำหรับเอเจนต์ที่สามารถวางแผน ใช้เอเจนต์ย่อย และใช้ระบบไฟล์สำหรับงานที่ซับซ้อนได้

สำหรับไลบรารี JS/TS ที่เทียบเท่ากัน ลองดู LangGraph.js และ เอกสาร JS

ทำไมต้องใช้ LangGraph?

LangGraph มีโครงสร้างพื้นฐานระดับต่ำที่รองรับ ทุก เวิร์กโฟลว์หรือเอเจนต์ที่มีสถานะและทำงานได้ยาวนาน:

  • การทำงานที่ทนทาน — สร้างเอเจนต์ที่คงอยู่ได้แม้เกิดความล้มเหลวและสามารถทำงานได้เป็นระยะเวลานาน โดยจะกลับมาทำงานต่อจากจุดที่หยุดไปโดยอัตโนมัติ
  • การแทรกแซงของมนุษย์ (Human-in-the-loop) — ผสานรวมการกำกับดูแลของมนุษย์ได้อย่างราบรื่นโดยการตรวจสอบและแก้ไขสถานะของเอเจนต์ ณ จุดใดก็ได้ระหว่างการทำงาน
  • หน่วยความจำที่ครอบคลุม — สร้างเอเจนต์ที่มีสถานะอย่างแท้จริงด้วยหน่วยความจำระยะสั้นสำหรับการให้เหตุผลต่อเนื่อง และหน่วยความจำระยะยาวที่คงอยู่ข้ามเซสชัน
  • การดีบักด้วย LangSmith — เพิ่มการมองเห็นเชิงลึกในพฤติกรรมของเอเจนต์ที่ซับซ้อนด้วยเครื่องมือแสดงภาพที่ติดตามเส้นทางการทำงาน บันทึกการเปลี่ยนสถานะ และให้เมตริกการทำงานโดยละเอียด
  • การปรับใช้ที่พร้อมใช้งานจริง — ปรับใช้ระบบเอเจนต์ที่ซับซ้อนได้อย่างมั่นใจด้วยโครงสร้างพื้นฐานที่ปรับขนาดได้ ซึ่งออกแบบมาเพื่อจัดการกับความท้าทายเฉพาะของเวิร์กโฟลว์ที่มีสถานะและทำงานได้ยาวนาน
เคล็ดลับ

สำหรับการพัฒนา ดีบัก และปรับใช้เอเจนต์ AI และแอปพลิเคชัน LLM โปรดดู LangSmith

ระบบนิเวศของ LangGraph

แม้ว่า LangGraph จะสามารถใช้งานแบบสแตนด์อโลนได้ แต่ก็ยังผสานรวมเข้ากับผลิตภัณฑ์ LangChain ใดๆ ได้อย่างราบรื่น ทำให้ผู้พัฒนามีชุดเครื่องมือที่ครบครันสำหรับการสร้างเอเจนต์

เพื่อปรับปรุงการพัฒนาแอปพลิเคชัน LLM ของคุณ ให้ใช้ LangGraph ร่วมกับ:

  • Deep Agents – สร้างเอเจนต์ที่สามารถวางแผน ใช้เอเจนต์ย่อย และใช้ระบบไฟล์สำหรับงานที่ซับซ้อน
  • LangChain – มีการผสานรวมและส่วนประกอบที่ประกอบกันได้เพื่อปรับปรุงการพัฒนาแอปพลิเคชัน LLM
  • LangSmith – มีประโยชน์สำหรับการประเมินเอเจนต์และการสังเกตการณ์ ดีบักการทำงานของแอป LLM ที่มีประสิทธิภาพต่ำ ประเมินเส้นทางของเอเจนต์ เพิ่มการมองเห็นในการผลิต และปรับปรุงประสิทธิภาพเมื่อเวลาผ่านไป
  • LangSmith Deployment – ปรับใช้และปรับขนาดเอเจนต์ได้อย่างง่ายดายด้วยแพลตฟอร์มการปรับใช้ที่สร้างขึ้นโดยเฉพาะสำหรับเวิร์กโฟลว์ที่มีสถานะและทำงานได้ยาวนาน ค้นพบ นำกลับมาใช้ใหม่ กำหนดค่า และแบ่งปันเอเจนต์ในทีม — และทำซ้ำได้อย่างรวดเร็วด้วยการสร้างต้นแบบด้วยภาพใน LangSmith Studio

เอกสารประกอบ

  • docs.langchain.com – เอกสารประกอบที่ครอบคลุม รวมถึงภาพรวมแนวคิดและคู่มือ
  • reference.langchain.com/python/langgraph – เอกสารอ้างอิง API สำหรับแพ็กเกจ LangGraph
  • LangGraph Quickstart – เริ่มต้นสร้างด้วย LangGraph
  • Chat LangChain – แชทกับเอกสารประกอบของ LangChain และรับคำตอบสำหรับคำถามของคุณ

การสนทนา: เยี่ยมชม LangChain Forum เพื่อเชื่อมต่อกับชุมชนและแบ่งปันคำถามทางเทคนิค แนวคิด และข้อเสนอแนะทั้งหมดของคุณ

แหล่งข้อมูลเพิ่มเติม

  • คู่มือ – ตัวอย่างโค้ดที่รวดเร็วและนำไปใช้ได้จริงสำหรับหัวข้อต่างๆ เช่น การสตรีม การเพิ่มหน่วยความจำและการคงอยู่ และรูปแบบการออกแบบ (เช่น การแตกแขนง, ซับกราฟ ฯลฯ)
  • LangChain Academy – เรียนรู้พื้นฐานของ LangGraph ในหลักสูตรฟรีที่มีโครงสร้างของเรา
  • กรณีศึกษา – ฟังว่าผู้นำในอุตสาหกรรมใช้ LangGraph อย่างไรในการส่งมอบแอปพลิเคชัน AI ในวงกว้าง
  • คู่มือการมีส่วนร่วม – เรียนรู้วิธีการมีส่วนร่วมในโปรเจกต์ LangChain และค้นหาประเด็นเริ่มต้นที่ดี
  • หลักจรรยาบรรณ – แนวทางปฏิบัติและมาตรฐานของชุมชนสำหรับการเข้าร่วม

คำขอบคุณ

LangGraph ได้รับแรงบันดาลใจจาก Pregel และ Apache Beam อินเทอร์เฟซสาธารณะได้รับแรงบันดาลใจจาก NetworkX LangGraph สร้างโดย LangChain Inc ซึ่งเป็นผู้สร้าง LangChain แต่สามารถใช้งานได้โดยไม่ต้องมี LangChain

เอกสารโปรเจกต์

อ่านเอกสารต้นฉบับ

README วิธีติดตั้ง วิธีใช้งาน และข้อกำหนดจาก repository ต้นฉบับ

ดูไฟล์บน GitHub
LangGraph Logo
PyPI - LicensePyPI - DownloadsVersionTwitter / X

Trusted by companies shaping the future of agents – including Klarna, Replit, Elastic, and more – LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents.

bash
pip install -U langgraph
เคล็ดลับ

If you're looking to quickly build agents, check out Deep Agents — a higher-level package built on LangGraph for agents that can plan, use subagents, and leverage file systems for complex tasks.

For an equivalent JS/TS library, check out LangGraph.js and the JS docs.

Why use LangGraph?

LangGraph provides low-level supporting infrastructure for any long-running, stateful workflow or agent:

  • Durable execution — Build agents that persist through failures and can run for extended periods, automatically resuming from exactly where they left off.
  • Human-in-the-loop — Seamlessly incorporate human oversight by inspecting and modifying agent state at any point during execution.
  • Comprehensive memory — Create truly stateful agents with both short-term working memory for ongoing reasoning and long-term persistent memory across sessions.
  • Debugging with LangSmith — Gain deep visibility into complex agent behavior with visualization tools that trace execution paths, capture state transitions, and provide detailed runtime metrics.
  • Production-ready deployment — Deploy sophisticated agent systems confidently with scalable infrastructure designed to handle the unique challenges of stateful, long-running workflows.
เคล็ดลับ

For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.

LangGraph ecosystem

While LangGraph can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools for building agents.

To improve your LLM application development, pair LangGraph with:

  • Deep Agents – Build agents that can plan, use subagents, and leverage file systems for complex tasks.
  • LangChain – Provides integrations and composable components to streamline LLM application development.
  • LangSmith – Helpful for agent evals and observability. Debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and improve performance over time.
  • LangSmith Deployment – Deploy and scale agents effortlessly with a purpose-built deployment platform for long-running, stateful workflows. Discover, reuse, configure, and share agents across teams – and iterate quickly with visual prototyping in LangSmith Studio.

Documentation

Discussions: Visit the LangChain Forum to connect with the community and share all of your technical questions, ideas, and feedback.

Additional resources

  • Guides – Quick, actionable code snippets for topics such as streaming, adding memory & persistence, and design patterns (e.g. branching, subgraphs, etc.).
  • LangChain Academy – Learn the basics of LangGraph in our free, structured course.
  • Case studies – Hear how industry leaders use LangGraph to ship AI applications at scale.
  • Contributing Guide – Learn how to contribute to LangChain projects and find good first issues.
  • Code of Conduct – Our community guidelines and standards for participation.

Acknowledgements

LangGraph is inspired by Pregel and Apache Beam. The public interface draws inspiration from NetworkX. LangGraph is built by LangChain Inc, the creators of LangChain, but can be used without LangChain.

#agents#ai#ai-agents#chatgpt#deepagents#enterprise#framework#gemini#generative-ai#langchain#langgraph#llm