Skip to main content

Lightweight grading toolkit for environment-based tasks.

Project description

Harbor Rewardkit

Docs

The Harbor Rewardkit is a lightweight package to define and run verifiers. Rewardkit is designed to be used with the Harbor task format but you can use it on its own.

Installation

uv tool install harbor-rewardkit

Example: Programmatic criteria

# tests/check.py
from rewardkit import criteria

criteria.file_exists("output.txt")
criteria.file_contains("output.txt", "hello")

Example: LLM judge

# tests/quality.toml
[judge]
judge = "anthropic/claude-sonnet-4-6"
files = ["/app/main.py"]

[[criterion]]
description = "Is the code correct?"
type = "binary"

Usage

Add rewardkit to your test.sh file:

# tests/test.sh
uvx harbor-rewardkit@0.1 /tests

See the documentation and a full working example.

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

harbor_rewardkit-0.1.5.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

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

harbor_rewardkit-0.1.5-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file harbor_rewardkit-0.1.5.tar.gz.

File metadata

  • Download URL: harbor_rewardkit-0.1.5.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for harbor_rewardkit-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5436d25f2c880755fea7e222b93f9fde119ad974fd79cfd5d2073c6efc48089f
MD5 20d1faff4796e5183c195c23f0184cd1
BLAKE2b-256 dce9a85641b1c3a06ad1f4d98869890b4624b423ab13f50a0eb979680aec8639

See more details on using hashes here.

File details

Details for the file harbor_rewardkit-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: harbor_rewardkit-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for harbor_rewardkit-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d18751fd58b54f4b11bf7fc7de8118a1be8d8a1a1de26a89d50686c6f901bce1
MD5 a200a9e0e0a5bcad408fabddbe3a016a
BLAKE2b-256 c082ad70b9f6277b1f95d4808addca2c96dacac880937b53ddefbc241db00148

See more details on using hashes here.

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