Plural
Plural is a Python SDK for defining environments, evaluating agents, and keeping reproducible evidence.
Seven plain concepts
- An Environment is the world an agent can act in.
- A Runtime says where that world runs.
- An Agent selects a catalog model and optional harness.
- A Verifier scores a completed trial.
- A Task combines instructions, one Environment, and Verifiers.
- A Benchmark pins an ordered set of Tasks.
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| plural-0.12.0.tar.gz | 363.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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