前提条件
开始之前,请确保具备以下内容:- 一个 GitHub 账户
- 一个 LangSmith 账户(可免费注册)
部署你的代理
1. 在 GitHub 上创建仓库
若要部署到 LangSmith,应用代码必须位于 GitHub 仓库中。公共仓库和私有仓库均受支持。对于本快速入门,请先按照本地服务器设置指南确保你的应用与 LangGraph 兼容。然后,将代码推送到仓库。2. Deploy to LangSmith
Navigate to LangSmith Deployment
Log in to LangSmith. In the left sidebar, select Deployments.
Create new deployment
Click the + New Deployment button. A pane will open where you can fill in the required fields.
Link repository
If you are a first time user or adding a private repository that has not been previously connected, click the Add new account button and follow the instructions to connect your GitHub account.
3. Test your application in Studio
Once your application is deployed:- Select the deployment you just created to view more details.
- Click the Studio button in the top right corner. Studio will open to display your graph.
4. Get the API URL for your deployment
- In the Deployment details view in LangGraph, click the API URL to copy it to your clipboard.
- Click the
URLto copy it to the clipboard.
5. Test the API
You can now test the API:- JavaScript
- Rest API
- Install LangGraph JS:
- Send a message to the agent:
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

