LangSmith is a unified DevOps platform for developing, debugging, testing, deploying, and monitoring LLM applications and AI agents built by LangChain. It provides framework-agnostic observability with comprehensive tracing, evaluation datasets, online/offline evaluations, prompt management, human-in-the-loop workflows, and production monitoring to help teams move from prototype to production. In 2026, LangSmith expanded significantly with LangSmith Engine (autonomous failure clustering + PR proposals), SmithDB (purpose-built Rust/DataFusion database, up to 15x faster), Context Hub (versioned agent context management), LLM Gateway (runtime spend limits + PII redaction), and Sandboxes GA (hardware-virtualized microVMs for safe agent code execution). LangSmith's core differentiator remains end-to-end visibility into agent execution via traces, enabling developers to understand, evaluate, and continuously improve complex multi-step LLM and agent workflows.
What This Cheat Sheet Covers
This topic spans 22 focused tables and 163 indexed concepts, 113 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Core Concepts
The vocabulary of LangSmith β understanding these building blocks is prerequisite for everything else in the platform. The trace β run β feedback hierarchy maps directly to how observability data flows into evaluations, annotation queues, and Engine-driven improvements.
| Concept | Example | Description | |
|---|---|---|---|
Single request β LLM β retrieval β response Top-level execution unit | β’ End-to-end execution path capturing full request lifecycle β’ contains all runs/spans for a single request β’ analogous to spans in distributed tracing (OpenTelemetry) β’ includes input, output, metadata, timestamps, cost | ||
Individual LLM call, retriever step, or tool invocation within trace | β’ Individual step within a trace, similar to OpenTelemetry spans β’ tracks single operation (LLM, chain, tool, retriever) β’ includes token counts, latency, cost; nested for complex workflows. | ||
{"input": "What is AI?", "expected": "..."}Versioned test-case collection | β’ Curated test cases for evaluation β’ supports CSV, JSON, JSONL + file attachments (images, PDFs, audio, video) β’ versioned β new version on every change; pin experiments to a specific version. | ||
Run application on dataset β compare v1 vs v2 prompts | β’ Evaluation run on a dataset producing scores and metrics (accuracy, latency, cost) β’ supports comparison view for A/B testing and baseline pinning for regression detection | ||
LLM-as-judge, code-based, or human reviewer Scores outputs on criteria | β’ Scoring function for evaluation β’ types: LLM-as-judge, code-based, human (annotation queues), composite (weighted multi-score) β’ applied to experiments or online runs; now reusable across projects. | ||
Tracing project for "customer-support-bot" Organizational container | β’ Workspace for traces grouping related traces by application/environment β’ contains datasets, experiments, automations, Engine analysis β’ configurable retention policies and project-level dashboards. | ||
Sequence of traces representing conversation: thread_id = "user123-session456" | β’ Conversation container grouping related traces β’ set via thread_id metadataβ’ enables multi-turn chat tracking, Messages View, and Multi-turn Evals. | ||
client.create_feedback(run_id, key="quality", score=0.8) | β’ Score or annotation attached to a run β’ sources: user ratings, evaluator scores, human annotations β’ queryable via API β’ used for continuous improvement and RLHF | ||
Backs 100% of US Cloud ingestion + tracing UI P50 trace tree load: 92ms | β’ Purpose-built distributed database for agent observability (Interrupt 2026) β’ built in Rust on Apache DataFusion + Vortex; object-storage-backed LSM β’ up to 15x faster than previous stack; stateless ingestion/query/compaction services β’ supports tree-aware queries, full-text search, JSON filtering, thread reconstruction. | ||
langsmith hub push my-agent --type agentVersioned AGENTS.md, skills, policies | β’ Central store for agent context files β AGENTS.md, skills, policies, examples β’ versioning with tags ( dev, staging, prod), comments, CLI push/pullβ’ can serve as a virtual filesystem backend for Deep Agents (ContextHubBackend). |