Skip to main content

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

glimind-0.4.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

glimind-0.4.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file glimind-0.4.0.tar.gz.

File metadata

  • Download URL: glimind-0.4.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for glimind-0.4.0.tar.gz
Algorithm Hash digest
SHA256 bf12f823619e90399f7bbd02cbc51bc3e7ed9b586eaefbecd237afa00dc39cfc
MD5 d645f9f82a64eeeb10f5fce850100183
BLAKE2b-256 6b2fbf3a75f12ebed1a0175955e63757cc7d8dba2af60e412669e7d2f6e052a4

See more details on using hashes here.

File details

Details for the file glimind-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: glimind-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for glimind-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 040eef50ac87fe2c465cf836ace21388b5494825d51195d5a8d4a67f1d063b76
MD5 2601fd8ddc9a71da88b451db3477a4d2
BLAKE2b-256 a755537ac55bab08991d6ae21b5e239acf855a7b1e3c9036665b2d1201ba69f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page