LangGraph Platform
LangGraph Platform
https://langchain-ai.github.io/langgraph/concepts/template_applications/
Template Applications¶
Templates are open source reference applications designed to help you get started quickly when building with LangGraph. They provide working examples of common agentic workflows that can be customized to your needs.
You can create an application from a template using the LangGraph CLI.
Requirements
- Python >= 3.11
- LangGraph CLI: Requires langchain-cli[inmem] >= 0.1.58
Install the LangGraph CLI¶
Available Templates¶
Template Description Python JS/TS New LangGraph Project A simple, minimal chatbot with memory. Repo Repo ReAct Agent A simple agent that can be flexibly extended to many tools. Repo Repo Memory Agent A ReAct-style agent with an additional tool to store memories for use across threads. Repo Repo Retrieval Agent An agent that includes a retrieval-based question-answering system. Repo Repo Data-Enrichment Agent An agent that performs web searches and organizes its findings into a structured format. Repo Repo
Launch Local LangGraph Server
https://langchain-ai.github.io/langgraph/tutorials/langgraph-platform/local-server/
Launch LangGraph Server¶ 🚀 启动 LangGraph Server¶
This will start up the LangGraph API server locally. If this runs successfully, you should see something like:
这将在本地启动 LangGraph API 服务器。如果成功运行,您应该会看到如下内容:Ready! 准备!
API: http://localhost:2024 应用程序接口:http://localhost:2024
Docs: http://localhost:2024/docs 文档:http://localhost:2024/docs
LangGraph Studio Web UI: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024 LangGraph Studio Web 界面:https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024
Deployment Options
https://langchain-ai.github.io/langgraph/tutorials/deployment/#deployment-options
- Cloud SaaS: Connect to your GitHub repositories and deploy LangGraph Servers to LangChain's cloud. We manage everything.
- Self-Hosted Data Plane: Create deployments from the Control Plane UI and deploy LangGraph Servers to your cloud. We manage the control plane, you manage the deployments.
- Self-Hosted Control Plane: Create deployments from a self-hosted Control Plane UI and deploy LangGraph Servers to your cloud. You manage everything.
Self-Hosted Control Plane:从自托管Control Plane UI创建部署并将 LangGraph 服务器部署到您的云中。您管理一切。- Standalone Container: Deploy LangGraph Server Docker images however you like.
Standalone Container:随心所欲地部署 LangGraph Server Docker 镜像。A quick comparison... 快速比较......
Cloud SaaS 云 SaaS Self-Hosted Data Plane 自托管数据平面 Self-Hosted Control Plane 自托管控制平面 Standalone Container 独立容器 Control Plane UI/API 控制平面 UI/API Yes Yes Yes No CI/CD CI/CD Managed internally by platform 由平台内部管理 Managed externally by you 由您外部管理 Managed externally by you 由您外部管理 Managed externally by you 由您外部管理 Data/Compute Residency 数据/计算驻留 LangChain’s cloud LangChain 的云 Your cloud 您的云 Your cloud 您的云 Your cloud 您的云 Required Permissions 所需权限 None See details here. 查看详细信息here。 See details here. 查看详细信息here。 None LangSmith Compatibility LangSmith 兼容性 Trace to LangSmith SaaS Trace 到 LangSmith SaaS Trace to LangSmith SaaS Trace 到 LangSmith SaaS Trace to Self-Hosted LangSmith 跟踪到自托管 LangSmith Optional tracing 可选跟踪 Pricing 定价 Plus Enterprise 企业 Enterprise 企业 Developer 开发 人员
Standalone Container¶
https://langchain-ai.github.io/langgraph/concepts/langgraph_standalone_container/
https://langchain-ai.github.io/langgraph/cloud/deployment/standalone_container/#prerequisites
https://langchain-ai.github.io/langgraph/concepts/langgraph_cli/
TEST
https://github.com/fanqingsong/new-langgraph-project