llama-index-tools-voidly-pay 0.2.0
LlamaIndex ToolSpec 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.
Public catalog search
from voidly_pay import VoidlyPay
from llama_index.tools.voidly_pay 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 llama-index-tools-voidly-pay 0.2.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 | Provenance | |
|---|---|---|---|---|
| llama_index_tools_voidly_pay-0.2.0.tar.gz | 13.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_tools_voidly_pay-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.1 kB
Release files / llama_index_tools_voidly_pay-0.2.0.tar.gz
| Download URL | llama_index_tools_voidly_pay-0.2.0.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5afd68cb59a2331cc3a2d7bd45bb7983f95010ac1c02a0d11c561ec82dbf90f5
|
|
BLAKE2b-256 checksum How to use checksums |
931608ff42342d96475852e9b6b0fb4796e2e9a91df81cdf29680e01bfeaa921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.1
|
Release files / llama_index_tools_voidly_pay-0.2.0-py3-none-any.whl
| Download URL | llama_index_tools_voidly_pay-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7de06787d7ed80baf3ca93b2b6f81d85991c5fb7c3666d3d2750820c896825cd
|
|
BLAKE2b-256 checksum How to use checksums |
8914521ed2a0c08eb4f5685fcc6e5338a5cb1be6f703fa596f9d0fa868c27b11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.1
|
Security for llama-index-tools-voidly-pay 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.