Human judgment as an API for AI agents. Send a decision to ID verified people and get their consensus back.
pip install plures==1.30.0 Copy PIP instructions
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.
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.
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.
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.
Both files in this release have provenance metadata.
agents ai-agents hitl human-approval human-in-the-loop human-review llm plures
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




