Skip to main content

Python SDK for evaluating AI voice bot calls via Prodloop APIs.

Project description

Prodloop Observability SDK

Python SDK to evaluate AI voice bot calls through the Prodloop evaluation service.

Install

pip install prodloop-observability-sdk

Quickstart

from prodloop import ProdloopClient, EvaluationParameter

client = ProdloopClient(api_key="sk_live_...")

result = client.evaluate_call(
    audio_file_path="call.mp3",
    parameters=[
        EvaluationParameter.E2E_RESPONSE_TIME,
        EvaluationParameter.HALLUCINATION,
    ],
    thresholds={"e2e_response_time_max_ms": 800},
)

print(result)

Extraction Validation

To validate extraction quality, pass both extraction_schema and bot_captured_variables:

result = client.evaluate_call(
    audio_file_path="call.mp3",
    parameters=[EvaluationParameter.EXTRACTION_VARIABLES],
    extraction_schema={"customer_name": "string"},
    bot_captured_variables={"customer_name": "ram"},
)

Response includes:

  • extraction_variables
  • extraction_validation

Supported Parameters

  • e2e_response_time
  • turn_by_turn_latency
  • hallucination
  • extraction_variables
  • interruption_behavior

Authentication

Pass your Prodloop API key in the SDK constructor.
The SDK sends it as a Bearer token in the Authorization header.

Errors

  • ValidationError: invalid local inputs (file path, parameters, etc.)
  • APIError: backend/API-level failures (status_code, message)

Documentation Site

This repo includes MkDocs docs under docs/.

pip install -e ".[docs]"
mkdocs serve

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

prodloop_observability_sdk-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

prodloop_observability_sdk-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file prodloop_observability_sdk-0.1.1.tar.gz.

File metadata

File hashes

Hashes for prodloop_observability_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a3137ef20cce6cff557a0d977b22b68b6826d72feb01b417d57bc59115c79eec
MD5 293791539dc5ee73ef9fd5636b50110b
BLAKE2b-256 b183d8c45739b08b3bb3d0e66b79f6008acb3f09461c1b5ab971f46aa55707b1

See more details on using hashes here.

File details

Details for the file prodloop_observability_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prodloop_observability_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 600501bd54b447dcaa08b0f24d82e72ad21d447365942feeb7fe7f513d33d73e
MD5 0fb88a01400e9bb80f089959c226c09d
BLAKE2b-256 933b2d6241cc0ec7ef92e6565de55f7c1c85586d1aa8c4e5270aa3f093fa0277

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