langchain-truthbear
LangChain tools for Truth Bear GAUGE, a pay-per-call source of official-record signals (US federal agencies and named registries).
Installation
pip install langchain-truthbear
No API key, no account, no signup for the two free tools.
Tools
| Tool | Cost | Purpose |
|---|---|---|
GaugeCoverage |
free | Does a signal line exist, how many objects, how fresh, is the source agency on schedule |
GaugeCatalog |
free | Which entity ids are valid for a signal line — filter by signal_id or industry (one required) |
GaugeRecord |
paid (x402) | Requests one official record; returns the HTTP 402 payment challenge untouched |
Quick start
from langchain_truthbear import GaugeCoverage, GaugeCatalog
# Check a signal line
coverage = GaugeCoverage()
print(coverage.invoke({"signal_id": "hydrology.river-level"}))
# Find valid entities
catalog = GaugeCatalog()
print(catalog.invoke({"signal_id": "hydrology.river-level"}))
With an agent
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_truthbear import GaugeCoverage, GaugeCatalog
tools = [GaugeCoverage(), GaugeCatalog()]
# ... set up your agent with these tools
Design notes
- Standard library only — no dependency beyond
langchain-core. - No money moves here.
GaugeRecordreturns the x402 challenge untouched; settling it is the caller's own wallet's job. - The catalog filter is required. The unfiltered response is ~1.5 MB — too large for an agent's
context — so a call with neither
signal_idnorindustryis rejected. - A miss is not an error. An unknown
signal_idreturns{"found": false}rather than raising. - Every paid record ships a canonical sha256
record_hashthat can be recomputed offline.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_truthbear-0.1.0.tar.gz.
File metadata
- Download URL: langchain_truthbear-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daa9b1f8e912831fd88eef13d23baef9ed926f2c3e9ae7e3f0ad7f3549d70722
|
|
| MD5 |
d382087923a80fdc963fab389bdb959b
|
|
| BLAKE2b-256 |
0f164c9b11ee878fe2648fbbf68809ec526f2551c8af912573ee351106611359
|
File details
Details for the file langchain_truthbear-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_truthbear-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
484fbd748356a12557f8efae5a3168cfe51cba6c0c65e13bf2fb8f6b54561684
|
|
| MD5 |
c63270f8ccfdc4a1cfe032a42830d252
|
|
| BLAKE2b-256 |
bdecef12cac6e2bba9c7bdd6f9a5dde9ec318caf9e88dd6e07432c580cb46897
|