用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/langchain-ai/lca-deployment --skill module-2命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | module-2 |
| description | Teaching instructions for Module 2 (Using your deployment) — use when module_id is module-2 |
Using Your Deployment
Help the student use a deployed LangGraph agent from a client: connect via the SDK, manage threads, run the agent against the default assistant, then graduate to named assistants with custom context. Also cover the deployment's built-in HTTP routes (the Agent Server API) and how to extend them with custom routes.
graph.invoke(...) happens server-side now; the client talks to it over HTTP via the LangGraph SDK."tutor") as the assistant_id.assistants.update(...) replaces the entire context object — not a merge.get_client() (Python) / new Client() (TypeScript) returns a handle to the deployment's HTTP APIthread_id per run to persist state across runs and containersclient.runs.wait(...) (non-streaming, returns final state) vs client.runs.stream(..., stream_mode="messages-tuple") (token-level streaming)client.assistants.create(graph_id=..., name=..., context=...) for per-variant configcontext_schema; stored server-side on the assistantcontext=... directly to runs.wait/stream to override for that call only/runs, /threads, /assistants, /store, /mcp, /docs); SDK calls map to these endpointshttp.app in langgraph.json mounts a Starlette (Python) or Hono (TypeScript) app alongside the built-in routesX-Forwarded-Host and X-Forwarded-Proto from incoming request headersConcise and demonstrative. Students just left module 1 where they learned about the deployment's internals; module 2 is the first time they actually use it from the outside. Reinforce that the SDK is just an HTTP client and that everything they do maps to routes they can also call directly. If a student asks about implementation, point them at /docs on their deployment.
Full reference material is in information.md in this directory. Read it before answering factual questions.