Live reliability oracle for AI agent tools (MCP) — ask if a tool is up right now before calling it, fail over to a healthy alternative, and report outcomes (privacy-preserving). Zero dependencies.
Project description
glimind (Python)
Live reliability oracle for AI agent tools. Ask if a tool works before calling it, and report your own outcomes (privacy-preserving) so the data gets better for everyone. Zero third-party dependencies (stdlib only); reporting is batched on a background daemon thread and flushed at exit, so it adds no latency to your calls.
pip install glimind
from glimind import Glimind
s = Glimind(endpoint="https://glimind.com", api_key="sk_live_...") # api_key optional
# 1) ask before acting
h = s.check("acme/search")
if h["verdict"] == "down":
... # pick a fallback
# 2) wrap a call — success/failure/latency reported automatically (privacy-clean)
with s.wrap("acme/search", input={"q": query}, task="search"):
result = acme.search(query)
# or decorate a function tool
@s.instrument("acme/search", task="search")
def search(q): ...
Framework middleware — one line
LangChain / LangGraph:
from glimind.langchain import GlimindCallbackHandler
agent.invoke(input, config={"callbacks": [GlimindCallbackHandler(s)]})
OpenAI Agents SDK:
from glimind.openai_agents import instrument_agent
agent = instrument_agent(s, agent) # every function tool now auto-reports
Privacy
This client never sends your arguments, payloads, or tool outputs. Before anything leaves your process it is reduced to a value-free shape skeleton (every leaf value becomes a type tag), errors are scrubbed, and only: tool id, input shape, success/failure, normalized error, latency, coarse region are transmitted. The derivation is identical to the TypeScript SDK, so shapes hash consistently across languages.
MIT licensed.
Project details
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 glimind-0.3.2.tar.gz.
File metadata
- Download URL: glimind-0.3.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f43b217c48bf43c3268f017fd1131c9d2e7b30d0c6c1e1dd2aa59422fde9c4fe
|
|
| MD5 |
bdb6e4cd220807e65ea4ba1755789f0d
|
|
| BLAKE2b-256 |
b60adee01636d59da6eb2669d994dbb9d0a1579d10fc43dd8bda60aa3b700b98
|
File details
Details for the file glimind-0.3.2-py3-none-any.whl.
File metadata
- Download URL: glimind-0.3.2-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69f84de9eb21f40165b658ae8ae59b35a261f373b47d88dae49478caa34decd5
|
|
| MD5 |
106562733d874b21e027ea55f5ec2b34
|
|
| BLAKE2b-256 |
ca417e08bdcea84a91c908399cae6034161bdc800df5bd16843da068d6d40e53
|