langsmith-deployment
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "langsmith-deployment":https://skillpi.com/zh/skills/deepskill-85d9209c9d32a18d8bfdb7e9d682bbc2aafe4d7e33efd3f1eba07c0a01c7c382。安装前核对上游来源和版本:https://github.com/soba-labs/langchain-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于使用 LangSmith 的部署与运维:选择云部署、混合/自托管(含控制平面)或独立部署方案;准备或验证 langgraph.json;创建或回滚部署修订;将 CI/CD 集成到控制平面 API;配置环境变量与密钥;设置监控、告警与 Webhook;以及排查 LangChain/LangGraph 应用的部署、运行或扩展问题。
介绍来源: third_party · soba-labs · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: langsmith-deployment
description: "Deploy and operate production agent servers with LangSmith Deployment. Use when work involves choosing Cloud vs Hybrid/Self-hosted-with-control-plane vs Standalone, preparing/validating langgraph.json, creating deployments or revisions, rolling back revisions, wiring CI/CD to control-plane APIs, configuring environment variables and secrets, setting monitoring/alerts/webhooks, or troubleshooting deployment/runtime/scaling issues for LangChain/LangGraph applications."LangSmith Deployment
Use this skill to deploy, revise, monitor, and troubleshoot LangGraph-based agents in LangSmith Deployment.
Use This Skill When
- You need to deploy a new agent to LangSmith Cloud.
- You need to create a new deployment revision from Git changes or env changes.
- You need rollback guidance for a failing revision.
- You need to choose deployment model: Cloud, Hybrid/Self-hosted with control plane, or Standalone server.
- You need CI/CD automation using LangSmith Deployment control-plane APIs.
- You need monitoring and alert setup aligned with current LangSmith alert model.
- You need
langgraph.jsonvalidation and deployment compatibility checks.
Deployment Model Selection
| Model | Use when | Build/Source | Operates infra |
|---|---|---|---|
| Cloud | Fastest managed production path | GitHub repo via control plane | LangSmith |
| Hybrid/Self-hosted with control plane | You need private data plane + centralized deployment UI/API | Container image + control plane | You |
| Standalone server | You want direct Agent Server hosting without control plane | Containerized server | You |
Core Workflow
- Validate local deployment config.
- Choose deployment model and endpoint strategy.
- Create deployment or revision.
- Configure environment variables and secrets correctly.
- Configure monitoring and alerts.
- Verify runtime behavior and keep rollback path ready.
Script-First Commands
1) Validate langgraph.json
uv run python skills/langsmith-deployment/scripts/validate_deployment.py --config langgraph.json --target cloud
2) Create a Cloud deployment (US default)
uv run python skills/langsmith-deployment/scripts/deploy_to_langsmith.py \
--name "my-agent-prod" \
--owner my-org \
--repo my-agent-repo \
--branch main \
--config langgraph.json
3) Create a Cloud deployment (EU)
uv run python skills/langsmith-deployment/scripts/deploy_to_langsmith.py \
--name "my-agent-prod" \
--owner my-org \
--repo my-agent-repo \
--region eu
4) Use a self-hosted control plane
uv run python skills/langsmith-deployment/scripts/deploy_to_langsmith.py \
--name "my-agent-prod" \
--owner my-org \
--repo my-agent-repo \
--control-plane-url https://<your-langsmith-host>/api-host
5) Create a revision for an existing deployment
uv run python skills/langsmith-deployment/scripts/deploy_to_langsmith.py \
--name "my-agent-prod" \
--owner my-org \
--repo my-agent-repo \
--deployment-id <deployment-id> \
--branch main
6) Roll back deployment revision
uv run python skills/langsmith-deployment/scripts/rollback_deployment.py \
--deployment-id <deployment-id> \
--list-revisions
uv run python skills/langsmith-deployment/scripts/rollback_deployment.py \
--deployment-id <deployment-id>
7) Generate monitoring + alert setup plan
uv run python skills/langsmith-deployment/scripts/setup_monitoring.py \
--project my-agent-prod \
--output-json /tmp/monitoring-plan.json
Note: setup_monitoring.py generates a docs-aligned setup plan/templates. Alerts are configured in LangSmith UI per project.
Configuration Rules To Enforce
graphsis required inlanggraph.json.- For Python projects,
dependenciesis required. - For JS projects (
node_versionpresent), dependencies may be handled viapackage.json. envmay be either a string path to an env file or an inline object map.python_versionshould be one of3.11,3.12,3.13when set.pip_installershould be one ofauto,pip,uvwhen set.node_versioncurrently documented for LangGraph.js as20.
API/Endpoint Notes
- LangSmith Deployment control-plane API defaults are:
- US:
https://api.host.langchain.com. - EU:
https://eu.api.host.langchain.com. - Self-hosted control-plane base URL is typically
https://<host>/api-host. - For org-scoped API keys, include workspace/tenant id (
X-Tenant-Id), exposed by scripts as--tenant-id.
Secrets And Environment Guidance
- Never hardcode secrets in
langgraph.jsonor source code. - Prefer environment injection from deployment UI, Kubernetes Secrets, or cloud secret managers.
- Avoid passing secrets in shell arguments when possible; prefer
LANGSMITH_API_KEYenv var. - In control-plane deployment flows, tracing auth env handling differs from standalone; rely on deployment model docs before overriding tracing/auth vars.
- For standalone server, ensure required runtime vars are present (
DATABASE_URI,REDIS_URI, license key, and any app provider keys).
Verification After Deploy
- Check deployment/revision status in LangSmith Deployments UI.
- Verify server API and health endpoints from deployment runtime (
/docsetc.). - Run a smoke invocation against your assistant/graph.
- Confirm traces, latency, and error metrics in Monitoring dashboards.
References To Load By Task
references/deployment-guide.md: Deployment model choice and end-to-end execution.references/cicd-integration.md: CI/CD stages, control-plane automation patterns, preview/prod strategy.references/environment-management.md: Env var sources, secrets patterns, standalone required vars.references/monitoring-alerts.md: Dashboards, alert model, webhook payload guidance.references/scaling-configuration.md: Scaling responsibilities by model and tuning knobs.references/troubleshooting-deployment.md: Failure triage and rollback strategy.
Script Map
scripts/validate_deployment.py: Validatelanggraph.jsonand deployment readiness.scripts/deploy_to_langsmith.py: Create deployment or revision via control-plane API.scripts/deploy_to_langsmith.ts: TypeScript equivalent deploy/revision script.scripts/rollback_deployment.py: List and rollback revisions.scripts/setup_monitoring.py: Generate alert/dashboard/webhook setup plan.
Assets
assets/templates/langgraph-cloud.json: Cloud-oriented starter config.assets/templates/github-actions-deploy.yml: CI/CD template for deployment automation.assets/templates/kubernetes-deployment.yaml: Kubernetes template for self-managed environments.assets/templates/.env.example: Env var template for safe sharing.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 LangSmith 生产级代理服务器部署的完整端到端解决方案
- 覆盖云/混合/独立三种部署模型选型,满足不同安全与合规需求
- 集成 CI/CD、监控告警、回滚机制,显著提升运维效率与系统稳定性
亮点
- 触发词精准覆盖部署全生命周期关键场景(创建/修订/回滚/监控/故障排查)
- 明确区分 Cloud/EU/自托管控制平面等部署变体,边界清晰无歧义
待提升项
-
description写错位置 原报告严重程度:轻微
顶层 description 字段为空,实际描述内容位于 skill_body 内部
改进建议:将 description 内容移至顶层 frontmatter 字段,保持规范一致性
-
文档长度接近上限 原报告严重程度:轻微
SKILL.md 文件约 450 行,接近 500 行建议上限
改进建议:考虑将部分参考内容移至独立文档文件,保持主文件简洁
亮点
- Core Workflow 六步法清晰划分部署阶段,逻辑严谨
- Script-First Commands 提供可直接复用的完整命令模板,降低使用门槛
- Configuration Rules 明确约束 langgraph.json 格式,提升配置可靠性
待提升项
-
缺少 When to Use 显式章节 原报告严重程度:轻微
未使用标准 When to Use 章节标题,而是使用 Use This Skill When
改进建议:建议统一使用 When to Use 作为标准章节标题,便于用户快速定位
亮点
- scripts 路径明确,参数命名规范,与 LangSmith API 保持一致
- Secrets And Environment Guidance 强调安全最佳实践,避免硬编码密钥
- Verification After Deploy 提供部署后验证 checklist,确保上线质量
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- api.host.langchain.com
- eu.api.host.langchain.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。