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

Live documentation: https://observability-sdk-docs.pages.dev/

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.2.tar.gz (4.0 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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for prodloop_observability_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 06d474679ed5a5654c170f3b686a4ea2da2896cd2f3149118818bb1774bfcfcd
MD5 6c6310111de85dde01bc589202a544ed
BLAKE2b-256 78e876c07b8a8a6ba8d3a177a245760d6b8e6d8d0ef9689aca3f3d28b4f79d45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prodloop_observability_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3313b8573ea2e0ae55ea948b84e52f05ed64ecd442ed9b6645082595ad790809
MD5 59f4632e7c605e64e7121b5d123ae387
BLAKE2b-256 0a37cb91b0985775a8402a195a26bac4ae4229125f8b4744de9f8e9967e5fee2

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