askill
langsmith-code-eval

langsmith-code-evalSafety 95Repository

Create code-based evaluators for LangSmith-traced agents. Use when building custom evaluation logic for agent experiments, testing tool usage patterns, or scoring agent outputs programmatically.

0 stars
1.2k downloads
Updated 2/18/2026

Package Files

Loading files...
SKILL.md

LangSmith Code Evaluator Creation

Create evaluators for LangSmith experiments through collaborative inspection and implementation.

Workflow

Step 1: Locate and Understand the Agent

Ask for the agent file. Read it to identify entry point, tools, and output format.

Step 2: Inspect Trace Structure

Ask for LangSmith project name. Run:

python scripts/inspect_trace.py PROJECT_NAME [RUN_ID]

Think critically about the trace:

  • Does it match the agent? (e.g., a LangGraph trace for an OpenAI agent won't work)
  • Does it contain the data needed for the evaluation goals?
  • If not, clarify what's missing before proceeding.

Step 3: Clarify Evaluation Goals

Ask: "What behavior should pass vs fail?"

Step 4: Create the Evaluator

Write the evaluator based on trace structure from Step 2. Consult the Code Evaluator SDK docs for:

  • Available function signatures and parameters
  • Return type options
  • Row-level vs summary evaluators

Step 5: Create Experiment Runner

Create a script that runs the evaluator against a dataset. See Evaluate LLM Applications for evaluate() / aevaluate() usage.

Step 6: Run and Iterate

Execute the experiment, review results in LangSmith, refine as needed.

Reference

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

86/100Analyzed 2/20/2026

High-quality skill for creating LangSmith code evaluators with a clear 6-step workflow, actionable steps including a bash command for trace inspection, and comprehensive reference links. Scores well on clarity, actionability, and safety. Slightly less complete due to lack of concrete code examples, but the structured approach and external references compensate. Good reusability as it's not tied to a specific internal repo.

95
92
82
72
88

Metadata

Licenseunknown
Version-
Updated2/18/2026
Publisherlangchain-ai

Tags

github-actionsllmobservability