This is an early release preview. You may encounter bugs.
Langsmith SDK logo
Unclaimed

Tool coding

Langsmith SDK

Python and JavaScript SDKs for tracing, evaluating and monitoring LLM apps on the LangSmith platform

Built by LangChain

A 87/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
No votes yet

01 / About

What Langsmith SDK is.

The LangSmith SDKs are the Python and JavaScript/TypeScript client libraries for the LangSmith platform, which is used to debug, evaluate, and monitor language-model applications and agents. LangSmith works with any LLM application and has a native integration with the LangChain Python and JavaScript libraries.

Tracing starts by setting LANGSMITHTRACING=true and an API key (plus a workspace ID for organization-scoped keys) and then either wrapping a client, for example wrapopenai around an OpenAI client, or decorating functions with traceable. Calls made through the wrapped client are recorded as runs on the platform. The same pattern is available in JavaScript through wrapOpenAI and traceable.

Features

  • Two languages: a Python package (langsmith) and a JavaScript/TypeScript package with matching APIs
  • Client wrappers: wrap_openai / wrapOpenAI capture OpenAI SDK calls without changing application code
  • Function tracing: the traceable decorator records arbitrary functions as runs
  • Environment configuration: tracing toggled and authenticated through LANGSMITHTRACING, LANGSMITHAPIKEY, and LANGSMITHWORKSPACE_ID
  • LangChain integration: native tracing for LangChain Python and JS applications
  • Evaluation and monitoring: the SDK is the client for the platform's evaluation and monitoring features, documented in the LangSmith docs and cookbook

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with Langsmith SDK.

Browse the catalogue for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get Langsmith SDK →

Browse the catalogue