agent-evals

Featured

Build automated evaluation suites for AI agents using golden datasets, rubrics, and regression gates. Use when shipping agent features, validating prompt changes, or gating deployments on quality.

AI & Automation 46,937 stars 6838 forks Updated today MIT

Install

View on GitHub

Quality Score: 98/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Agent Evals Create repeatable checks so agent behavior improves safely over time. ## When to Use This Skill Use this skill when: - Shipping new agent features or changing prompts - Adding CI gates for agent quality and safety - Building regression suites for tool-calling agents - Measuring LLM output quality at scale - Validating RAG retrieval accuracy ## Prerequisites - Python 3.10+ - An LLM API key (OpenAI, Anthropic, etc.) - pytest or a custom eval harness - Optional: Braintrust, Promptfoo, or LangSmith account ## Evaluation Layers ### Unit Evals — Prompt-Level Correctness Test individual prompt → response quality: ```python # evals/test_unit.py import json import pytest from agent import generate_response CASES = json.load(open("evals/fixtures/unit_cases.json")) @pytest.mark.parametrize("case", CASES, ids=lambda c: c["id"]) def test_prompt_correctness(case): result = generate_response(case["prompt"], model=case.get("model", "default")) # Exact match for structured output if case.get("expected_json"): assert json.loads(result) == case["expected_json"] # Substring match for free-text for keyword in case.get("must_contain", []): assert keyword.lower() in result.lower(), f"Missing: {keyword}" for keyword in case.get("must_not_contain", []): assert keyword.lower() not in result.lower(), f"Unexpected: {keyword}" ``` Golden dataset format: ```json [ { "id": "calc-01", "prompt": "What is 15% tip on $42.50?",...

Details

Author
sickn33
Repository
sickn33/agentic-awesome-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

agent-eval

Use when measuring whether an LLM or agent system actually got better and gating merges on it: golden sets, fixing an inflated LLM-as-judge, scoring RAG (faithfulness, contextual recall) or agent trajectories (tool correctness, completion), or picking an eval framework. NOT building the agent loop, tools or RAG plumbing (that is `building-agents`).

116 Updated 2 days ago
ericrisco
AI & Automation Listed

agent-eval

Designs and runs evaluations for LLM or agent outputs — builds rubrics, sets up LLM-as-judge scoring, creates regression test sets, and reports pass rates with concrete failure examples. Use this skill whenever the user wants to evaluate, test, grade, or score an agent's or LLM's outputs; asks "how do I know if this is working," "is this any good," "set up an eval," or "did this prompt change make things worse"; needs a rubric for judging quality; wants to compare two prompts, models, or outputs; or wants to catch regressions before shipping a change. Also trigger when reviewing agent trajectories specifically — did the agent pick the right tool, the right arguments, the right sequence — not just the final output.

0 Updated today
Hefrock
AI & Automation Listed

agent-eval

Build an evaluation harness for an LLM agent, prompt template, or tool-using workflow — a task set, deterministic and judge-based scoring, per-tag metrics, and a regression gate — then run it. Use it when a prompt or model change needs to be measured instead of eyeballed, or when a project ships LLM behavior with no eval set at all.

6 Updated 1 weeks ago
timurgaleev