Agent Testing

Test agents like you test code

Test with offline evaluations on datasets or run online evaluations on production traffic. Experiment with models and prompts, and easily compare outputs across different variants.

Try LangSmith free. No credit card required.

LangSmith Observability dashboard showing agent traces, evaluation scores, latency, and feedback trends

LangSmith powers top engineering teams, from AI startups to global enterprises

Zip
Writer
Harvey
Vanta
Abridge
Clay
Rippling
Mercor
Listen Labs
dbt Labs
Klarna
Headspace
Lyft
Coinbase
Rakuten
LinkedIn
Elastic
Workday
Monday.com

Powering the agent testing lifecycle

LangSmith connects agent testing to the full agent development lifecycle, giving teams the visibility, infrastructure, and governance to build, test, deploy, monitor, and continuously improve agents.

LangSmith Engine at the center of the agent development lifecycleAgent development lifecycle ringBuild stage with Deep Agents, LangChain, LangGraph, and LangSmith FleetTest stage with datasets, evaluations, and experimentsMonitor stage with tracing, dashboards, online evaluations, and user feedbackDeploy stage with runtime, agent server, sandboxes, and context hubGovern stage with LLM Gateway

Built for Production Agent Testing

Teams trust LangSmith to test their most important agent applications

50M+
LLM Calls Traced
1B+
Events Ingested per Day
100K+
Monthly active orgs in LangSmith SaaS

LangSmith Agent Engineering Platform

Observe, evaluate, and deploy agents with LangSmith. LangSmith is framework-agnostic: trace your preferred framework or integrate LangSmith with any agent stack using our Python, TypeScript, Go, or Java SDKs.

Surface and diagnose undetected issues autonomously to improve agents faster. LangSmith Engine clusters production failures into prioritized issues, finds the root cause in your traces and code, and proposes the fix for your review.

Read the announcement
LangSmith Engine issue analysis and proposed fix interface

How LangSmith testing works

1

Build a test dataset

Curate datasets from production traces or create them from scratch. Every test case maps to a real user scenario.

2

Run evals on every PR

Integrate LangSmith with GitHub, pytest, or Vitest. Fail pipelines automatically when quality drops.

3

Ship with a benchmark, not a prayer

Compare agent versions side by side. Prove your new version is better before it touches production.

Built for Enterprise

Security and compliance at scale

LangSmith meets the demanding security, performance, and collaboration requirements of large organizations building AI applications at scale.

Permissions icon

Granular permissions

Role-based access control with org-level permissions and project isolation to meet your security and compliance requirements.

Security certification icon

SOC 2 Type II

Third-party security certification with comprehensive security controls.

Trust center
Deployment icon

Self-hosted deployment

Self-hosting options to maintain full control over your AI data and meet strict compliance requirements.

Meet us at an upcoming event

Join the LangChain community at conferences, meetups, and webinars to learn how teams are advancing agent testing in production.

See all events

Customers

Elastic

"Working with LangSmith on the Elastic AI Assistant had a significant positive impact on the overall pace and quality of our development and shipping experience. We couldn't have delivered the product experience our customers now have without LangSmith—and we couldn't have done it at the same pace without it."

James Spiteri, Director of Security Product Management at Elastic

Read case study
Rakuten

"What we really needed was a more structured way to test new approaches, something better than just shipping and seeing what happened. LangSmith gave us a more scientific, structured way to understand what was actually working, whether that meant running pairwise evaluations or digging into why accuracy jumped from 70% to 80%. Our engineers especially love the intuitive debugging experience, it's saved us a lot of time."

Yusuke Kaji, General Manager of AI for Business Development at Rakuten

Read case study

Get a Demo of LangSmith

See how LangSmith can help you test your AI agents with comprehensive offline and online evaluation frameworks.