Skip to main content

Plural

Plural is a Python SDK for defining environments, evaluating agents, and keeping reproducible evidence.

Seven plain concepts

  1. An Environment is the world an agent can act in.
  2. A Runtime says where that world runs.
  3. An Agent selects a catalog model and optional harness.
  4. A Verifier scores a completed trial.
  5. A Task combines instructions, one Environment, and Verifiers.
  6. A Benchmark pins an ordered set of Tasks.
  7. A Job runs Agents against a Task or Benchmark.

Python is the semantic source of truth. YAML serializes the same objects losslessly, and the CLI loads those objects without a second configuration model.

Install

pip install plural

First evaluation

from plural import Agent, Benchmark, Environment, Job, Task
from plural.verifiers import DeterministicVerifier

environment = Environment(name="support")
verifier = DeterministicVerifier(name="complete", check="python verify.py")
task = Task(
    name="ticket-1",
    instructions="Resolve the support ticket.",
    environment=environment,
    verifiers=[verifier],
)
benchmark = Benchmark(name="support", version="1.0.0", tasks=[task])
agent = Agent(model="openai/gpt-5.6-luna")
job = Job(benchmark, agents=[agent])

print(job.plan.trial_count)

An @action Environment becomes executable with one packaging call:

environment = SupportQueue(runtime=runtime).package(("python", "commands.py"))

No Definition, Binding, protocol version, or hand-built action manifest is part of the beginner API.

Python, YAML, and CLI

from plural.project import dump, load

dump(job, "job.yaml")
assert load("job.yaml").content_hash == job.content_hash
plural init
plural validate job.py:job
plural inspect job.yaml
plural export job.py:job --output job.yaml
plural run job.yaml --dry-run
plural run job.yaml

Runs are local by default. Hosted submission is always explicit:

plural run job.yaml --hosted

Project model entries are explicit and never global:

from plural import CatalogContext, ModelCatalog, ModelSpec

context = CatalogContext(ModelCatalog(entries=[ModelSpec(id="project/model")]))
agent = context.agent(model="project/model")

See the getting started guide, the Wordle example, and the CLI reference.

Development

uv sync --group dev --group docs
uv run ruff check .
uv run pytest
uv run python scripts/check_docs.py

Clean break

The public evaluation API no longer uses *Definition, *Binding, WeightedVerifier, EnvironmentRuntime, or native_*_v1 names. Internal execution specs remain implementation details. Migrate public code to the seven concepts above; see migration v1.

License

Apache-2.0

Release files for plural 0.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plural 0.12.1
File Size Uploaded
plural-0.12.1.tar.gz 394.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plural 0.12.1
File Interpreter ABI Platform
plural-0.12.1-py3-none-any.whl Python 3 none any Details

Total release size: 651.0 kB

Release files / plural-0.12.1.tar.gz

Download URL plural-0.12.1.tar.gz
Size 394.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bf66e582db8587c65935badc7f9c5740c97bd88f03093f97262f4733f0c4bc8c
BLAKE2b-256 checksum
How to use checksums
c73935f57e4f444c1bbc31959a35873039f4635c1e2d4a12676c8b82c6682837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release files / plural-0.12.1-py3-none-any.whl

Download URL plural-0.12.1-py3-none-any.whl
Size 256.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d25723e3b07139aeded38741e64addc014a5df77934a6a4ae3efb4d51a757cf9
BLAKE2b-256 checksum
How to use checksums
cd5d9f9cb22b6a58b0debb8f07adef7feb016c13d5601dca027d924e567d11a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.17.1

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.3

2 release files

This release

0.12.1 This release

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.6.1

2 release files

0.6.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page