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

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.2
File Size Uploaded Provenance
langchain_botsrated-0.1.2.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 10.5 kB

Release files / langchain_botsrated-0.1.2.tar.gz

Download URL langchain_botsrated-0.1.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e5f74dbbfd82921fb49e2a7aa8bf4b5d53890efdf15d6da4d7feddf8732a74b9
BLAKE2b-256 checksum
How to use checksums
a196066799f4b7b8f130dd8a65b54da105aab98e1f7ad1432999d85c3f53c293
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.2-py3-none-any.whl

Download URL langchain_botsrated-0.1.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faa8be8ddf7d5eb959af98b1c865142ba4c8922cf81ffba0b4cd20f1a9a262bd
BLAKE2b-256 checksum
How to use checksums
5597c2acdeaeace44106747b2f88ad80de88c78f754f2d679e34a7ae369bcaad
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.2

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