{"_id":"langsmith@0.11.4","bugs":{"url":"https://github.com/langchain-ai/langsmith-javascript/issues"},"dist":{"shasum":"29585ec44741643e5b44e2bfa300b476e484b5b4","tarball":"http://registry-npm.ywwl.com/langsmith/download/langsmith-0.11.4.tgz","fileCount":1092,"integrity":"sha512-sasOaKuuZ3OKSE9XIXSAxBUX1/r6t2z0SUe2VgBPLQHKKyLayYzKwU38nKzz0cQoMpN4zpSxz7poQwSTt1OdoA==","signatures":[{"sig":"MEUCIQCKMbmidsQYRg7i0ulsZ3rqpKmOvD4efWApCPQg0Q7JhAIgMB2T0qqrcSYATepSb0d8ubvJPWJ1m9fi7BHHEyaib2E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDlKm7BD+BQSrFa36kGT/jQCRQL8yYyFSS4x7NSg51eOwIhAINi9d8dbsZ+XgJP33L276KKHu9uQrjRqOIxya6tW7GC"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/langsmith@0.11.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4603504,"size":1017059,"noattachment":false,"key":"/langsmith/-/langsmith-0.11.4.tgz"},"main":"./index.js","name":"langsmith","pnpm":{"overrides":{"hono":"4.13.11","uuid":"^11.1.1","vite":"7.3.7","esbuild":"^0.28.1","js-yaml":"4.3.2","postcss":"8.5.23","fast-uri":"3.1.8","form-data":"4.0.6","langsmith":"0.6.0","minimatch":"^9.0.7","smol-toml":"1.9.0","handlebars":"4.7.10","ip-address":"10.7.1","@babel/core":"^7.29.7","markdown-it":"^14.3.3","source-map-js":"1.2.2","@hono/node-server":"2.0.10","undici@>=7.0.0 <8.0.0":"7.29.1","undici@>=8.0.0 <9.0.0":"8.10.2","brace-expansion@<1.1.21":"1.1.21","@modelcontextprotocol/sdk":"1.32.0","brace-expansion@>=2.0.0 <2.1.7":"2.1.7","brace-expansion@>=3.0.0 <3.0.9":"3.0.9","brace-expansion@>=4.0.0 <5.0.12":"5.0.12"}},"type":"commonjs","_from":"file:package/langsmith-0.11.4.tgz","types":"./index.d.ts","author":{"name":"LangChain"},"browser":{"./lib/utils/fs.js":"./lib/utils/fs.browser.js","./lib/utils/fs.mjs":"./lib/utils/fs.browser.mjs","./lib/utils/worker_threads.js":"./lib/utils/worker_threads.browser.js","./lib/utils/worker_threads.mjs":"./lib/utils/worker_threads.browser.mjs"},"exports":{".":{"types":"./index.d.mts","default":"./index.mjs","require":{"types":"./index.d.ts","default":"./index.js"}},"./jest":{"import":"./jest.mjs","require":"./jest.js"},"./error":{"import":"./error.mjs","require":"./error.js"},"./index":{"import":"./index.mjs","require":"./index.js"},"./lib/*":{"import":"./lib/*.mjs","require":"./lib/*.js"},"./client":{"import":"./lib/client.mjs","require":"./lib/client.js"},"./core/*":{"import":"./core/*.mjs","require":"./core/*.js"},"./jest/*":{"import":"./jest/*.mjs","require":"./jest/*.js"},"./vitest":{"import":"./vitest.mjs","require":{"types":"./vitest.d.ts"}},"./jest.js":{"default":"./jest.js"},"./sandbox":{"import":"./sandbox.mjs","require":"./sandbox.js"},"./schemas":{"import":"./schemas.mjs","require":"./schemas.js"},"./uploads":{"import":"./uploads.mjs","require":"./uploads.js"},"./utils/*":{"import":"./utils/*.mjs","require":"./utils/*.js"},"./version":{"import":"./version.mjs","require":"./version.js"},"./error.js":{"default":"./error.js"},"./index.js":{"default":"./index.js"},"./jest.mjs":{"default":"./jest.mjs"},"./lib/*.js":{"default":"./lib/*.js"},"./resource":{"import":"./resource.mjs","require":"./resource.js"},"./vitest/*":{"import":"./vitest/*.mjs","require":"./vitest/*.js"},"./wrappers":{"import":"./wrappers.mjs","require":"./wrappers.js"},"./client.js":{"default":"./client.js"},"./core/*.js":{"default":"./core/*.js"},"./error.mjs":{"default":"./error.mjs"},"./index.mjs":{"default":"./index.mjs"},"./jest/*.js":{"default":"./jest/*.js"},"./langchain":{"import":"./langchain.mjs","require":"./langchain.js"},"./lib/*.mjs":{"default":"./lib/*.mjs"},"./resources":{"import":"./resources.mjs","require":"./resources.js"},"./run_trees":{"import":"./run_trees.mjs","require":"./run_trees.js"},"./streaming":{"import":"./streaming.mjs","require":"./streaming.js"},"./traceable":{"import":"./traceable.mjs","require":"./traceable.js"},"./anonymizer":{"import":"./anonymizer.mjs","require":"./anonymizer.js"},"./client.mjs":{"default":"./client.mjs"},"./core/*.mjs":{"default":"./core/*.mjs"},"./evaluation":{"import":"./evaluation.mjs","require":"./evaluation.js"},"./jest/*.mjs":{"default":"./jest/*.mjs"},"./pagination":{"import":"./pagination.mjs","require":"./pagination.js"},"./sandbox.js":{"default":"./sandbox.js"},"./schemas.js":{"default":"./schemas.js"},"./uploads.js":{"default":"./uploads.js"},"./utils/*.js":{"default":"./utils/*.js"},"./version.js":{"default":"./version.js"},"./vitest.mjs":{"default":"./vitest.mjs"},"./wrappers/*":{"import":"./wrappers/*.mjs","require":"./wrappers/*.js"},"./api-promise":{"import":"./api-promise.mjs","require":"./api-promise.js"},"./resource.js":{"default":"./resource.js"},"./resources/*":{"import":"./resources/*.mjs","require":"./resources/*.js"},"./sandbox.mjs":{"default":"./sandbox.mjs"},"./schemas.mjs":{"default":"./schemas.mjs"},"./uploads.mjs":{"default":"./uploads.mjs"},"./utils/*.mjs":{"default":"./utils/*.mjs"},"./version.mjs":{"default":"./version.mjs"},"./vitest/*.js":{"default":"./vitest/*.js"},"./wrappers.js":{"default":"./wrappers.js"},"./langchain.js":{"default":"./langchain.js"},"./package.json":"./package.json","./resource.mjs":{"default":"./resource.mjs"},"./resources.js":{"default":"./resources.js"},"./run_trees.js":{"default":"./run_trees.js"},"./singletons/*":{"import":"./singletons/*.mjs","require":"./singletons/*.js"},"./streaming.js":{"default":"./streaming.js"},"./traceable.js":{"default":"./traceable.js"},"./vitest/*.mjs":{"default":"./vitest/*.mjs"},"./wrappers.mjs":{"default":"./wrappers.mjs"},"./anonymizer.js":{"default":"./anonymizer.js"},"./evaluation.js":{"default":"./evaluation.js"},"./langchain.mjs":{"default":"./langchain.mjs"},"./pagination.js":{"default":"./pagination.js"},"./resources.mjs":{"default":"./resources.mjs"},"./run_trees.mjs":{"default":"./run_trees.mjs"},"./streaming.mjs":{"default":"./streaming.mjs"},"./traceable.mjs":{"default":"./traceable.mjs"},"./wrappers/*.js":{"default":"./wrappers/*.js"},"./anonymizer.mjs":{"default":"./anonymizer.mjs"},"./api-promise.js":{"default":"./api-promise.js"},"./evaluation.mjs":{"default":"./evaluation.mjs"},"./experimental/*":{"import":"./experimental/*.mjs","require":"./experimental/*.js"},"./pagination.mjs":{"default":"./pagination.mjs"},"./resources/*.js":{"default":"./resources/*.js"},"./wrappers/*.mjs":{"default":"./wrappers/*.mjs"},"./api-promise.mjs":{"default":"./api-promise.mjs"},"./resources/*.mjs":{"default":"./resources/*.mjs"},"./singletons/*.js":{"default":"./singletons/*.js"},"./singletons/*.mjs":{"default":"./singletons/*.mjs"},"./experimental/*.js":{"default":"./experimental/*.js"},"./experimental/*.mjs":{"default":"./experimental/*.mjs"}},"license":"MIT","private":false,"scripts":{"fix":"./scripts/format","tsn":"ts-node -r tsconfig-paths/register","lint":"./scripts/lint","test":"./scripts/test","build":"./scripts/build","format":"./scripts/format","test:vitest":"vitest run --config vitest.config.ts","build:typedoc":"pnpm build && rm -rf ./_build/api_refs && npx typedoc","test:eval:vitest":"vitest run --config ls.vitest.config.ts","test:integration":"NODE_OPTIONS=--experimental-vm-modules ./node_modules/.bin/jest --selectProjects lib --testPathIgnorePatterns='cache.*\\.int\\.test\\.ts$' 'rate_limit.*\\.int\\.test\\.ts$' 'ai_sdk_evaluate\\.int\\.test\\.ts$' --testPathPattern='\\.int\\.test\\.ts$' --testTimeout 100000"},"version":"0.11.4","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7e7afe2f-e002-4ce8-a4a3-e3ad61bd1ebc"}},"homepage":"https://github.com/langchain-ai/langsmith-javascript#readme","keywords":["LLM","Tracing","Evaluation","LangChain"],"_resolved":"/home/runner/work/langsmith-javascript/langsmith-javascript/package/langsmith-0.11.4.tgz","overrides":{"hono":"4.13.11","uuid":"^11.1.1","vite":"7.3.7","esbuild":"^0.28.1","js-yaml":"4.3.2","postcss":"8.5.23","fast-uri":"3.1.8","form-data":"4.0.6","langsmith":"0.6.0","minimatch":"^9.0.7","smol-toml":"1.9.0","handlebars":"4.7.10","ip-address":"10.7.1","@babel/core":"^7.29.7","markdown-it":"^14.3.3","source-map-js":"1.2.2","@hono/node-server":"2.0.10","undici@>=7.0.0 <8.0.0":"7.29.1","undici@>=8.0.0 <9.0.0":"8.10.2","brace-expansion@<1.1.21":"1.1.21","@modelcontextprotocol/sdk":"1.32.0","brace-expansion@>=2.0.0 <2.1.7":"2.1.7","brace-expansion@>=3.0.0 <3.0.9":"3.0.9","brace-expansion@>=4.0.0 <5.0.12":"5.0.12"},"_integrity":"sha512-sasOaKuuZ3OKSE9XIXSAxBUX1/r6t2z0SUe2VgBPLQHKKyLayYzKwU38nKzz0cQoMpN4zpSxz7poQwSTt1OdoA==","repository":{"url":"git+https://github.com/langchain-ai/langsmith-javascript.git","type":"git"},"_npmVersion":"11.19.0","description":"Client library to connect to the LangSmith Observability and Evaluation Platform.","directories":{},"maintainers":[{"name":"jacoblee93","email":"jacoblee93@gmail.com"},{"name":"davidduong","email":"david@duong.cz"},{"name":"basproul","email":"braceasproul@gmail.com"},{"name":"lc-oss-admin","email":"oss-admin@langchain.dev"}],"resolutions":{"hono":"4.13.11","uuid":"^11.1.1","vite":"7.3.7","esbuild":"^0.28.1","js-yaml":"4.3.2","postcss":"8.5.23","fast-uri":"3.1.8","form-data":"4.0.6","langsmith":"0.6.0","minimatch":"^9.0.7","smol-toml":"1.9.0","handlebars":"4.7.10","ip-address":"10.7.1","@babel/core":"^7.29.7","markdown-it":"^14.3.3","source-map-js":"1.2.2","@hono/node-server":"2.0.10","undici@>=7.0.0 <8.0.0":"7.29.1","undici@>=8.0.0 <9.0.0":"8.10.2","brace-expansion@<1.1.21":"1.1.21","@modelcontextprotocol/sdk":"1.32.0","brace-expansion@>=2.0.0 <2.1.7":"2.1.7","brace-expansion@>=3.0.0 <3.0.9":"3.0.9","brace-expansion@>=4.0.0 <5.0.12":"5.0.12"},"_nodeVersion":"24.21.0","dependencies":{"p-queue":"6.6.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.30.1","peerDependencies":{"ws":">=7","openai":"*","@opentelemetry/api":"*","@opentelemetry/sdk-trace-base":"*","@opentelemetry/exporter-trace-otlp-proto":"*"},"peerDependenciesMeta":{"ws":{"optional":true},"openai":{"optional":true},"@opentelemetry/api":{"optional":true},"@opentelemetry/sdk-trace-base":{"optional":true},"@opentelemetry/exporter-trace-otlp-proto":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/langsmith_0.11.4_1793200574616_0.4554995139761082"},"readme":"# LangSmith Client SDK\n\n![NPM Version](https://img.shields.io/npm/v/langsmith?logo=npm)\n[![JS Downloads](https://img.shields.io/npm/dm/langsmith)](https://www.npmjs.com/package/langsmith)\n\nThis package contains the TypeScript client for interacting with the [LangSmith platform](https://smith.langchain.com/).\n\nTo install:\n\n```bash\npnpm add langsmith\n```\n\nLangSmith helps you and your team develop and evaluate language models and intelligent agents. It is compatible with any LLM Application and provides seamless integration with [LangChain](https://github.com/hwchase17/langchainjs), a widely recognized open-source framework that simplifies the process for developers to create powerful language model applications.\n\n> **Note**: You can enjoy the benefits of LangSmith without using the LangChain open-source packages! To get started with your own proprietary framework, set up your account and then skip to [Logging Traces Outside LangChain](#logging-traces-outside-langchain).\n\n> **Cookbook:** For tutorials on how to get more value out of LangSmith, check out the [Langsmith Cookbook](https://github.com/langchain-ai/langsmith-cookbook/tree/main) repo.\n\nA typical workflow looks like:\n\n1. Set up an account with LangSmith.\n2. Log traces.\n3. Debug, Create Datasets, and Evaluate Runs.\n\nWe'll walk through these steps in more detail below.\n\n## 1. Connect to LangSmith\n\nSign up for [LangSmith](https://smith.langchain.com/) using your GitHub, Discord accounts, or an email address and password. If you sign up with an email, make sure to verify your email address before logging in.\n\nThen, create a unique API key on the [Settings Page](https://smith.langchain.com/settings).\n\n> [!NOTE]\n> Save the API Key in a secure location. It will not be shown again.\n\n## 2. Log Traces\n\nYou can log traces natively in your LangChain application or using a LangSmith RunTree.\n\n### Logging Traces with LangChain\n\nLangSmith seamlessly integrates with the JavaScript LangChain library to record traces from your LLM applications.\n\n```bash\npnpm add langchain\n```\n\n1. **Copy the environment variables from the Settings Page and add them to your application.**\n\nTracing can be activated by setting the following environment variables or by manually specifying the LangChainTracer.\n\n```typescript\nprocess.env.LANGSMITH_TRACING = 'true';\nprocess.env.LANGSMITH_ENDPOINT = 'https://api.smith.langchain.com';\n// process.env.LANGSMITH_ENDPOINT = \"https://eu.api.smith.langchain.com\"; // If signed up in the EU region\nprocess.env.LANGSMITH_API_KEY = '<YOUR-LANGSMITH-API-KEY>';\n// process.env.LANGSMITH_PROJECT = \"My Project Name\"; // Optional: \"default\" is used if not set\n// process.env.LANGSMITH_WORKSPACE_ID = \"<YOUR-WORKSPACE-ID>\"; // Required for org-scoped API keys\n```\n\n> **Tip:** Projects are groups of traces. All runs are logged to a project. If not specified, the project is set to `default`.\n\n2. **Run an Agent, Chain, or Language Model in LangChain**\n\nIf the environment variables are correctly set, your application will automatically connect to the LangSmith platform.\n\n```typescript\nimport { ChatOpenAI } from 'langchain/chat_models/openai';\n\nconst chat = new ChatOpenAI({ temperature: 0 });\nconst response = await chat.predict('Translate this sentence from English to French. I love programming.');\nconsole.log(response);\n```\n\n### Logging Traces Outside LangChain\n\nYou can still use the LangSmith development platform without depending on any\nLangChain code. You can connect either by setting the appropriate environment variables,\nor by directly specifying the connection information in the RunTree.\n\n1. **Copy the environment variables from the Settings Page and add them to your application.**\n\n```shell\nexport LANGSMITH_TRACING=\"true\";\nexport LANGSMITH_API_KEY=<YOUR-LANGSMITH-API-KEY>\n# export LANGSMITH_PROJECT=\"My Project Name\" #  Optional: \"default\" is used if not set\n# export LANGSMITH_ENDPOINT=https://api.smith.langchain.com # or your own server\n```\n\n## Integrations\n\nLangsmith's `traceable` wrapper function makes it easy to trace any function or LLM call in your own favorite framework. Below are some examples.\n\n### OpenAI SDK\n\n<!-- markdown-link-check-disable -->\n\nThe easiest way to trace calls from the [OpenAI SDK](https://platform.openai.com/docs/api-reference) with LangSmith\nis using the `wrapOpenAI` wrapper function available in LangSmith 0.1.3 and up.\n\nIn order to use, you first need to set your LangSmith API key:\n\n```shell\nexport LANGSMITH_TRACING=\"true\";\nexport LANGSMITH_API_KEY=<your-api-key>\n```\n\nNext, you will need to install the LangSmith SDK and the OpenAI SDK:\n\n```shell\nnpm install langsmith openai\n```\n\nAfter that, initialize your OpenAI client and wrap the client with `wrapOpenAI` method to enable tracing for the completions and chat completions methods:\n\n```ts\nimport { OpenAI } from 'openai';\nimport { wrapOpenAI } from 'langsmith/wrappers';\n\nconst openai = wrapOpenAI(new OpenAI());\n\nawait openai.chat.completions.create({\n  model: 'gpt-5.4',\n  messages: [{ content: 'Hi there!', role: 'user' }],\n});\n```\n\nAlternatively, you can use the `traceable` function to wrap the client methods you want to use:\n\n```ts\nimport { traceable } from 'langsmith/traceable';\n\nconst openai = new OpenAI();\n\nconst createCompletion = traceable(openai.chat.completions.create.bind(openai.chat.completions), {\n  name: 'OpenAI Chat Completion',\n  run_type: 'llm',\n});\n\nawait createCompletion({\n  model: 'gpt-5.4',\n  messages: [{ content: 'Hi there!', role: 'user' }],\n});\n```\n\nNote the use of `.bind` to preserve the function's context. The `run_type` field in the\nextra config object marks the function as an LLM call, and enables token usage tracking\nfor OpenAI.\n\nOftentimes, you use the OpenAI client inside of other functions or as part of a longer\nsequence. You can automatically get nested traces by using this wrapped method\nwithin other functions wrapped with `traceable`.\n\n```ts\nconst nestedTrace = traceable(async (text: string) => {\n  const completion = await openai.chat.completions.create({\n    model: 'gpt-5.4',\n    messages: [{ content: text, role: 'user' }],\n  });\n  return completion;\n});\n\nawait nestedTrace('Why is the sky blue?');\n```\n\n```\n{\n  \"id\": \"chatcmpl-8sPToJQLLVepJvyeTfzZMOMVIKjMo\",\n  \"object\": \"chat.completion\",\n  \"created\": 1707978348,\n  \"model\": \"gpt-5.4\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"The sky appears blue because of a phenomenon known as Rayleigh scattering. The Earth's atmosphere is composed of tiny molecules, such as nitrogen and oxygen, which are much smaller than the wavelength of visible light. When sunlight interacts with these molecules, it gets scattered in all directions. However, shorter wavelengths of light (blue and violet) are scattered more compared to longer wavelengths (red, orange, and yellow). \\n\\nAs a result, when sunlight passes through the Earth's atmosphere, the blue and violet wavelengths are scattered in all directions, making the sky appear blue. This scattering of shorter wavelengths is also responsible for the vibrant colors observed during sunrise and sunset, when the sunlight has to pass through a thicker portion of the atmosphere, causing the longer wavelengths to dominate the scattered light.\"\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 13,\n    \"completion_tokens\": 154,\n    \"total_tokens\": 167\n  },\n  \"system_fingerprint\": null\n}\n```\n\n:::tip\n[Click here](https://smith.langchain.com/public/4af46ef6-b065-46dc-9cf0-70f1274edb01/r) to see an example LangSmith trace of the above.\n:::\n\n## Next.js\n\nYou can use the `traceable` wrapper function in Next.js apps to wrap arbitrary functions much like in the example above.\n\nOne neat trick you can use for Next.js and other similar server frameworks is to wrap the entire exported handler for a route\nto group traces for the any sub-runs. Here's an example:\n\n```ts\nimport { NextRequest, NextResponse } from 'next/server';\n\nimport { OpenAI } from 'openai';\nimport { traceable } from 'langsmith/traceable';\nimport { wrapOpenAI } from 'langsmith/wrappers';\n\nexport const runtime = 'edge';\n\nconst handler = traceable(\n  async function () {\n    const openai = wrapOpenAI(new OpenAI());\n\n    const completion = await openai.chat.completions.create({\n      model: 'gpt-5.4',\n      messages: [{ content: 'Why is the sky blue?', role: 'user' }],\n    });\n\n    const response1 = completion.choices[0].message.content;\n\n    const completion2 = await openai.chat.completions.create({\n      model: 'gpt-5.4',\n      messages: [\n        { content: 'Why is the sky blue?', role: 'user' },\n        { content: response1, role: 'assistant' },\n        { content: 'Cool thank you!', role: 'user' },\n      ],\n    });\n\n    const response2 = completion2.choices[0].message.content;\n\n    return {\n      text: response2,\n    };\n  },\n  {\n    name: 'Simple Next.js handler',\n  },\n);\n\nexport async function POST(req: NextRequest) {\n  const result = await handler();\n  return NextResponse.json(result);\n}\n```\n\nThe two OpenAI calls within the handler will be traced with appropriate inputs, outputs,\nand token usage information.\n\n:::tip\n[Click here](https://smith.langchain.com/public/faaf26ad-8c59-4622-bcfe-b7d896733ca6/r) to see an example LangSmith trace of the above.\n:::\n\n## Vercel AI SDK\n\nThe [Vercel AI SDK](https://sdk.vercel.ai/docs) contains integrations with a variety of model providers.\nHere's an example of how you can trace outputs in a Next.js handler:\n\n```ts\nimport { traceable } from 'langsmith/traceable';\nimport { OpenAIStream, StreamingTextResponse } from 'ai';\n\n// Note: There are no types for the Mistral API client yet.\nimport MistralClient from '@mistralai/mistralai';\n\nconst client = new MistralClient(process.env.MISTRAL_API_KEY || '');\n\nexport async function POST(req: Request) {\n  // Extract the `messages` from the body of the request\n  const { messages } = await req.json();\n\n  const mistralChatStream = traceable(client.chatStream.bind(client), {\n    name: 'Mistral Stream',\n    run_type: 'llm',\n  });\n\n  const response = await mistralChatStream({\n    model: 'mistral-tiny',\n    maxTokens: 1000,\n    messages,\n  });\n\n  // Convert the response into a friendly text-stream. The Mistral client responses are\n  // compatible with the Vercel AI SDK OpenAIStream adapter.\n  const stream = OpenAIStream(response as any);\n\n  // Respond with the stream\n  return new StreamingTextResponse(stream);\n}\n```\n\nSee the [AI SDK docs](https://sdk.vercel.ai/docs) for more examples.\n\n## Arbitrary SDKs\n\nYou can use the generic `wrapSDK` method to add tracing for arbitrary SDKs.\n\nDo note that this will trace ALL methods in the SDK, not just chat completion endpoints.\nIf the SDK you are wrapping has other methods, we recommend using it for only LLM calls.\n\nHere's an example using the Anthropic SDK:\n\n```ts\nimport { wrapSDK } from 'langsmith/wrappers';\nimport { Anthropic } from '@anthropic-ai/sdk';\n\nconst originalSDK = new Anthropic();\nconst sdkWithTracing = wrapSDK(originalSDK);\n\nconst response = await sdkWithTracing.messages.create({\n  messages: [\n    {\n      role: 'user',\n      content: `What is 1 + 1? Respond only with \"2\" and nothing else.`,\n    },\n  ],\n  model: 'claude-3-sonnet-20240229',\n  max_tokens: 1024,\n});\n```\n\n:::tip\n[Click here](https://smith.langchain.com/public/0e7248af-bbed-47cf-be9f-5967fea1dec1/r) to see an example LangSmith trace of the above.\n:::\n\n#### Alternatives: **Log traces using a RunTree.**\n\nA RunTree tracks your application. Each RunTree object is required to have a name and run_type. These and other important attributes are as follows:\n\n- `name`: `string` - used to identify the component's purpose\n- `run_type`: `string` - Currently one of \"llm\", \"chain\" or \"tool\"; more options will be added in the future\n- `inputs`: `Record<string, any>` - the inputs to the component\n- `outputs`: `Optional<Record<string, any>>` - the (optional) returned values from the component\n- `error`: `Optional<string>` - Any error messages that may have arisen during the call\n\n```typescript\nimport { RunTree, RunTreeConfig } from 'langsmith';\n\nconst parentRunConfig: RunTreeConfig = {\n  name: 'My Chat Bot',\n  run_type: 'chain',\n  inputs: {\n    text: \"Summarize this morning's meetings.\",\n  },\n  serialized: {}, // Serialized representation of this chain\n  // project_name: \"Defaults to the LANGSMITH_PROJECT env var\"\n  // apiUrl: \"Defaults to the LANGSMITH_ENDPOINT env var\"\n  // apiKey: \"Defaults to the LANGSMITH_API_KEY env var\"\n};\n\nconst parentRun = new RunTree(parentRunConfig);\n\nawait parentRun.postRun();\n\nconst childLlmRun = await parentRun.createChild({\n  name: 'My Proprietary LLM',\n  run_type: 'llm',\n  inputs: {\n    prompts: ['You are an AI Assistant. The time is XYZ.' + \" Summarize this morning's meetings.\"],\n  },\n});\n\nawait childLlmRun.postRun();\n\nawait childLlmRun.end({\n  outputs: {\n    generations: ['I should use the transcript_loader tool' + ' to fetch meeting_transcripts from XYZ'],\n  },\n});\n\nawait childLlmRun.patchRun();\n\nconst childToolRun = await parentRun.createChild({\n  name: 'transcript_loader',\n  run_type: 'tool',\n  inputs: {\n    date: 'XYZ',\n    content_type: 'meeting_transcripts',\n  },\n});\nawait childToolRun.postRun();\n\nawait childToolRun.end({\n  outputs: {\n    meetings: ['Meeting1 notes..'],\n  },\n});\n\nawait childToolRun.patchRun();\n\nconst childChainRun = await parentRun.createChild({\n  name: 'Unreliable Component',\n  run_type: 'tool',\n  inputs: {\n    input: 'Summarize these notes...',\n  },\n});\n\nawait childChainRun.postRun();\n\ntry {\n  // .... the component does work\n  throw new Error('Something went wrong');\n} catch (e) {\n  await childChainRun.end({\n    error: `I errored again ${e.message}`,\n  });\n  await childChainRun.patchRun();\n  throw e;\n}\n\nawait childChainRun.patchRun();\n\nawait parentRun.end({\n  outputs: {\n    output: ['The meeting notes are as follows:...'],\n  },\n});\n\n// False directs to not exclude child runs\nawait parentRun.patchRun();\n```\n\n## Evaluation\n\n#### Create a Dataset from Existing Runs\n\nOnce your runs are stored in LangSmith, you can convert them into a dataset.\nFor this example, we will do so using the Client, but you can also do this using\nthe web interface, as explained in the [LangSmith docs](https://docs.smith.langchain.com/docs/).\n\n```typescript\nimport { Client } from 'langsmith/client';\nconst client = new Client({\n  // apiUrl: \"https://api.langchain.com\", // Defaults to the LANGSMITH_ENDPOINT env var\n  // apiKey: \"my_api_key\", // Defaults to the LANGSMITH_API_KEY env var\n  /* callerOptions: {\n         maxConcurrency?: Infinity; // Maximum number of concurrent requests to make\n         maxRetries?: 6; // Maximum number of retries to make\n    */\n});\nconst datasetName = 'Example Dataset';\n// We will only use examples from the top level AgentExecutor run here,\n// and exclude runs that errored.\nconst runs = await client.listRuns({\n  projectName: 'my_project',\n  executionOrder: 1,\n  error: false,\n});\n\nconst dataset = await client.createDataset(datasetName, {\n  description: 'An example dataset',\n});\n\nfor (const run of runs) {\n  await client.createExample(run.inputs, run.outputs ?? {}, {\n    datasetId: dataset.id,\n  });\n}\n```\n\n## Additional Documentation\n\nTo learn more about the LangSmith platform, check out the [docs](https://docs.smith.langchain.com/docs/).\n\n# Generated REST client\n\nThe low-level, generated client (`Langsmith`) ships in the same package. Everything below is maintained by Stainless.\n\n## Installation\n\n```sh\nnpm install git+ssh://git@github.com:langchain-ai/langsmith-javascript.git\n```\n\n> [!NOTE]\n> Once this package is [published to npm](https://www.stainless.com/docs/guides/publish), this will become: `npm install langsmith`\n\n## Usage\n\nThe full API of this library can be found in [api.md](api.md).\n\n<!-- prettier-ignore -->\n```js\nimport Langsmith from 'langsmith';\n\nconst client = new Langsmith({\n  apiKey: process.env['LANGSMITH_API_KEY'], // This is the default and can be omitted\n  tenantID: process.env['LANGSMITH_TENANT_ID'], // This is the default and can be omitted\n});\n\nconst page = await client.runs.queryV2({ project_ids: ['00000000-0000-0000-0000-000000000000'] });\nconst run = page.items[0];\n\nconsole.log(run.id);\n```\n\n## Streaming responses\n\nWe provide support for streaming responses using Server Sent Events (SSE).\n\n```ts\nimport Langsmith from 'langsmith';\n\nconst client = new Langsmith();\n\nconst stream = await client.runs.streaming.queryV2();\nfor await (const queryPatchEvent of stream) {\n  console.log(queryPatchEvent.items);\n}\n```\n\nIf you need to cancel a stream, you can `break` from the loop\nor call `stream.controller.abort()`.\n\n### Request & Response types\n\nThis library includes TypeScript definitions for all request params and response fields. You may import and use them like so:\n\n<!-- prettier-ignore -->\n```ts\nimport Langsmith from 'langsmith';\n\nconst client = new Langsmith({\n  apiKey: process.env['LANGSMITH_API_KEY'], // This is the default and can be omitted\n  tenantID: process.env['LANGSMITH_TENANT_ID'], // This is the default and can be omitted\n});\n\nconst params: Langsmith.RunQueryV2Params = {\n  project_ids: ['00000000-0000-0000-0000-000000000000'],\n};\nconst [run]: [Langsmith.Run] = await client.runs.queryV2(params);\n```\n\nDocumentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.\n\n## Handling errors\n\nWhen the library is unable to connect to the API,\nor if the API returns a non-success status code (i.e., 4xx or 5xx response),\na subclass of `APIError` will be thrown:\n\n<!-- prettier-ignore -->\n```ts\nconst page = await client.runs\n  .queryV2({ project_ids: ['00000000-0000-0000-0000-000000000000'] })\n  .catch(async (err) => {\n    if (err instanceof Langsmith.APIError) {\n      console.log(err.status); // 400\n      console.log(err.name); // BadRequestError\n      console.log(err.headers); // {server: 'nginx', ...}\n    } else {\n      throw err;\n    }\n  });\n```\n\nError codes are as follows:\n\n| Status Code | Error Type                 |\n| ----------- | -------------------------- |\n| 400         | `BadRequestError`          |\n| 401         | `AuthenticationError`      |\n| 403         | `PermissionDeniedError`    |\n| 404         | `NotFoundError`            |\n| 422         | `UnprocessableEntityError` |\n| 429         | `RateLimitError`           |\n| >=500       | `InternalServerError`      |\n| N/A         | `APIConnectionError`       |\n\n### Retries\n\nCertain errors will be automatically retried 2 times by default, with a short exponential backoff.\nConnection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,\n429 Rate Limit, and >=500 Internal errors will all be retried by default.\n\nYou can use the `maxRetries` option to configure or disable this:\n\n<!-- prettier-ignore -->\n```js\n// Configure the default for all requests:\nconst client = new Langsmith({\n  maxRetries: 0, // default is 2\n});\n\n// Or, configure per-request:\nawait client.runs.queryV2({ project_ids: ['00000000-0000-0000-0000-000000000000'] }, {\n  maxRetries: 5,\n});\n```\n\n### Timeouts\n\nRequests time out after 1.5 minutes by default. You can configure this with a `timeout` option:\n\n<!-- prettier-ignore -->\n```ts\n// Configure the default for all requests:\nconst client = new Langsmith({\n  timeout: 20 * 1000, // 20 seconds (default is 1.5 minutes)\n});\n\n// Override per-request:\nawait client.runs.queryV2({ project_ids: ['00000000-0000-0000-0000-000000000000'] }, {\n  timeout: 5 * 1000,\n});\n```\n\nOn timeout, an `APIConnectionTimeoutError` is thrown.\n\nNote that requests which time out will be [retried twice by default](#retries).\n\n## Auto-pagination\n\nList methods in the Langsmith API are paginated.\nYou can use the `for await … of` syntax to iterate through items across all pages:\n\n```ts\nasync function fetchAllRuns(params) {\n  const allRuns = [];\n  // Automatically fetches more pages as needed.\n  for await (const run of client.runs.queryV2({\n    project_ids: ['00000000-0000-0000-0000-000000000000'],\n  })) {\n    allRuns.push(run);\n  }\n  return allRuns;\n}\n```\n\nAlternatively, you can request a single page at a time:\n\n```ts\nlet page = await client.runs.queryV2({ project_ids: ['00000000-0000-0000-0000-000000000000'] });\nfor (const run of page.items) {\n  console.log(run);\n}\n\n// Convenience methods are provided for manually paginating:\nwhile (page.hasNextPage()) {\n  page = await page.getNextPage();\n  // ...\n}\n```\n\n## Advanced Usage\n\n### Accessing raw Response data (e.g., headers)\n\nThe \"raw\" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.\nThis method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.\n\nYou can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.\nUnlike `.asResponse()` this method consumes the body, returning once it is parsed.\n\n<!-- prettier-ignore -->\n```ts\nconst client = new Langsmith();\n\nconst response = await client.runs\n  .queryV2({ project_ids: ['00000000-0000-0000-0000-000000000000'] })\n  .asResponse();\nconsole.log(response.headers.get('X-My-Header'));\nconsole.log(response.statusText); // access the underlying Response object\n\nconst { data: page, response: raw } = await client.runs\n  .queryV2({ project_ids: ['00000000-0000-0000-0000-000000000000'] })\n  .withResponse();\nconsole.log(raw.headers.get('X-My-Header'));\nfor await (const run of page) {\n  console.log(run.id);\n}\n```\n\n### Logging\n\n> [!IMPORTANT]\n> All log messages are intended for debugging only. The format and content of log messages\n> may change between releases.\n\n#### Log levels\n\nThe log level can be configured in two ways:\n\n1. Via the `LANGCHAIN_LOG` environment variable\n2. Using the `logLevel` client option (overrides the environment variable if set)\n\n```ts\nimport Langsmith from 'langsmith';\n\nconst client = new Langsmith({\n  logLevel: 'debug', // Show all log messages\n});\n```\n\nAvailable log levels, from most to least verbose:\n\n- `'debug'` - Show debug messages, info, warnings, and errors\n- `'info'` - Show info messages, warnings, and errors\n- `'warn'` - Show warnings and errors (default)\n- `'error'` - Show only errors\n- `'off'` - Disable all logging\n\nAt the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.\nSome authentication-related headers are redacted, but sensitive data in request and response bodies\nmay still be visible.\n\n#### Custom logger\n\nBy default, this library logs to `globalThis.console`. You can also provide a custom logger.\nMost logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.\n\nWhen providing a custom logger, the `logLevel` option still controls which messages are emitted, messages\nbelow the configured level will not be sent to your logger.\n\n```ts\nimport Langsmith from 'langsmith';\nimport pino from 'pino';\n\nconst logger = pino();\n\nconst client = new Langsmith({\n  logger: logger.child({ name: 'Langsmith' }),\n  logLevel: 'debug', // Send all messages to pino, allowing it to filter\n});\n```\n\n### Making custom/undocumented requests\n\nThis library is typed for convenient access to the documented API. If you need to access undocumented\nendpoints, params, or response properties, the library can still be used.\n\n#### Undocumented endpoints\n\nTo make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.\nOptions on the client, such as retries, will be respected when making these requests.\n\n```ts\nawait client.post('/some/path', {\n  body: { some_prop: 'foo' },\n  query: { some_query_arg: 'bar' },\n});\n```\n\n#### Undocumented request params\n\nTo make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented\nparameter. This library doesn't validate at runtime that the request matches the type, so any extra values you\nsend will be sent as-is.\n\n```ts\nclient.runs.queryV2({\n  // ...\n  // @ts-expect-error baz is not yet public\n  baz: 'undocumented option',\n});\n```\n\nFor requests with the `GET` verb, any extra params will be in the query, all other requests will send the\nextra param in the body.\n\nIf you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request\noptions.\n\n#### Undocumented response properties\n\nTo access undocumented response properties, you may access the response object with `// @ts-expect-error` on\nthe response object, or cast the response object to the requisite type. Like the request params, we do not\nvalidate or strip extra properties from the response from the API.\n\n### Customizing the fetch client\n\nBy default, this library expects a global `fetch` function is defined.\n\nIf you want to use a different `fetch` function, you can either polyfill the global:\n\n```ts\nimport fetch from 'my-fetch';\n\nglobalThis.fetch = fetch;\n```\n\nOr pass it to the client:\n\n```ts\nimport Langsmith from 'langsmith';\nimport fetch from 'my-fetch';\n\nconst client = new Langsmith({ fetch });\n```\n\n### Fetch options\n\nIf you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)\n\n```ts\nimport Langsmith from 'langsmith';\n\nconst client = new Langsmith({\n  fetchOptions: {\n    // `RequestInit` options\n  },\n});\n```\n\n#### Configuring proxies\n\nTo modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy\noptions to requests:\n\n<img src=\"https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg\" align=\"top\" width=\"18\" height=\"21\"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>\n\n```ts\nimport Langsmith from 'langsmith';\nimport * as undici from 'undici';\n\nconst proxyAgent = new undici.ProxyAgent('http://localhost:8888');\nconst client = new Langsmith({\n  fetchOptions: {\n    dispatcher: proxyAgent,\n  },\n});\n```\n\n<img src=\"https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg\" align=\"top\" width=\"18\" height=\"21\"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>\n\n```ts\nimport Langsmith from 'langsmith';\n\nconst client = new Langsmith({\n  fetchOptions: {\n    proxy: 'http://localhost:8888',\n  },\n});\n```\n\n<img src=\"https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg\" align=\"top\" width=\"18\" height=\"21\"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>\n\n```ts\nimport Langsmith from 'npm:langsmith';\n\nconst httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });\nconst client = new Langsmith({\n  fetchOptions: {\n    client: httpClient,\n  },\n});\n```\n\n### Sandbox AWS Auth Proxy\n\nWhen sandbox code needs to call AWS services, use the sandbox AWS auth proxy.\nThe proxy keeps the real AWS credentials outside the sandbox and signs supported\nAWS HTTPS requests with SigV4, so code in the sandbox can use AWS SDKs normally\nwithout storing long-lived AWS keys in files, environment variables, shell\nhistory, or logs.\n\nStore AWS credentials as LangSmith workspace secrets using names that make sense\nfor your workspace. Then create the sandbox with an AWS auth proxy config:\n\n```ts\nimport { SandboxClient, awsAuth, proxyConfig, workspaceSecret } from 'langsmith/sandbox';\n\nconst client = new SandboxClient();\nconst authConfig = proxyConfig({\n  rules: [\n    awsAuth({\n      accessKeyId: workspaceSecret('SANDBOX_AWS_ACCESS_KEY_ID'),\n      secretAccessKey: workspaceSecret('SANDBOX_AWS_SECRET_ACCESS_KEY'),\n    }),\n  ],\n});\n\nconst sandbox = await client.createSandbox({\n  name: 'aws-sandbox',\n  proxyConfig: authConfig,\n});\n\ntry {\n  const result = await sandbox.run('node your-aws-script.js');\n  console.log(result.stdout);\n} finally {\n  await sandbox.delete();\n}\n```\n\nUse `opaqueSecret(\"...\")` instead of `workspaceSecret(...)` when your application\nneeds to pass short-lived write-only AWS credentials at sandbox creation time.\nPlaintext AWS credential values are not accepted directly; wrap them as\n`opaqueSecret(...)` values.\n\n### Sandbox GCP Auth Proxy\n\nWhen sandbox code needs to call Google APIs, use the sandbox GCP auth proxy.\nThe proxy keeps the service account JSON outside the sandbox and injects OAuth\nbearer tokens for Google API hosts matched automatically by the sandbox proxy.\n\nStore the service account JSON as a LangSmith workspace secret. Then create the\nsandbox with a GCP auth proxy config:\n\n```ts\nimport { SandboxClient, gcpAuth, proxyConfig, workspaceSecret } from 'langsmith/sandbox';\n\nconst client = new SandboxClient();\nconst authConfig = proxyConfig({\n  rules: [\n    gcpAuth({\n      serviceAccountJson: workspaceSecret('SANDBOX_GCP_SERVICE_ACCOUNT_JSON'),\n      scopes: ['https://www.googleapis.com/auth/devstorage.read_write'],\n    }),\n  ],\n});\n\nconst sandbox = await client.createSandbox({\n  name: 'gcp-sandbox',\n  proxyConfig: authConfig,\n});\n\ntry {\n  const result = await sandbox.run('node your-gcp-script.js');\n  console.log(result.stdout);\n} finally {\n  await sandbox.delete();\n}\n```\n\nUse `opaqueSecret(\"...\")` for short-lived write-only service account JSON.\nPlaintext service account JSON is not accepted directly.\n\n### Sandbox Mounts\n\nWhen you create a LangSmith sandbox that needs filesystem access to external\ndata such as object storage buckets or public Git repositories, pass a\n`mountConfig` on sandbox creation. Mount specs contain only the mount target.\nProvider credentials stay in `mountConfig.auth`; the backend expands them into\nruntime proxy auth rules. You can also pass `proxyConfig` for non-mount proxy\nbehavior such as custom headers, callbacks, access control, and generic egress\nrules. Explicit AWS/GCP proxy auth rules conflict with `mountConfig` auth for\nthe same provider.\n\nS3 mounts require AWS auth:\n\n```ts\nimport { awsAuth, mountConfig, s3Mount, workspaceSecret } from 'langsmith/sandbox';\n\nconst mountCfg = mountConfig({\n  auth: [\n    awsAuth({\n      accessKeyId: workspaceSecret('SANDBOX_AWS_ACCESS_KEY_ID'),\n      secretAccessKey: workspaceSecret('SANDBOX_AWS_SECRET_ACCESS_KEY'),\n    }),\n  ],\n  mounts: [\n    s3Mount({\n      id: 'customer_data',\n      mountPath: '/mnt/mounts/customer-data',\n      bucket: 'example-bucket',\n      prefix: 'datasets/customer-data',\n      region: 'us-east-1',\n      endpointUrl: 'https://s3.amazonaws.com',\n      pathStyle: false,\n      readOnly: false,\n    }),\n  ],\n});\n\nconst sandbox = await client.createSandbox({\n  name: 's3-mount-sandbox',\n  mountConfig: mountCfg,\n});\n\ntry {\n  const result = await sandbox.run('ls /mnt/mounts/customer-data');\n  console.log(result.stdout);\n} finally {\n  await sandbox.delete();\n}\n```\n\nGCS mounts require GCP auth:\n\n```ts\nimport { gcpAuth, gcsMount, mountConfig, workspaceSecret } from 'langsmith/sandbox';\n\nconst mountCfg = mountConfig({\n  auth: [\n    gcpAuth({\n      serviceAccountJson: workspaceSecret('SANDBOX_GCP_SERVICE_ACCOUNT_JSON'),\n    }),\n  ],\n  mounts: [\n    gcsMount({\n      id: 'customer_data',\n      mountPath: '/mnt/mounts/customer-data',\n      bucket: 'example-bucket',\n      prefix: 'datasets/customer-data',\n    }),\n  ],\n});\n\nconst sandbox = await client.createSandbox({\n  name: 'gcs-mount-sandbox',\n  mountConfig: mountCfg,\n});\n\ntry {\n  const result = await sandbox.run('ls /mnt/mounts/customer-data');\n  console.log(result.stdout);\n} finally {\n  await sandbox.delete();\n}\n```\n\nPublic Git mounts do not require AWS or GCP auth:\n\n```ts\nimport { gitMount, mountConfig } from 'langsmith/sandbox';\n\nconst mountCfg = mountConfig({\n  mounts: [\n    gitMount({\n      id: 'repo',\n      mountPath: '/mnt/repo',\n      remoteUrl: 'https://github.com/langchain-ai/langsmith-javascript.git',\n      ref: { type: 'branch', name: 'main' },\n      refreshIntervalSeconds: 60,\n    }),\n  ],\n});\n\nconst sandbox = await client.createSandbox({\n  name: 'git-mount-sandbox',\n  mountConfig: mountCfg,\n});\n\ntry {\n  const result = await sandbox.run('ls /mnt/repo');\n  console.log(result.stdout);\n} finally {\n  await sandbox.delete();\n}\n```\n\nPrivate Git repositories can use low-level `proxyConfig` rules when the remote\nrequires proxy-managed auth. There is not yet a high-level private Git auth\nhelper.\n\n## Frequently Asked Questions\n\n## Semantic versioning\n\nThis package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:\n\n1. Changes that only affect static types, without breaking runtime behavior.\n2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_\n3. Changes that we do not expect to impact the vast majority of users in practice.\n\nWe take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.\n\nWe are keen for your feedback; please open an [issue](https://www.github.com/langchain-ai/langsmith-javascript/issues) with questions, bugs, or suggestions.\n\n## Requirements\n\nTypeScript >= 4.9 is supported.\n\nThe following runtimes are supported:\n\n- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)\n- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.\n- Deno v1.28.0 or higher.\n- Bun 1.0 or later.\n- Cloudflare Workers.\n- Vercel Edge Runtime.\n- Jest 28 or greater with the `\"node\"` environment (`\"jsdom\"` is not supported at this time).\n- Nitro v2.6 or greater.\n\nNote that React Native is not supported at this time.\n\nIf you are interested in other runtime environments, please open or upvote an issue on GitHub.\n\n## Contributing\n\nSee [the contributing documentation](./CONTRIBUTING.md).\n","publish_time":1793200574760,"_cnpm_publish_time":1793200574760,"dist-tags":{"latest":"0.11.8","next":"0.10.10-rc.1","rc":"0.1.60-rc1","tag-for-publishing-older-releases":"0.1.68"}}