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_requestreturns 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_idnorindustryreturns an error. - 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 llama_index_tools_truth_bear_gauge-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_tools_truth_bear_gauge-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d0eb44ae4ff4a92659b3dc7451c80a251161e89789acb743b854b6cf63f9788
|
|
| MD5 |
7848d8ca76be2b90439c4a4049571b92
|
|
| BLAKE2b-256 |
31cd64e23924aa457d8824666e9fff117d6fbce6123aca0f6f41898716621527
|
File details
Details for the file llama_index_tools_truth_bear_gauge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_truth_bear_gauge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 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 |
2475030dee82424bfe8852699c9b1824204e22a76fb8d9ae229305fcba6a7931
|
|
| MD5 |
12c584e01803f46c35270c90dd1dca87
|
|
| BLAKE2b-256 |
658477cec8cd1a9a0ba6808edfb6ff6e55dfb777f3ec403451e659437896efc5
|