tessl install tessl/npm-langsmith@0.4.3TypeScript client SDK for the LangSmith LLM tracing, evaluation, and monitoring platform.
Comprehensive guides for using LangSmith effectively, from setup to production deployment.
This section provides step-by-step guides for all major LangSmith features, best practices, and common workflows.
Next Steps: Explore Evaluation or Workflows
Next Steps: Deploy with Production Workflows
Next Steps: Explore Advanced Features
Learn how to:
Quick Start:
npm install langsmith
export LANGCHAIN_API_KEY=your_api_key
export LANGCHAIN_PROJECT=my-projectRelated: Client Configuration β’ Utilities
Code snippets for:
Use When: You need a fast code example without explanation
Related: Tracing β’ API Reference
Complete tracing documentation:
traceable() decorator - Automatic function tracinggetCurrentRunTree() - Access current trace contextKey Sections:
Related: Run Trees β’ Integrations β’ API Runs
Dataset-based evaluation:
Key Sections:
Related: Comparative Evaluation β’ Datasets API β’ Testing
Compare multiple experiments:
Use When: Comparing different models, prompts, or implementations
Related: Evaluation β’ Workflows
Integration with test frameworks:
Specific Integrations:
Related: Evaluation
Production-ready patterns:
Key Workflows:
Related: Evaluation β’ API Reference
β Start with Tracing Quick Start β See examples in Quick Reference
β Follow Evaluation Guide β Create dataset with Datasets API
β Use Comparative Evaluation β See A/B Testing Workflow
β Check SDK Wrappers β See OpenAI Wrapper or Anthropic Wrapper
β Follow Production Workflow β Configure Client for Production
β Use Privacy Features β Or Data Anonymization
β Check Testing Overview β Follow Jest or Vitest guide