VerifAI SDK
VerifAI SDK provides automatic tracing and evaluation for your AI/LLM applications. With one line of code, capture all LLM calls and send them to the VerifAI platform for analysis.
Installation
pip install verifai-sdk
Quick Start
import verifai
from openai import OpenAI
# 1. Initialize (one line!)
verifai.auto_instrument(
project_name="my_project",
capture_content=True
)
# 2. Use your AI libraries as usual
client = OpenAI()
response = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "Hello!"}]
)
# Traces are automatically sent to VerifAI! ✨
Configuration
Set your API key as an environment variable:
export VERIFAI_API_KEY="your_api_key_here"
export VERIFAI_API_URL="http://localhost:8000" # Optional
Supported Frameworks
- ✅ OpenAI
- ✅ Anthropic
- ✅ LangChain
- ✅ LlamaIndex
- ✅ Custom agents (via
@verifai.tracedecorator)
Manual Tracing
For custom agent logic:
@verifai.trace
def my_agent(query: str):
# Your agent logic here
return result
License
Apache 2.0
Release files for verifai-llm-sdk 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| verifai_llm_sdk-0.2.2.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| verifai_llm_sdk-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / verifai_llm_sdk-0.2.2.tar.gz
| Download URL | verifai_llm_sdk-0.2.2.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
700291afa16c6f51c12323555463d996d36d4a8696b330eb7418152fcccdc0b6
|
|
BLAKE2b-256 checksum How to use checksums |
07a7957817ea6a6aa0b7a5275cec8af8ecc71f5fc61ec658e3778b1cc3fd6727
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / verifai_llm_sdk-0.2.2-py3-none-any.whl
| Download URL | verifai_llm_sdk-0.2.2-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e79bf32231d933395abe844e3fd756865c57601fb840d9dc87c19bb4c57d20e7
|
|
BLAKE2b-256 checksum How to use checksums |
98bd7e2c1baff9e83da6a47dc80a1ebcab4fdb5f7557725ad679488be571e800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|