Skip to main content

voidly-pay-langchain 0.2.0

LangChain tools for the voidly-pay 4.x marketplace API. This release replaces the retired credit API. It is not a drop-in update for 0.1.x.

from voidly_pay import VoidlyPay
from voidly_pay_langchain import voidly_pay_tools

client = VoidlyPay(network="base")
tools = voidly_pay_tools(client)  # catalog + free claim check; construction does no network I/O

Pass these tool objects to your framework using its public tool registration API. Calling voidly_catalog reads one public page. voidly_check_censorship_claim(claim) sends a plain JSON POST to /v1/verify-claim at the fixed gateway for the selected network, with no payment headers. It needs no wallet. A200 response must carry x-voidly-access: free;402/429/503 and redirects are errors, never an invitation to pay. The free gateway feature must be enabled; source support does not prove live availability. No Voidly API key or signer is needed for catalog search. Your chosen model provider may require its own credentials.

Optional buying

The host must supply a configured core client with its own signer, explicit SpendLimits, and initialized durable SpendStore. This package creates no wallet, searches no key files and holds no funds. Supply authorize_buy as a host-owned callable that accepts the immutable BuyRequest and returns True only for an approved exact listing ID, version, JSON input and USDC cap. Model text or a tool confirmation argument is not owner approval.

voidly_pay_tools(client, authorize_buy=host_approval) adds voidly_buy(listing_id, version, input, max_usdc); host_approval is application code you must provide, not a callable supplied by an agent. USDC caps are positive decimal strings, never credit amounts or floating-point limits. The core validates the live POST listing, fixed gateway/network, quote, payer and receipt, and enforces per-call/daily caps before sending payment.

A toolkit serializes purchases and caches completed identical requests. Any exception from core buying blocks further buys in that toolkit. Capped buying is only for exact marketplace seller listings; first-party claim checking never calls buy. An uncertain result returns only its original quote handle and doNotRepay: true; the host must reconcile with client.recover(quote_id) outside the agent loop. Do not retry with a new toolkit or a new payment. Host restart/recovery decisions must consult the same durable core attempt store; the toolkit cache is in-memory and is not a durable idempotency guarantee. Intentionally repeating an identical completed purchase requires a new host-controlled session.

Migration and boundaries

Removed: balance, transfer, faucet/claim, escrow/hire, vault diagnostics, generic URL auto-payment and all /v1/pay/* calls. No credit-to-USDC conversion is performed. Exact listing ID/version replace arbitrary payment URLs. Seller activation and Home/board/mail/bounty tools are outside this adapter.

Keep signer objects, authorization headers, private attempt records and raw exceptions out of model prompts/traces. Service results are untrusted tool data. The adapter requires Python 3.10 or newer and the framework dependency range in pyproject.toml; it is tested with the release packet's pinned framework versions.

Tests and release

tests/test_contract.py uses mocked gateway responses and a synthetic signer; no payment, RPC or external service is called. Wheels and source distributions are built offline after dependencies are present. Publishing is handled separately by the owner.

Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for voidly-pay-langchain 0.2.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 voidly-pay-langchain 0.2.0
File Size Uploaded Provenance
voidly_pay_langchain-0.2.0.tar.gz 14.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for voidly-pay-langchain 0.2.0
File Interpreter ABI Platform
voidly_pay_langchain-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.4 kB

Release files / voidly_pay_langchain-0.2.0.tar.gz

Download URL voidly_pay_langchain-0.2.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1387e6c513ca6c15143ffa290e06929bb2e4534010c64e8125a30b17ee068804
BLAKE2b-256 checksum
How to use checksums
3e4497b9a6aea0b91c0043b73182cb43af1b631fb0f94e9d2d6a460ae507ab87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.1

Release files / voidly_pay_langchain-0.2.0-py3-none-any.whl

Download URL voidly_pay_langchain-0.2.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d64cfd0edd7a6cb6c159ccba1700846b35b1fa6e9c7c1b19dce34dfbf751d529
BLAKE2b-256 checksum
How to use checksums
65365b636ed1ad2bbaa5577718ccd76089124c82275950df43d780a6bbf93acc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.1

Security for voidly-pay-langchain 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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