跳到內容

Agent Framework

langchain-ai/langgraph

langchain-ai/langgraph· Python

圖結構編排框架,打造可中斷續跑的 LLM agent

GitHub 數據

Stars
30,807
Forks
5,260
Watchers
154
Open issues
508

meta

License
MIT
主要語言
Python
最後 commit
2026-04-29
數據抓取時間
2026-04-29

LangGraph 把 agent 流程建模成節點與邊的圖,內建狀態持久化、checkpoint、時光回溯除錯與 human-in-the-loop 中斷機制。由 LangChain 團隊打造,鎖定需要明確控制分支、重試與長時間狀態的正式環境多 agent 系統。`pip install langgraph` 即可使用,可搭配 LangSmith 追蹤與 LangGraph Platform 託管部署,是 2026 年企業端的主流選擇。

編輯試用心得

需要持久狀態、明確控制流與人工審核節點時選 LangGraph,正式環境成熟度與除錯性勝過 CrewAI、AutoGen。代價是寫法繁瑣:定義 node、edge、TypedDict state 比單輪 ReAct loop 重得多,還得吃下整套 LangChain 抽象。一次性對話或簡單 tool calling 別用,直接拿 OpenAI Agents SDK 或原生 function calling 就好。

最後更新: 2026-04-29

We use cookies

Anonymous analytics help us improve the site. You can opt out anytime. Learn more