prodloop-observability-sdk 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prodloop-observability-sdk
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python SDK for evaluating AI voice bot calls via Prodloop APIs.
5
5
  Project-URL: Homepage, https://prodloop.com
6
- Project-URL: Documentation, https://prodloop.com/docs
6
+ Project-URL: Documentation, https://observability-sdk-docs.pages.dev/
7
7
  Project-URL: Repository, https://github.com/prodloop/prodloop-observability-sdk
8
8
  Requires-Python: >=3.9
9
9
  Description-Content-Type: text/markdown
@@ -80,9 +80,4 @@ The SDK sends it as a `Bearer` token in the `Authorization` header.
80
80
 
81
81
  ## Documentation Site
82
82
 
83
- This repo includes MkDocs docs under `docs/`.
84
-
85
- ```bash
86
- pip install -e ".[docs]"
87
- mkdocs serve
88
- ```
83
+ Live documentation: https://observability-sdk-docs.pages.dev/
@@ -1,73 +1,68 @@
1
- # Prodloop Observability SDK
2
-
3
- Python SDK to evaluate AI voice bot calls through the Prodloop evaluation service.
4
-
5
- ## Install
6
-
7
- ```bash
8
- pip install prodloop-observability-sdk
9
- ```
10
-
11
- ## Quickstart
12
-
13
- ```python
14
- from prodloop import ProdloopClient, EvaluationParameter
15
-
16
- client = ProdloopClient(api_key="sk_live_...")
17
-
18
- result = client.evaluate_call(
19
- audio_file_path="call.mp3",
20
- parameters=[
21
- EvaluationParameter.E2E_RESPONSE_TIME,
22
- EvaluationParameter.HALLUCINATION,
23
- ],
24
- thresholds={"e2e_response_time_max_ms": 800},
25
- )
26
-
27
- print(result)
28
- ```
29
-
30
- ## Extraction Validation
31
-
32
- To validate extraction quality, pass both `extraction_schema` and `bot_captured_variables`:
33
-
34
- ```python
35
- result = client.evaluate_call(
36
- audio_file_path="call.mp3",
37
- parameters=[EvaluationParameter.EXTRACTION_VARIABLES],
38
- extraction_schema={"customer_name": "string"},
39
- bot_captured_variables={"customer_name": "ram"},
40
- )
41
- ```
42
-
43
- Response includes:
44
-
45
- - `extraction_variables`
46
- - `extraction_validation`
47
-
48
- ## Supported Parameters
49
-
50
- - `e2e_response_time`
51
- - `turn_by_turn_latency`
52
- - `hallucination`
53
- - `extraction_variables`
54
- - `interruption_behavior`
55
-
56
- ## Authentication
57
-
58
- Pass your Prodloop API key in the SDK constructor.
59
- The SDK sends it as a `Bearer` token in the `Authorization` header.
60
-
61
- ## Errors
62
-
63
- - `ValidationError`: invalid local inputs (file path, parameters, etc.)
64
- - `APIError`: backend/API-level failures (`status_code`, `message`)
65
-
66
- ## Documentation Site
67
-
68
- This repo includes MkDocs docs under `docs/`.
69
-
70
- ```bash
71
- pip install -e ".[docs]"
72
- mkdocs serve
73
- ```
1
+ # Prodloop Observability SDK
2
+
3
+ Python SDK to evaluate AI voice bot calls through the Prodloop evaluation service.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install prodloop-observability-sdk
9
+ ```
10
+
11
+ ## Quickstart
12
+
13
+ ```python
14
+ from prodloop import ProdloopClient, EvaluationParameter
15
+
16
+ client = ProdloopClient(api_key="sk_live_...")
17
+
18
+ result = client.evaluate_call(
19
+ audio_file_path="call.mp3",
20
+ parameters=[
21
+ EvaluationParameter.E2E_RESPONSE_TIME,
22
+ EvaluationParameter.HALLUCINATION,
23
+ ],
24
+ thresholds={"e2e_response_time_max_ms": 800},
25
+ )
26
+
27
+ print(result)
28
+ ```
29
+
30
+ ## Extraction Validation
31
+
32
+ To validate extraction quality, pass both `extraction_schema` and `bot_captured_variables`:
33
+
34
+ ```python
35
+ result = client.evaluate_call(
36
+ audio_file_path="call.mp3",
37
+ parameters=[EvaluationParameter.EXTRACTION_VARIABLES],
38
+ extraction_schema={"customer_name": "string"},
39
+ bot_captured_variables={"customer_name": "ram"},
40
+ )
41
+ ```
42
+
43
+ Response includes:
44
+
45
+ - `extraction_variables`
46
+ - `extraction_validation`
47
+
48
+ ## Supported Parameters
49
+
50
+ - `e2e_response_time`
51
+ - `turn_by_turn_latency`
52
+ - `hallucination`
53
+ - `extraction_variables`
54
+ - `interruption_behavior`
55
+
56
+ ## Authentication
57
+
58
+ Pass your Prodloop API key in the SDK constructor.
59
+ The SDK sends it as a `Bearer` token in the `Authorization` header.
60
+
61
+ ## Errors
62
+
63
+ - `ValidationError`: invalid local inputs (file path, parameters, etc.)
64
+ - `APIError`: backend/API-level failures (`status_code`, `message`)
65
+
66
+ ## Documentation Site
67
+
68
+ Live documentation: https://observability-sdk-docs.pages.dev/
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prodloop-observability-sdk
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python SDK for evaluating AI voice bot calls via Prodloop APIs.
5
5
  Project-URL: Homepage, https://prodloop.com
6
- Project-URL: Documentation, https://prodloop.com/docs
6
+ Project-URL: Documentation, https://observability-sdk-docs.pages.dev/
7
7
  Project-URL: Repository, https://github.com/prodloop/prodloop-observability-sdk
8
8
  Requires-Python: >=3.9
9
9
  Description-Content-Type: text/markdown
@@ -80,9 +80,4 @@ The SDK sends it as a `Bearer` token in the `Authorization` header.
80
80
 
81
81
  ## Documentation Site
82
82
 
83
- This repo includes MkDocs docs under `docs/`.
84
-
85
- ```bash
86
- pip install -e ".[docs]"
87
- mkdocs serve
88
- ```
83
+ Live documentation: https://observability-sdk-docs.pages.dev/
@@ -1,28 +1,28 @@
1
- [build-system]
2
- requires = ["setuptools>=68", "wheel"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "prodloop-observability-sdk"
7
- version = "0.1.1"
8
- description = "Python SDK for evaluating AI voice bot calls via Prodloop APIs."
9
- readme = "README.md"
10
- requires-python = ">=3.9"
11
- dependencies = [
12
- "requests>=2.31.0",
13
- ]
14
-
15
- [project.optional-dependencies]
16
- docs = [
17
- "mkdocs>=1.6.0",
18
- "mkdocs-material>=9.5.0",
19
- "mkdocstrings[python]>=0.25.0",
20
- ]
21
-
22
- [project.urls]
23
- Homepage = "https://prodloop.com"
24
- Documentation = "https://prodloop.com/docs"
25
- Repository = "https://github.com/prodloop/prodloop-observability-sdk"
26
-
27
- [tool.setuptools.packages.find]
28
- include = ["prodloop*"]
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "prodloop-observability-sdk"
7
+ version = "0.1.2"
8
+ description = "Python SDK for evaluating AI voice bot calls via Prodloop APIs."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ dependencies = [
12
+ "requests>=2.31.0",
13
+ ]
14
+
15
+ [project.optional-dependencies]
16
+ docs = [
17
+ "mkdocs>=1.6.0",
18
+ "mkdocs-material>=9.5.0",
19
+ "mkdocstrings[python]>=0.25.0",
20
+ ]
21
+
22
+ [project.urls]
23
+ Homepage = "https://prodloop.com"
24
+ Documentation = "https://observability-sdk-docs.pages.dev/"
25
+ Repository = "https://github.com/prodloop/prodloop-observability-sdk"
26
+
27
+ [tool.setuptools.packages.find]
28
+ include = ["prodloop*"]