Skip to main content

Testbench to evaluate agents using Ragas

Project description

Testbench

Kubernetes-native agent evaluation system that executes test datasets via the A2A protocol, scores responses with pluggable metrics (RAGAS by default), and publishes scores via OpenTelemetry.

📖 Documentation: https://docs.agentic-layer.ai/testbench/

Run standalone

For evaluating an agent without deploying into Kubernetes / Testkube:

pip install agentic-layer-testbench
testworkflow config.yaml

See config.example.yaml for the available configuration options.

Development

Prerequisites

  • Python
  • uv
  • Tilt and a local Kubernetes cluster (e.g. kind)
  • Testkube CLI
  • GOOGLE_API_KEY for LLM-as-a-judge evaluation via Gemini

Build and run locally

# Install Python dependencies
uv sync
# Provide the LLM-as-a-judge API key
echo "GOOGLE_API_KEY=<key>" > .env
# Start the local stack (AI gateway, OTLP collector, sample agents, Testkube)
tilt up

Test

uv run poe ruff      # format and lint
uv run poe mypy      # static type checking
uv run poe bandit    # security scanning
uv run poe test      # unit tests
uv run poe check     # all of the above
uv run poe test_e2e  # E2E tests (requires `tilt up`)

E2E defaults target the Tilt environment. Override with E2E_DATASET_URL, E2E_AGENT_URL, E2E_MODEL if needed.

Verify the local deploy

Run the example workflow against the sample weather agent:

kubectl testkube run tw example-workflow --watch

The full walkthrough — defining experiments, configuring metrics, viewing reports — is in the first-workflow how-to.

Contributing

See the Contribution Guide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentic_layer_testbench-0.9.3.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentic_layer_testbench-0.9.3-py3-none-any.whl (49.8 kB view details)

Uploaded Python 3

File details

Details for the file agentic_layer_testbench-0.9.3.tar.gz.

File metadata

  • Download URL: agentic_layer_testbench-0.9.3.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentic_layer_testbench-0.9.3.tar.gz
Algorithm Hash digest
SHA256 fa2e6c8fa633d271e8eadbd1e586cce1dbc28f6ac0075bea7706cfcee06b375d
MD5 7eb5a5fa5cdeb7f5de6ad861c248e236
BLAKE2b-256 ae2d87ec3ea943c732e316c89e7e1d378d74c8a57130dc06f3ee7ac73eab3193

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_layer_testbench-0.9.3.tar.gz:

Publisher: publish.yml on agentic-layer/testbench

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentic_layer_testbench-0.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for agentic_layer_testbench-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5aaaa7869f476cefd02124976a256e52bd7bf998c7078cb8da03d894917256e9
MD5 35bb1ac8aa6581590b83e60da356cbe6
BLAKE2b-256 578fac969754cbe2c351c14e87828de9354a879f1d148a15aa03555eef903d87

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_layer_testbench-0.9.3-py3-none-any.whl:

Publisher: publish.yml on agentic-layer/testbench

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page