Skip to main content

plures

The official Python client for Plures: human judgment as an API for AI agents. Send a decision to ID verified people and get their consensus back before your agent acts. A human in the loop step you can call like any other API.

pip install plures

Python 3.8+, standard library only.

Use it

from plures import Plures

plures = Plures()  # reads PLURES_API_KEY, or Plures("pk_test_...")

task = plures.verify(
    "Does the invoice match the order?",
    ["Matches", "Does not match"],
    context="Order: 48 chairs, $4,218. Invoice: 48 chairs plus $180 freight, $4,398.",
    verifiers=3,
)
result = task["result"]
if result and result["agreement"] == 1:
    print("Act on:", result["answer"])
else:
    print("Not unanimous: send to the team")

Get a free test key at plures.si. Test keys complete at once with the first option (or metadata["test_answer"]) and never reach real people. Set metadata["test_outcome"] to split, tie, expired or slow to test the cases you route to your own team.

Judgment: no fixed right answer

Some calls have no answer key: which reply sounds right for your brand, which design feels more premium, whether a customer would accept a decision. A panel gives its honest views and you get the spread back. A genuine split comes back as contested: True.

t = plures.judge(
    "Which reply would you rather receive?",
    format="compare",  # or "accept" (default), "rate", "flaws", "custom"
    rubric="Warm and clear, never pushy.",
    compare={"a": reply_a, "b": reply_b},  # text, or {"text", "image_url", "video_url"}
)
print(t["result"]["answer"], t["result"]["contested"], t["result"].get("reasons"))

# Coming soon (test keys now): one top rated verified person approves or rejects after a fresh Face ID or Touch ID check
s = plures.signoff("Approve this $2,400 refund?", context=context)
print(s["result"]["signoff"])

Production: webhooks

plures.create_task(
    "Should this customer get a refund?", ["Approve", "Decline"],
    context=ticket_text, webhook_url="https://your.app/plures",
    metadata={"order_id": order_id}, idempotency_key="refund-%s" % order_id,
)

# In your webhook handler (Flask shown), pass the raw body exactly as received
from plures import verify_webhook
event = verify_webhook(request.get_data(), request.headers.get("Plures-Signature"), WEBHOOK_SECRET)

Pay per decision with x402 (preview)

Agents can buy a single decision with no API key, paying in USDC on Base through x402. It runs on the Base Sepolia test network for now; real USDC is coming. Pass a payment function that takes the payment requirements and returns the base64 X-PAYMENT header your x402 wallet signs:

plures = Plures(payment=sign_x402_payment)  # your x402 signer
task = plures.create_task("Should this customer get a refund?", ["Approve", "Decline"])
plures.get_task(task["id"])  # the receipt is remembered

Without a payment function, a keyless request raises PaymentRequiredError with the requirements in e.accepts. See Pay with x402.

