Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Evaluation Lab

Local-first evaluation dashboard for scoring AI agent outputs across correctness, safety, groundedness, citations, tool use, latency, and cost. It is designed as a portfolio-grade Python project that complements AgentOps Control Plane: AgentOps shows run observability, while this project shows how agent behavior gets measured.

Agent Evaluation Lab dashboard

What Works Today

  • FastAPI backend with typed Pydantic models.
  • SQLite repository seeded with deterministic evaluation suites, cases, runs, results, tool calls, and citations.
  • Browser dashboard for comparing agent runs and drilling into scored failures.
  • Local reset endpoint for reproducible demos.
  • CI on Python 3.11 and 3.12 with Ruff, compile checks, pytest, and coverage.

Architecture

flowchart TB
    subgraph Inputs[Evaluation inputs]
        Suite[Evaluation suites]
        Cases[Test cases and rubrics]
        Fixtures[Deterministic fixture runs]
    end

    subgraph Backend[FastAPI service]
        API[/REST API/]
        Repo[SQLite repository]
        Models[Pydantic models]
        Reset[Demo reset endpoint]
    end

    subgraph Scoring[Scoring dimensions]
        Correctness[Correctness]
        Safety[Safety]
        Grounding[Groundedness]
        Citations[Citation quality]
        Tools[Tool-use quality]
        Budget[Latency and cost]
    end

    subgraph Dashboard[Operator dashboard]
        Summary[Portfolio metrics]
        Compare[Run comparison]
        Drilldown[Case failure drilldown]
        Evidence[Tool calls and citations]
    end

    Suite --> API
    Cases --> API
    Fixtures --> Reset
    API --> Models
    Models --> Repo
    Repo --> Summary
    Repo --> Compare
    Repo --> Drilldown
    Correctness --> Drilldown
    Safety --> Drilldown
    Grounding --> Drilldown
    Citations --> Evidence
    Tools --> Evidence
    Budget --> Summary

    classDef input fill:#e0f2fe,stroke:#0369a1,color:#0f172a
    classDef backend fill:#fef3c7,stroke:#b45309,color:#111827
    classDef scoring fill:#dcfce7,stroke:#15803d,color:#052e16
    classDef ui fill:#ede9fe,stroke:#7c3aed,color:#1e1b4b
    class Suite,Cases,Fixtures input
    class API,Repo,Models,Reset backend
    class Correctness,Safety,Grounding,Citations,Tools,Budget scoring
    class Summary,Compare,Drilldown,Evidence ui
Loading

Quick Start

uv run --extra dev uvicorn agent_evaluation_lab.main:app --reload --port 8020

Open http://127.0.0.1:8020 for the dashboard or http://127.0.0.1:8020/docs for API docs.

API Surface

  • GET /api/health
  • GET /api/summary
  • GET /api/suites
  • GET /api/suites/{suite_id}
  • GET /api/runs
  • GET /api/runs/{run_id}
  • POST /api/demo/reset

Current Limits

  • The base project uses deterministic fixtures, not paid LLM judges.
  • Scores are transparent demo values, not public benchmark claims.
  • There is no authentication or multi-user deployment layer yet.
  • Future work could add JSONL imports from AgentOps Control Plane or provider trace exports.

Development

uv run --extra dev ruff check src tests
uv run --extra dev ruff format --check src tests
uv run python -m compileall -q src tests
uv run --extra dev pytest tests/ --cov=agent_evaluation_lab --cov-report=term-missing

About

Local-first evaluation lab for scoring AI agent outputs across correctness, safety, citations, tools, latency, and cost.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages