Skip to content

Quickstart

Requires Python 3.12 or newer.

python -m venv .venv && . .venv/bin/activate
pip install "vexlari-proving-ground @ git+https://github.com/anandprivate06/proving-ground"
# once released on PyPI: pip install vexlari-proving-ground

Get the example agent (or write your own, below) and run the built-in demo suite:

curl -sSLO https://raw.githubusercontent.com/anandprivate06/proving-ground/main/examples/random_agent.py
pg run gridworld-demo --agent random_agent.py --out scorecard.json --html report.html

From a clone of the repo the agent path is examples/random_agent.py. The command prints the verdict and writes scorecard.json (validates against the Scorecard schema) and report.html (self-contained; open it in a browser).

pg validate scorecard.json
pg report scorecard.json -o report.html
pg suites list
pg plugins list

Your own policy

A gymnasium-policy agent is a Python file with act(obs) and, optionally, reset(seed):

def reset(seed: int) -> None: ...


def act(obs):
    return 1  # gridworld: 0=up 1=right 2=down 3=left

Warning

The local backend imports and runs the agent file in-process. Only run code you trust, or use the docker backend (see Security model).

Other agents

# An HTTP service: POST {"observation": ...} -> {"action": ...}
pg run gridworld-demo --agent http://127.0.0.1:8000/act

# An OpenAI-compatible chat model with tools (key read from the env var, never logged)
export OPENAI_API_KEY=...
pg run gridworld-demo --adapter llm-tool-agent --agent <model-id> --base-url https://api.openai.com/v1

Options

Option Meaning
--seed N override the suite seed
--episodes N override episodes per scenario
--out PATH Scorecard path (- for stdout)
--html PATH also write the HTML report
--prices prices.yaml enable cost with your own price table
--metric NAME add a plugin metric (repeatable)
--llm-judge MODEL enable the LLM judge (off by default)
--backend docker --docker-image IMG run the agent in a sandboxed container