Skip to main content

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. GaugeRecord returns 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_id nor industry is rejected.
  • A miss is not an error. An unknown signal_id returns {"found": false} rather than raising.
  • Every paid record ships a canonical sha256 record_hash that 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

langchain_truthbear-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_truthbear-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for langchain_truthbear-0.1.0.tar.gz
Algorithm Hash digest
SHA256 daa9b1f8e912831fd88eef13d23baef9ed926f2c3e9ae7e3f0ad7f3549d70722
MD5 d382087923a80fdc963fab389bdb959b
BLAKE2b-256 0f164c9b11ee878fe2648fbbf68809ec526f2551c8af912573ee351106611359

See more details on using hashes here.

File details

Details for the file langchain_truthbear-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_truthbear-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 484fbd748356a12557f8efae5a3168cfe51cba6c0c65e13bf2fb8f6b54561684
MD5 c63270f8ccfdc4a1cfe032a42830d252
BLAKE2b-256 bdecef12cac6e2bba9c7bdd6f9a5dde9ec318caf9e88dd6e07432c580cb46897

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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