API

  • log_turn(question, answer, intent=None, rerouted_to=None, retrieval=None, sources=None, session=None, channel=None): answer reviews for assistants. Plures picks the turns that went wrong plus a few at random for your team to grade. turn_insights(app) and export_turns(app, kind) (routes, qa, missed) turn the grades into routing examples and eval sets.
  • check(check_id, data=None, **overrides): run a check from your app's map, one line before the action it guards: check = plures.check("refunds", {"order_total": total}), then act only if check["answer"] == "Approve". The check saved on Plures supplies the question, options, which fields people see (the rest come back in kept_private), who decides, how often, its conditions and what happens on a timeout. checked says whether a person looked; skipped_because says why not.
  • create_task(question, options, idempotency_key=None, **fields): fields are context, image_url, audio_url or video_url with media_seconds (a clip up to 180 seconds that people play through before answering), sensitive, instructions, verifiers (1, 3, 5, 7 or 9), max_verifiers, presence_check (default True), webhook_url, metadata, expires_in, route, category, team, use_precedent After creating a task, read warnings on the response: it says when few verified people are around, and names any field in your request that Plures did not know and ignored.
  • use_precedent=True on create_task or verify: look in your judgment graph first. When people already settled cases like this one (at least three close matches with the same options, all decided the same way with strong agreement), the task comes back completed with decided_by "precedent" for $0.05 live and people never see it. One in ten still goes to people as an audit. Not with route="team".
  • fast=True on create_task or verify: paid speed, served first and pushed at once with a bonus for answers within a minute; $0.10 more per answer live. Not with route="team".
  • create_audit(rows=None, kind="check", about=None, question=None, csv=None): an audit. Up to 50 decisions your agent already made, each a dict of input and decision, graded so you see which were wrong. kind="judgment" asks whether a customer would be happy with each one. The first audit is free; once it has finished you can send more, paid from your credit when sent: $0.20 a decision, $0.50 for a judgment audit, one at a time. The result carries paid, price_cents, mode (people, or hybrid where the system grades every row and a person reviews the ones that need it) and graded_by on each row. A person at Plures reviews it first.
  • get_audit(audit_id=None): where the audit is and, once people answer, the verdict for each row.
  • find_precedents(question, context=None, options=None, category=None, app=None, limit=None): the closest past decisions on cases like this one and, when the case is settled, a suggestion. Free.
  • get_scorecard(app=None): is it working. Returns measures (accuracy, automation, clean, false_alarms, time, cost), each with value, n (how many decisions it rests on), early, before and trend; your precedent settings; and suggestion, a change Plures is proposing, or None. Free and read only: a person changes settings and answers suggestions.
  • get_taste(category=None, examples=None): what the team wants its agents' work to look like. Returns the standing rules in force, recent examples of what they like and don't (each described and tagged by Plures), and guidance, the rules as text for your agent's instructions. Free, and the same for test and live keys.
  • check_taste(draft=None, image_url=None, category=None): holds a draft up against those rules and examples before a person sees it. Returns pass, violations (rule_id, rule, why) and suggestions. checked False means nothing was assessed; never treat that as approval. category need not be exact, or sent at all: Plures reads the draft and applies the rules of every category it is sure enough the draft belongs to, and categories in the result lists which were applied.
  • add_taste_rule(text, category=None), list_taste_rules(status=None, category=None), retire_taste_rule(rule_id), add_taste_example(verdict, image_url=None, text=None, note=None, category=None), list_taste_examples(category=None, limit=None), remove_taste_example(example_id). A rule you add is in force at once. Rules Plures drafts from the team's notes stay proposed until a team member approves them.
  • get_task(id), list_tasks(status=None, limit=None, starting_after=None, app=None), cancel_task(id)
  • Plures(app="support-agent") or PLURES_APP: send everything to one of your apps. list_apps(), create_app(name, id=None), get_app(id), update_app(id, name=None, id=None, default=None, archived=None), archive_app(id), restore_app(id), delete_app(id). An archived app keeps its history but takes no new work.
  • map_guide(), get_map(app), upload_map(app, agent_map, branch=None) (a branch other than main gets its own map, compared with main), set_checkpoint(app, id, status): the agent map, where your agent needs a person. Or run npx plures map in your repo.
  • create_map_key(app, label=None), list_map_keys(app), revoke_map_key(app, key_id): map keys for CI, which can only read and upload that app's map. map_workflow(app, branch="main") returns the GitHub Action that maps on every push. start_map_run(app), list_map_runs(app): a run where Plures runs Claude for CI with no Claude key, at cost. map_estimate(app, kind="map") shows what the next map or drift fix costs: the Plures engine fee, 5¢ a step of the app's map (the first map of each app is free), plus Claude at cost when Plures runs it. A drift fix is paid by outcome: each quality point it wins back costs 20¢ a step of the map ($3 to $15 a point), at most $500 a fix, with Claude included.
  • github_repos(), connect_github(app, "owner/repo"), turn_on_github(app), run_github(app) (map now), github_status(app), disconnect_github(app): Map with GitHub from code. Plures sets the repo's map key secret and opens a pull request adding the workflow; turn_on_github merges it. Installing the Plures GitHub App needs a browser once (install_url).
  • sample(rubric, output, input=None): send every output; a share is graded by people, with personal details taken out first. create_rubric(name, question, options, sample_rate=0.05), get_rubric(name) (scores and drift), list_rubrics(), rubric_suggestions(app) (rubrics the Plures engine suggests from graded answers and the agent map), update_rubric(), delete_rubric(). compare(release, a, b, input=None) and get_release(release) for blind release checks. export_graded(rubric) for evals or fine tuning.
  • get_routing(), set_routing(team=None, groups=None, rules=None): named teams of your own people and rules by category, like groups=[{"name": "Finance", "emails": ["ap@acme.com"]}], rules=[{"category": "refunds", "route": "team", "group": "Finance"}]. Send a task with route="team" to skip verified people ($0.05 per internal vote live), or tag it with category= and let the rules decide. A team can vote: set votes, unanimous, lead and passkey on it, or team_votes=3 on a task.
  • set_test_mix({"unanimous": 70, "split": 20, "tie": 5, "expired": 5}), get_test_mix(), clear_test_mix(): with a test key, makes a share of test tasks split, tie or expire at random so you can test routing to your team without changing your agent. A task can override it with metadata={"test_mix": {...}}, and metadata.test_outcome beats both.
  • balance(): your prepaid credit for live tasks, in cents. Live tasks cost $0.20 per answer (more for clips); a task that could cost more than your available credit raises PluresError with type insufficient_credits (status 402).
  • wait_for(id, timeout=600, interval=3): poll until settled
  • verify(question, options, timeout=600, **fields): create and wait
  • judge(question, format="accept", **fields): a judgment task, created and waited for. format is accept, compare, rate, flaws or custom; add rubric, compare={"a", "b"} and reasons
  • signoff(question, **fields) (coming soon; test keys now): one top rated person approves or rejects with a reason after a fresh presence check ($1.00 live); result["signoff"] says who signed
  • verify_webhook(raw_body, signature_header, secret): check a webhook and return the event

Errors raise PluresError with .status and .type. Server errors are retried twice.

Examples for LangGraph and the OpenAI Agents SDK: github.com/plureslabs/plures. Full reference: plures.si/docs.

Metadata

Release files for plures 1.30.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 plures 1.30.0
File Size Uploaded Provenance Actions
plures-1.30.0.tar.gz 15.8 kB With provenance Details for plures-1.30.0.tar.gz

Built distribution (wheel)

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

Total release size: 33.0 kB

Release files / plures-1.30.0.tar.gz

Download URL plures-1.30.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c85e06253b056148f0763222e34e019d16237ea57cffa348ffb946e761a227fc
BLAKE2b-256 checksum
How to use checksums
6b7a2004872b494e6ad54784596fc3776f627b24b8f116e34aebac32d2291c31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 15, 2026.

Transparency log

Release files / plures-1.30.0-py3-none-any.whl

Download URL plures-1.30.0-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ccca3fe230663030c001e3610d417a322150645f256c3ad731aff3dc04ff4cb
BLAKE2b-256 checksum
How to use checksums
93f9dd92a2a8ae59b232ca23e62cbca174cb179af738ad902c0fd3dc18041c7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 15, 2026.

Transparency log

Security for plures 1.30.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plures-1.30.0.tar.gz

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 Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.30.0 This release

2 release files Full provenance

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