Skip to main content

llama-index-tools-truth-bear-gauge

LlamaIndex tool spec for Truth Bear GAUGE, a pay-per-call source of official-record signals (US federal agencies and named registries).

Installation

pip install llama-index-tools-truth-bear-gauge

No API key, no account, no signup for the two free tools.

Tools

Method Cost Purpose
coverage_check free Does a signal line exist, how many objects, how fresh, is the source agency on schedule
catalog_lookup free Which entity ids are valid for a signal line — filter by signal_id or industry (one required)
record_request paid (x402) Requests one official record; returns the HTTP 402 payment challenge untouched

Quick start

from llama_index.tools.truth_bear_gauge import TruthBearGaugeToolSpec

spec = TruthBearGaugeToolSpec()
tools = spec.to_tool_list()

# Use directly
print(spec.coverage_check(signal_id="hydrology.river-level"))
print(spec.catalog_lookup(signal_id="hydrology.river-level"))

With an agent

from llama_index.core.agent import ReActAgent
from llama_index.tools.truth_bear_gauge import TruthBearGaugeToolSpec

tools = TruthBearGaugeToolSpec().to_tool_list()
agent = ReActAgent.from_tools(tools, llm=your_llm, verbose=True)
agent.chat("Is the hydrology.river-level signal line on schedule?")

Design notes

  • Standard library only — no dependency beyond llama-index-core.
  • No money moves here. record_request 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 returns an error.
  • 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

llama_index_tools_truth_bear_gauge-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file llama_index_tools_truth_bear_gauge-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_truth_bear_gauge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d0eb44ae4ff4a92659b3dc7451c80a251161e89789acb743b854b6cf63f9788
MD5 7848d8ca76be2b90439c4a4049571b92
BLAKE2b-256 31cd64e23924aa457d8824666e9fff117d6fbce6123aca0f6f41898716621527

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_truth_bear_gauge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2475030dee82424bfe8852699c9b1824204e22a76fb8d9ae229305fcba6a7931
MD5 12c584e01803f46c35270c90dd1dca87
BLAKE2b-256 658477cec8cd1a9a0ba6808edfb6ff6e55dfb777f3ec403451e659437896efc5

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