Skip to content

Latest commit

 

History

History
147 lines (101 loc) · 3.54 KB

environment_setup.md

File metadata and controls

147 lines (101 loc) · 3.54 KB

Environment Setup

This page lists the dependencies needed to reproduce the public EnterpriseClawBench construction and evaluation workflow.

The public release has three modules:

  • construction/: raw session -> benchmark task pack.
  • evaluation/: task pack + agent outputs -> rule and judge scores.
  • sandbox/: optional internal open-sandbox runner.

External users do not need the company sandbox SDK to run construction or evaluation. The SDK is only required for the optional sandbox/ wrapper.

Python

Use Python 3.10 or newer.

git clone git@github.com:leo0302git/ecb.git
cd ecb

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip setuptools wheel

Install all public modules from the repository root:

python -m pip install -e './[render]'

In network-restricted environments where pip cannot create an isolated build environment, use the already-installed local build backend:

python -m pip install --upgrade setuptools wheel
python -m pip install -e './[render]' --no-build-isolation

This installs three command-line tools:

enterprise-clawbench-construction
enterprise-clawbench-eval
enterprise-clawbench-sandbox

The tools then work from any current working directory. The render extra installs Playwright support used for HTML/XLSX evidence. If you only run non-visual unit tests, the extra is not required:

python -m pip install -e .

Developers may still install individual subpackages, but the root install is the recommended release path.

Playwright Browser

HTML and XLSX evidence is rendered through Chromium via Playwright. Install the browser once after installing the Python packages:

python -m playwright install chromium

If your browser cache is outside the default home directory, set:

export PLAYWRIGHT_BROWSERS_PATH=/path/to/ms-playwright

System Tools For Visual Evidence

The evaluator can score visual artifacts more completely when these tools are available:

  • pdftoppm from poppler: PDF page screenshots.
  • soffice or libreoffice: DOCX/PPTX to PDF conversion before screenshotting.

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install -y poppler-utils libreoffice

macOS with Homebrew:

brew install poppler libreoffice

If these tools are missing, the evaluator records explicit evidence-preparation warnings instead of fabricating visual scores.

API Keys

Construction stages that use LLMs and evaluation judge calls require an OpenAI-compatible API endpoint.

export DMX_API_KEY='<your api key>'

The default examples use:

https://www.dmxapi.cn/v1

You can pass another endpoint with --base-url in evaluation, or configure it in construction YAML.

Optional Sandbox SDK

The sandbox/ module is not required for public reproduction. It is a thin wrapper around our open-sandbox deployment and expects an importable sandbox_sdk.

Readers without that SDK can still reproduce the public flow by:

  1. Running construction/ to generate eval_tasks.from_task_pack.jsonl.
  2. Running those tasks with any agent.
  3. Writing outputs in the documented run directory layout.
  4. Running evaluation/ on that run directory.

See docs/evaluation_protocol.md for the run directory contract.

Quick Verification

From the repository root:

enterprise-clawbench-construction list-stages
python -m unittest discover -s construction/tests -t construction -v

Then:

enterprise-clawbench-eval --help
python -m unittest discover -s evaluation/tests -t evaluation -v