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},
input_prompt="Bot instructions used during this call...",
)
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_variablesextraction_validation
Hallucination Input Requirement
When requesting hallucination, pass the bot's original call prompt as input_prompt:
result = client.evaluate_call(
audio_file_path="call.mp3",
parameters=[EvaluationParameter.HALLUCINATION],
input_prompt="You are a polite admissions bot. Never invent course details.",
)
Supported Parameters
e2e_response_timeturn_by_turn_latencyhallucinationextraction_variablesinterruption_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 prodloop_observability_sdk-0.1.4.tar.gz.
File metadata
- Download URL: prodloop_observability_sdk-0.1.4.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
635e1a69346ec93666ce2cc8b92ef8170a03567680d8bc5063f6ad20950338b2
|
|
| MD5 |
82809b2a80c24168649c11fec68453c1
|
|
| BLAKE2b-256 |
21065ebe1c977d3e2496b2ada570ca81c09603474d8bc459b469fcc1df2ae0cc
|
File details
Details for the file prodloop_observability_sdk-0.1.4-py3-none-any.whl.
File metadata
- Download URL: prodloop_observability_sdk-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1ebdccfc510c555a7f6a1f43bf8df508396ece0f42f99fdbe6409bbe8077837
|
|
| MD5 |
5a4f61e0a4243323d902d12bbd94e134
|
|
| BLAKE2b-256 |
f9db5986ef78e3cb5fdc5d39541822aa6884c954b3a0d2268c9b4ed889debe38
|