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. x402_client is an x402.x402ClientSync with your signer registered;
# it only ever signs a copy of BotsRated's quote rebuilt from allowlisted fields (no Permit2, no extensions).
tools = botsrated_tools(BotsRatedClient(budget_usd="0.02", x402_client=x402_client))

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.1

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.1
File Size Uploaded Provenance
langchain_botsrated-0.1.1.tar.gz 5.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 10.2 kB

Release files / langchain_botsrated-0.1.1.tar.gz

Download URL langchain_botsrated-0.1.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
77fc9750d6e62ef4746a0012356ade8cb25f3ed3adf91aba8cd53d5b0086f861
BLAKE2b-256 checksum
How to use checksums
d0e989383e55788c9a04fbc8e34871be22339bf2857a4f98ea1d862a92da395c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL langchain_botsrated-0.1.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
983994f73685dba548d32496e7114f982a4c7564f7a853bbc6e817dee5e2d5ba
BLAKE2b-256 checksum
How to use checksums
906bf0396922ab944ba908afcc5c3a71c511fd32e78b6ae4ab30948f2689e1d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for langchain-botsrated 0.1.1

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