LLM observability SDK for Revefi - Traceloop-based monitoring with custom ingestor service
Project description
Revefi LLM SDK
A minimal Python SDK for LLM observability with Revefi's monitoring platform.
Installation
pip install revefi-llm-sdk
Quick Start
from revefi_llm_sdk import init_llm_observability
# Initialize the SDK
init_llm_observability(
api_key="your-revefi-api-key",
agent_name="my-llm-agent",
ingestor_url="https://your-revefi-instance.com" # optional
)
# Your LLM calls will now be automatically tracked
import openai
client = openai.OpenAI()
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "Hello!"}]
)
Configuration
api_key: Your Revefi API key for authenticationagent_name: Name identifier for your agent/applicationingestor_url: Revefi ingestor service URL (defaults to localhost:6556)
Supported LLM Providers
- OpenAI
- Anthropic
Environment Variables
LLM_INGESTOR_URL=https://your-revefi-instance.com
License
MIT
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
revefi_llm_sdk-0.1.0.tar.gz
(4.0 kB
view details)
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 revefi_llm_sdk-0.1.0.tar.gz.
File metadata
- Download URL: revefi_llm_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ed1643c0b47ea7eb1c42ab9c3fb6c09b75935acee04ad133355e03cb43e0772
|
|
| MD5 |
e7066a9d9668d333635354a9a4eb04de
|
|
| BLAKE2b-256 |
9a1fb1c28abf313230612c51d2915c9014648b590932499eb29f7b00c475d9d6
|
File details
Details for the file revefi_llm_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: revefi_llm_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e8e33d8c62e1be7b3a658e79e3435233252021a4875dbdd481bf300debdcb9e
|
|
| MD5 |
bd1d62305b7af5bd554f0d24102b7a36
|
|
| BLAKE2b-256 |
f24122c712f5c7581f48d16fe3294c5f9c0f1d2ab8839bd9cfa2fa1c6318e571
|