langchain-ai/langsmith
Trace, evaluate, and deploy AI agents and LLM applications with LangSmith. Use when adding observability, running evaluations, engineering prompts, or deploying agents to production.
npx skills add https://github.com/langchain-ai/docs --skill langsmith
LangSmith is a framework-agnostic platform for building, debugging, and deploying AI agents and LLM applications. Trace requests, evaluate outputs, test prompts, and manage deployments all in one place at smith.langchain.com.
Use LangSmith when you need to:
Set two environment variables to enable tracing from any supported framework:
export LANGSMITH_TRACING=true
export LANGSMITH_API_KEY="your-api-key" # from smith.langchain.com/settings
# Python
pip install langsmith
# JavaScript/TypeScript
npm install langsmith
from langsmith import traceable
@traceable
def my_function(query: str) -> str:
# Your LLM logic here—all calls inside are traced automatically
return "result"
| Capability | Description |
|-----------|-------------|
| Observability | Trace every step of your LLM app with automatic or manual instrumentation |
| Evaluation | Run evaluations with code, LLM-as-judge, or composite evaluators |
| Prompt engineering | Create, version, and test prompts in a visual playground |
| Agent deployment | Deploy LangGraph agents with streaming, human-in-the-loop, and durable execution |
| Monitoring | Dashboards, alerts, and cost tracking for production workloads |
For SDK class and method details, use the LangChain API Reference site:
https://reference.langchain.com/python/langsmithhttps://reference.langchain.com/mcpTake langchain-ai/langsmith from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip, npm.
Without those the skill loads but fails at the first command.