Skip to main content

langchain-botsrated

LangChain tools for BotsRated (beta). Use them as a pre-payment check before an agent pays an x402 seller.

Status: published on PyPI: langchain-botsrated 0.1.0. It depends on the botsrated package (source: integrations/python-core).

pip install langchain-botsrated
Tool Cost Notes
botsrated_preflight free Latest unpaid probe of the seller. With pay_to (+ network, amount) it returns decision.action allow or block and the reasons. By default, a payTo that BotsRated never saw for the host is blocked.
botsrated_paid_check $0.001 USDC on Base (first 100/day free) Only added when the client has a budget. Free-quota answers report charged: false and do not touch the budget.
from botsrated import BotsRatedClient
from langchain_botsrated import botsrated_tools

tools = botsrated_tools()            # free preflight only

# Opt-in paid check, max $0.02 total (session pays x402, e.g. x402.http.clients.x402_requests(x402_client))
tools = botsrated_tools(BotsRatedClient(budget_usd="0.02", paying_get=session.get))

To guard every payment that an x402 client makes (not just when the model calls a tool), register botsrated.PrePaymentGuard().x402_hook with x402Client.on_before_payment_creation. See botsrated.

Tests: pytest tests/unit_tests runs the tool tests and LangChain's ToolsUnitTests.

Metadata

Release files for langchain-botsrated 0.1.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 langchain-botsrated 0.1.0
File Size Uploaded Provenance
langchain_botsrated-0.1.0.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-botsrated 0.1.0
File Interpreter ABI Platform
langchain_botsrated-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / langchain_botsrated-0.1.0.tar.gz

Download URL langchain_botsrated-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
662477c715079d5649f634b7307f3ea680f3ee79241dafba643a1ce044488b83
BLAKE2b-256 checksum
How to use checksums
9dba4aea0c9ffbba752639024301d8dae7516bf00753e18e6fba307a4762347a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / langchain_botsrated-0.1.0-py3-none-any.whl

Download URL langchain_botsrated-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
807e4e125abfed8693bdd86cdff52094881bf339e97771f336bd55ed3cbdbf54
BLAKE2b-256 checksum
How to use checksums
176025699be015691b7ec9542c993833ddecda03180668edb2854a7f032ed600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for langchain-botsrated 0.1.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