Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Adeptiv GenAI Tracing SDK

Adeptiv GenAI is a lightweight, vendor-neutral OpenTelemetry tracing SDK for LLMs, agents, and AI workflows.

It captures latency, execution flow, hashes, and metadata for all AI use cases.


Key Features

  • Trace-only observability (no response normalization)
  • Works with any LLM (OpenAI, Anthropic, Gemini, local models)
  • Supports chat, summarization, agents, tools, RAG
  • Sync & async compatible
  • Enterprise-safe (hashing, redaction, previews)
  • OpenTelemetry compatible

This ensures zero lock-in and maximum compatibility.


Installation

pip install adeptiv-ai-evaluator-sdk

This installs the instrumentation for every supported library (OpenAI, OpenAI Agents, Anthropic, LiteLLM, LangChain, LlamaIndex, Bedrock, Vertex AI, Google GenAI and ADK, Mistral, Groq, DSPy, CrewAI, Haystack, smolagents, AutoGen, Instructor). Each one is activated only when your app uses that library, so model, agent and tool calls show as steps with nothing more to install.

Adeptiv GenAI Tracing SDK

Tracing an LLM Call

SDK configuration

config.endpoint = "wss://<adeptiv host>/ws/sdk/" # Adeptiv endpoint (set before the key)
config.api_key = "" #project Key 
config.project_name = "customer-support-bot" # Project Name


from adeptiv_evaluator_sdk import trace_llm

@trace_llm(model="gpt-4o", operation="chat", workflow_id="")
def chat(prompt):
    return llm.invoke(prompt)

chat("Hello world")
# Adeptiv GenAI Tracing Agents SDK

from adeptiv_evaluator_sdk import trace_llm

@trace_agent("support_agent", model="gpt-4o",workflow_id="")
async def run_agent(query):
    return await agent.run(query)

End user's IP and location

A trace shows where its user called from only when the app says so: pass the end user's IP with set_user_ip, usually in a web middleware. Without it the trace has no IP or location - Adeptiv never keeps the app server's address, which says nothing about the user.

import opentelemetry.context
import adeptiv_evaluator_sdk as adeptiv

@app.middleware("http")
async def adeptiv_user_ip(request, call_next):
    token = adeptiv.set_user_ip(request.client.host)
    try:
        return await call_next(request)
    finally:
        opentelemetry.context.detach(token)

Behind a proxy or load balancer, pass the first address of its X-Forwarded-For header instead. A private address (127.0.0.1, 10.x) has no location and is not kept.


Containment

Containment rules (pause an agent, block a tool, approved models only, slow down, budgets) are enforced by a separate package, adeptiv-ai-gateway:

pip install adeptiv-ai-gateway
from adeptiv_gateway import Adeptiv

client = Adeptiv()          # once, at start-up

It works alongside this SDK, in either order.

Transport

Traces go over one WebSocket per process to Adeptiv, opened in the background. You give the SDK two things: the endpoint and your project API key.

from adeptiv_evaluator_sdk import init_telemetry

init_telemetry(
    api_key="<project api key>",
    endpoint="wss://<adeptiv host>/ws/sdk/",
)

or ADEPTIV_API_KEY and ADEPTIV_ENDPOINT in the environment. The key is sent once, on the Authorization header when the connection opens.

While the connection is down your app never waits on it: trace batches are held in memory (up to 32 MB, gzipped) and sent when it is back.

Setting Env var Default
endpoint ADEPTIV_ENDPOINT none (required)
api_key ADEPTIV_API_KEY none (required)
realtime_ack_timeout_seconds ADEPTIV_REALTIME_ACK_TIMEOUT 10 (then the batch is held and sent again)
realtime_connect_timeout_seconds ADEPTIV_REALTIME_CONNECT_TIMEOUT 5
realtime_max_backoff_seconds ADEPTIV_REALTIME_MAX_BACKOFF 60 (reconnect backoff cap)

Media (images, audio, video, PDF, Word)

Off by default: files sent to a model can hold personal data. Turn it on with init_telemetry(capture_media=True) or ADEPTIV_CAPTURE_MEDIA=true.

  • A file found inline in a model call (a base64 data URI, or a provider's base64 source such as Anthropic's) is uploaded to Adeptiv apart from the trace, straight to storage with a one-time form, in a background thread. The trace keeps a short reference: [media image/png 812 KB sha256:…].
  • A file larger than media_max_bytes is noted, not uploaded: [application/pdf omitted: 7.2 MB, over the 5.0 MB limit].
  • A file already uploaded (same SHA-256) is not sent again.
  • With capture off, an inline file is replaced by [inline image/png omitted, 812 KB].
Option Environment Default
capture_media ADEPTIV_CAPTURE_MEDIA false
media_max_bytes ADEPTIV_MEDIA_MAX_BYTES 5242880 (5 MB)

Metadata

Release files for adeptiv-ai-evaluator-sdk 1.66.0.dev5

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

Source distribution (sdist)

Source distribution for adeptiv-ai-evaluator-sdk 1.66.0.dev5
File Size Uploaded Provenance Actions
adeptiv_ai_evaluator_sdk-1.66.0.dev5.tar.gz 61.8 kB Without provenance Details for adeptiv_ai_evaluator_sdk-1.66.0.dev5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adeptiv-ai-evaluator-sdk 1.66.0.dev5
File Interpreter ABI Platform Actions
adeptiv_ai_evaluator_sdk-1.66.0.dev5-py3-none-any.whl Python 3 none any Details for adeptiv_ai_evaluator_sdk-1.66.0.dev5-py3-none-any.whl

Total release size: 135.2 kB

Release files / adeptiv_ai_evaluator_sdk-1.66.0.dev5.tar.gz

Download URL adeptiv_ai_evaluator_sdk-1.66.0.dev5.tar.gz
Size 61.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4162f68f9fa42b35bdc29cc602f7ce04ad5939832681c75139675ede6876c7e7
BLAKE2b-256 checksum
How to use checksums
47d54f7fa470d3b90b35ec570d5181b7cdcb57d8e1bb645eeeb975b7bb7cc4f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / adeptiv_ai_evaluator_sdk-1.66.0.dev5-py3-none-any.whl

Download URL adeptiv_ai_evaluator_sdk-1.66.0.dev5-py3-none-any.whl
Size 73.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ab9642fbdae2cd5bfe04fd122204ef31795c8c002d123ed0a8040cdc2049612
BLAKE2b-256 checksum
How to use checksums
2c451df2a04768b9bf4ba928052467a3bdfbb314d2161f3fd3e5362617c342e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for adeptiv-ai-evaluator-sdk 1.66.0.dev5

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.

Release history Release notifications | RSS feed

This release
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