Skip to main content

VerifAI Python SDK for LLM tracing and evaluation

Project description

VerifAI SDK

PyPI version Python 3.9+

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.trace decorator)

Manual Tracing

For custom agent logic:

@verifai.trace
def my_agent(query: str):
    # Your agent logic here
    return result

License

Apache 2.0

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

verifai_llm_sdk-0.2.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

verifai_llm_sdk-0.2.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file verifai_llm_sdk-0.2.2.tar.gz.

File metadata

  • Download URL: verifai_llm_sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for verifai_llm_sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 700291afa16c6f51c12323555463d996d36d4a8696b330eb7418152fcccdc0b6
MD5 adb11b9f5f4d9fbb2c9b540e0b518b4a
BLAKE2b-256 07a7957817ea6a6aa0b7a5275cec8af8ecc71f5fc61ec658e3778b1cc3fd6727

See more details on using hashes here.

File details

Details for the file verifai_llm_sdk-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for verifai_llm_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e79bf32231d933395abe844e3fd756865c57601fb840d9dc87c19bb4c57d20e7
MD5 27ee89195baa8c2b7d475ed6cdcdd04d
BLAKE2b-256 98bd7e2c1baff9e83da6a47dc80a1ebcab4fdb5f7557725ad679488be571e800

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page