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.10.0.tar.gz (38.2 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.10.0-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentic_layer_testbench-0.10.0.tar.gz
  • Upload date:
  • Size: 38.2 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.10.0.tar.gz
Algorithm Hash digest
SHA256 11ef66fb52e0dc4ad549aa9a6f0a8416e96dbd47867b4db0946cbd600744b867
MD5 d32eb77ad65dbfe5ce377f09977ca710
BLAKE2b-256 b0bd92fc3055ae3ec52aaa3282fb82f09fa15cc88f41d4c4d13c6f6edd063bdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_layer_testbench-0.10.0.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.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentic_layer_testbench-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4846e751a0033573a4c66b5e0e1311ea105b14a3a2425626449a3abbef2a020
MD5 cae2abba9a4608ec6ddb326b1e8c2835
BLAKE2b-256 8c19d3cb6c6fc2ce374d9d859b71b6a62ec9a62e1134bca61f24fa33191ee48c

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_layer_testbench-0.10.0-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