Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
使用模板定义沙盒的容器镜像、资源限制和配置。
from langsmith.sandbox import SandboxClient client = SandboxClient() client.create_template( name="python-sandbox", image="python:3.12-slim", )
import { SandboxClient } from "langsmith/experimental/sandbox"; const client = new SandboxClient(); await client.createTemplate("node-sandbox", { image: "node:20-slim", });
curl -X POST "$LANGSMITH_ENDPOINT/api/v2/sandboxes/templates" \ -H "x-api-key: $LANGSMITH_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "python-sandbox", "image": "python:3.12-slim", "resources": {"cpu": "500m", "memory": "512Mi", "storage": "2Gi"} }'