sentinelproxy (Python)
Mirror your LangChain or LiteLLM agent turns to SentinelProxy — the self-healing layer for AI agents. The judge catches hallucinations, prompt injections, PII leaks and competitor mentions, then hands you a hardened system prompt.
Install
pip install sentinelproxy # core + LiteLLM
pip install "sentinelproxy[langchain]" # + LangChain callback handler
Get a per-project API key from your dashboard → project → Connect tab.
LangChain
from sentinelproxy import SentinelProxyCallbackHandler
handler = SentinelProxyCallbackHandler(
api_key="sk_sentinel_…",
system_prompt="You are a support agent for Acme.",
)
llm.invoke(messages, config={"callbacks": [handler]})
LiteLLM
import litellm
from sentinelproxy import sentinel_litellm_callback
litellm.success_callback = [sentinel_litellm_callback("sk_sentinel_…")]
Low-level client
from sentinelproxy import SentinelClient
SentinelClient("sk_sentinel_…").log(
system_prompt="You are a support agent for Acme.",
user_input="Where's my order?",
llm_response="Let me check…",
latency_ms=820,
)
Logging is best-effort and off your critical path — failures are swallowed so
observability never breaks the agent (pass raise_on_error=True to
SentinelClient to surface them). PII is scrubbed at the SentinelProxy edge
before anything is stored.
Build & publish
python -m build
python -m twine upload dist/*
License
MIT
Metadata
Release files for sentinelproxy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sentinelproxy-0.1.0.tar.gz | 3.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sentinelproxy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / sentinelproxy-0.1.0.tar.gz
| Download URL | sentinelproxy-0.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8e3e3c4d25a6a62ebbb152bdba701070c53b3e477af6897bd3601ef2c090c77
|
|
BLAKE2b-256 checksum How to use checksums |
7a635ba387a8bcce37cd2fdc94c814cccb403cbe01d2401816305563398c067a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / sentinelproxy-0.1.0-py3-none-any.whl
| Download URL | sentinelproxy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cd3cf2d6e97623d8b8194ed6fa996adf2b478ad8653f03a35bcd0686c8283d5
|
|
BLAKE2b-256 checksum How to use checksums |
66e809c5b715e8c23a83aa5dc71f19d3620cdf162b4d8969ac200deed6f02b78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for sentinelproxy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.