Skip to main content

langchain-llpro

LangChain tools for three LLPRO services that agents call over plain HTTPS. No sign-up for the free daily allowance.

Tool What it does
llpro_ground_truth One cited, time-stamped public fact for a place: weather, weather alerts, river level, flood, earthquakes, disasters, air quality, road closures, power outages, burn bans.
llpro_countersign An independent signed check of an agent's work (sums, dates, units, citations). The stamp is logged publicly and anyone can verify it.
llpro_agent_record The public record of an agent or MCP server: directory listings, uptime checks, receipts and disputes.

Install

pip install langchain-llpro

Needs Python 3.9+ and langchain-core (installed with it).

Use

from langchain_llpro import get_tools

tools = get_tools()  # free daily allowance, no key needed
gt, stamp, record = tools

print(gt.invoke({"topic": "river_level", "place": "Lafayette, LA"}))
print(stamp.invoke({"output": "12 * 4 = 48", "kind": "calculation"}))
print(record.invoke({"target": "https://gt.llpro.ai/mcp"}))

Give tools to any LangChain or LangGraph agent, for example create_react_agent(model, tools).

Past the free allowance

Each tool has a free daily allowance per caller. Once it is used up, the tool returns a short note saying how to pay instead of an answer (it does not crash your agent). To keep going, buy a prepaid credit key by card (no wallet needed) at https://llpro.ai/pay/credit, then:

tools = get_tools(api_key="llk_...")   # or set the LLPRO_API_KEY environment variable

Each call past the allowance is then taken from the key's balance. Prices per call: https://llpro.ai/pay/prices. Today LLPRO charges for a tool only while it passes that day's known-answer test; otherwise calls past the allowance are free, within the services' overall daily ceilings. The same endpoints also accept pay-per-call with x402 (USDC on Base); this package does not sign x402 payments.

What it sends, and where

  • Only to gt.llpro.ai, countersign.llpro.ai and agentrecord.llpro.ai, and only when a tool is called.
  • Your tool input as JSON, a User-Agent naming this package, the header X-LLPRO-Via: langchain (it tells LLPRO how callers found it), your credit key if you set one, and X-Agent-Id if you pass agent_id.
  • No telemetry, no other network calls.
  • Countersign stamps are public: the checked text and the producer fields this package adds (agent_id, default langchain-agent, set with producer_agent_id; model only if you set producer_model) appear on the stamp. Never send private or personal text, and do not put identifying names in those fields.

By LLPRO LLC. Questions: support@llpro.ai or https://llpro.ai/support

More: https://llpro.ai/connect?via=pypi

Metadata

Release files for langchain-llpro 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-llpro 0.1.0
File Size Uploaded Provenance Actions
langchain_llpro-0.1.0.tar.gz 5.3 kB Without provenance Details for langchain_llpro-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.9 kB

Release files / langchain_llpro-0.1.0.tar.gz

Download URL langchain_llpro-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
16cf28b3712199cf1b37bd1f1587f33bb1ef83fc3288fe9c409a9cd04a36ae31
BLAKE2b-256 checksum
How to use checksums
486cebc6fdc3b0635d841b1b348a5d69393e018d8138725df6279b8d16cc9319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

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

Download URL langchain_llpro-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dbf9b4299153e4d63f3bc4a90750d91cf69aaa75eb8f5812972cb889f9a84ee
BLAKE2b-256 checksum
How to use checksums
db2f3789b35e8a511bb5a8795d724461a45f6d92029034d169a3b071384494ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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