Skip to main content

sentinel-llm

Drop-in observability and trust layer for AI pipelines and agents. Part of Sentinel. Installs as sentinel-llm, imports as sentinel.

The SDK has zero runtime dependencies (standard library only) so it's safe to import into any process. It intercepts LLM calls, tool calls, and retrieval steps and ships them - batched, PII-redacted, on a background thread - to a Sentinel collector.

Install

pip install sentinel-llm
# optional provider extras
pip install "sentinel-llm[openai]"      # or [anthropic], [otel]

Use

import sentinel
from openai import OpenAI

sentinel.init(service_name="my-agent")     # defaults to http://localhost:8000
client = sentinel.wrap(OpenAI())           # the only change to your code

client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}],
)

Instrument your own code:

@sentinel.trace(kind="tool")
def search(query: str) -> list[str]:
    ...

with sentinel.span("agent-run", kind="agent"):
    search("vector databases")             # nested under the agent span

Works with sync and async clients, streaming responses, and Anthropic (sentinel.wrap(Anthropic())). For other frameworks, use @sentinel.trace / sentinel.span() directly.

Configuration

All settings have env-var equivalents (SENTINEL_*); see the configuration guide.

Option Default Purpose
endpoint http://localhost:8000 collector URL
service_name default logical service name
capture_content true record prompt/response payloads
redact_pii true redact PII before export
sample_rate 1.0 head-based sampling
enabled true set false to make the SDK a no-op

License

Apache 2.0.

Metadata

Release files for sentinel-llm 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentinel-llm 0.1.1
File Size Uploaded Provenance Actions
sentinel_llm-0.1.1.tar.gz 23.4 kB With provenance Details for sentinel_llm-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sentinel-llm 0.1.1
File Interpreter ABI Platform Actions
sentinel_llm-0.1.1-py3-none-any.whl Python 3 none any Details for sentinel_llm-0.1.1-py3-none-any.whl

Total release size: 48.6 kB

Release files / sentinel_llm-0.1.1.tar.gz

Download URL sentinel_llm-0.1.1.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0940fa1705b96574405619291e7114cc1d422a688f75b9fc771333a739a7af1a
BLAKE2b-256 checksum
How to use checksums
4e0a658b047828f7b71e8292b93b21b38dbee6faf51f3b95caba361ea632320e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 30, 2026.

Transparency log

Release files / sentinel_llm-0.1.1-py3-none-any.whl

Download URL sentinel_llm-0.1.1-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6041937bd7db89b660ced184d321efef479b3e5c7637c0c9d390cd463dc80849
BLAKE2b-256 checksum
How to use checksums
03d5f9849e56cff549282356f7edb2b24dced55e6d45a0971ffb6fb7fcdd3d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 30, 2026.

Transparency log

Security for sentinel-llm 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sentinel_llm-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 30, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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