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.0

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.0
File Size Uploaded
plural-0.12.0.tar.gz 363.8 kB Details

Built distribution (wheel)

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

Total release size: 617.6 kB

Release files / plural-0.12.0.tar.gz

Download URL plural-0.12.0.tar.gz
Size 363.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c0cfecffd93c0c9c687aa05c613615c842ba796bd2a16b450c774abb750c16db
BLAKE2b-256 checksum
How to use checksums
f7123525344b9ae2cd9d3219a323faf612d05b120aed75cfb2c1e935d4d801b1
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.0-py3-none-any.whl

Download URL plural-0.12.0-py3-none-any.whl
Size 253.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
120f89f3d5c2646466aad663a1a278a01869b4e39a8a77c06be87a706bc21aaa
BLAKE2b-256 checksum
How to use checksums
47e6131635c01917a05dcfe3f0539411638e1e4770ab771a6e029db349504006
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

0.12.1

2 release files

This release

0.12.0 This release

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