How narendrareddy07/agent-reliability-lab works
Agent Reliability Lab is a web platform for managing benchmark datasets, running agent evaluations, and inspecting reliability and execution traces. Users organize test cases into datasets, select an agent and evaluator, run a benchmark, inspect per-case results and linked traces, then compare reliability analytics or apply quality gates. The map includes the documented scheduling capability. Source excerpts confirm key agent, evaluation, persistence, and quality-gate calls; some routes and frontend integrations are represented from README documentation because their implementations were not sampled.
Main entry points: App.jsx Application routes · main.py FastAPI application · api.js HTTP API client · schedule_service.py Schedule execution
Components 28
Workspace UI
- Application routes
frontend/src/App.jsx - Workspace layout
frontend/src/components/AppLayout.jsx - Agent workspace
frontend/src/pages/Agents.jsx - Dataset workspace
frontend/src/pages/Datasets.jsx - Evaluation workspace
frontend/src/pages/Evaluations.jsx - Analytics dashboard
frontend/src/pages/Analytics.jsx - Execution history
frontend/src/pages/Executions.jsx - Trace explorer
frontend/src/pages/TraceExplorer.jsx - Schedule workspace
frontend/src/pages/Schedules.jsx - HTTP API client
frontend/src/lib/api.js
Backend API
- FastAPI application
backend/app/main.py - Agent routes
backend/app/api/agents.py - Dataset routes
backend/app/api/datasets.py - Evaluation routes
backend/app/api/evaluations.py - Schedule routes
backend/app/api/schedules.py
Benchmarking
- Agent execution
backend/app/services/agent_service.py - Mock support agent
backend/app/agents/mock_agent.py - Evaluation engine
backend/app/services/evaluation_service.py - Dataset management
backend/app/services/dataset_service.py - Benchmark scheduler
backend/app/scheduler.py - Schedule execution
backend/app/services/schedule_service.py
Reliability & Observability
- Quality gate
backend/app/services/quality_gate_service.py - Run comparison
backend/app/services/regression_service.py - Reliability metrics
backend/app/services/metrics_service.py
Persistence
- SQLite database
backend/app/database.py - Application records
backend/app/models.py - Schedule records
backend/app/scheduled_models.py
Other components
- Workspace user
Connections 42
- Workspace user → Application routes: uses
README.md - Application routes → Workspace layout: renders
frontend/src/App.jsx - Application routes → Agent workspace: routes to
frontend/src/App.jsx - Application routes → Dataset workspace: routes to
frontend/src/App.jsx - Application routes → Evaluation workspace: routes to
frontend/src/App.jsx - Application routes → Analytics dashboard: routes to
frontend/src/App.jsx - Application routes → Execution history: routes to
frontend/src/App.jsx - Application routes → Trace explorer: routes to
frontend/src/App.jsx - Application routes → Schedule workspace: routes to
frontend/src/App.jsx - Agent workspace → HTTP API client: requests data
frontend/src/pages/Agents.jsx - Dataset workspace → HTTP API client: requests data
frontend/src/pages/Datasets.jsx - Evaluation workspace → HTTP API client: requests data
frontend/src/pages/Evaluations.jsx - Execution history → HTTP API client: requests data
frontend/src/pages/Executions.jsx - Schedule workspace → HTTP API client: requests data
frontend/src/pages/Schedules.jsx - Analytics dashboard → HTTP API client: requests data
- Trace explorer → HTTP API client: requests data
- HTTP API client → FastAPI application: calls API
- FastAPI application → Agent routes: mounts router
backend/app/main.py - FastAPI application → Dataset routes: mounts router
backend/app/main.py - FastAPI application → Evaluation routes: mounts router
backend/app/main.py - FastAPI application → Schedule routes: mounts router
backend/app/main.py - Agent routes → Agent execution: executes agents
backend/app/api/agents.py - Agent execution → Mock support agent: runs agent
backend/app/services/agent_service.py - Evaluation routes → Evaluation engine: runs evaluations
backend/app/api/evaluations.py - Evaluation routes → Reliability metrics: requests metrics
backend/app/api/evaluations.py - Evaluation routes → Run comparison: compares runs
backend/app/api/evaluations.py - Evaluation routes → Quality gate: checks gate
backend/app/api/evaluations.py - Evaluation engine → Agent execution: executes prompts
backend/app/services/evaluation_service.py - Schedule routes → Schedule execution: manages schedules
- FastAPI application → Benchmark scheduler: starts loop
backend/app/main.py - Benchmark scheduler → Schedule execution: runs due work
- Schedule execution → Evaluation engine: runs benchmark
backend/app/services/schedule_service.py - Schedule execution → Quality gate: checks result
backend/app/services/schedule_service.py - Quality gate → Run comparison: compares baseline
backend/app/services/quality_gate_service.py - Quality gate → Evaluation engine: loads run
backend/app/services/quality_gate_service.py - Dataset routes → Dataset management: manages datasets
- Agent execution → SQLite database: persists executions
backend/app/services/agent_service.py - Evaluation engine → SQLite database: persists runs
backend/app/services/evaluation_service.py - Reliability metrics → Application records: queries records
backend/app/services/metrics_service.py - Schedule execution → Schedule records: stores schedules
backend/app/services/schedule_service.py - Schedule execution → Application records: reads datasets
backend/app/services/schedule_service.py - FastAPI application → SQLite database: creates tables
backend/app/main.py