beekeeper-monitors-watsonx 1.1.3__tar.gz → 1.1.4.post1__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.
Files changed (14) hide show
  1. beekeeper_monitors_watsonx-1.1.4.post1/PKG-INFO +24 -0
  2. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/base.py +22 -19
  3. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/custom_metric.py +6 -0
  4. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/supporting_classes/enums.py +1 -1
  5. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/pyproject.toml +9 -9
  6. beekeeper_monitors_watsonx-1.1.3/PKG-INFO +0 -24
  7. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/.gitignore +0 -0
  8. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/README.md +0 -0
  9. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/__init__.py +0 -0
  10. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/supporting_classes/__init__.py +0 -0
  11. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/supporting_classes/credentials.py +0 -0
  12. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/supporting_classes/metric.py +0 -0
  13. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/utils/data_utils.py +0 -0
  14. {beekeeper_monitors_watsonx-1.1.3 → beekeeper_monitors_watsonx-1.1.4.post1}/beekeeper/monitors/watsonx/utils/instrumentation.py +0 -0
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: beekeeper-monitors-watsonx
3
+ Version: 1.1.4.post1
4
+ Summary: beekeeper monitors watsonx extension
5
+ Author-email: Leonardo Furnielis <leonardofurnielis@outlook.com>
6
+ License: Apache-2.0
7
+ Requires-Python: <3.14,>=3.11
8
+ Requires-Dist: beekeeper-core<2.0.0,>=1.0.12
9
+ Requires-Dist: certifi<2026.0.0,>=2025.11.12
10
+ Requires-Dist: ibm-aigov-facts-client<1.0.200,>=1.0.104
11
+ Requires-Dist: ibm-watson-openscale<3.2.0,>=3.1.3
12
+ Requires-Dist: ibm-watsonx-ai<2.0.0,>=1.4.11
13
+ Requires-Dist: ipython==9.8.0
14
+ Provides-Extra: dev
15
+ Requires-Dist: ruff>=0.14.9; extra == 'dev'
16
+ Description-Content-Type: text/markdown
17
+
18
+ # Beekeeper monitors extension - watsonx
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ pip install beekeeper-monitors-watsonx
24
+ ```
@@ -9,7 +9,6 @@ import certifi
9
9
  from beekeeper.core.monitors import PromptMonitor
10
10
  from beekeeper.core.monitors.types import PayloadRecord
11
11
  from beekeeper.core.prompts import PromptTemplate
12
- from beekeeper.core.prompts.utils import extract_template_vars
13
12
  from beekeeper.monitors.watsonx.supporting_classes.credentials import (
14
13
  CloudPakforDataCredentials,
15
14
  )
@@ -855,15 +854,17 @@ class WatsonxExternalPromptMonitor(PromptMonitor):
855
854
  return {"status": "success"}
856
855
 
857
856
  def __call__(self, payload: PayloadRecord) -> None:
858
- if self.prompt_template:
859
- template_vars = extract_template_vars(
860
- self.prompt_template.template, payload.input_text
861
- )
862
-
863
- if not template_vars:
864
- self.store_payload_records([payload.model_dump()])
865
- else:
866
- self.store_payload_records([{**payload.model_dump(), **template_vars}])
857
+ self.store_payload_records(
858
+ [
859
+ {
860
+ **payload.prompt_variable_values,
861
+ **payload.model_dump(
862
+ exclude_none=True,
863
+ exclude={"system_prompt", "prompt_variable_values"},
864
+ ),
865
+ }
866
+ ]
867
+ )
867
868
 
868
869
 
869
870
  class WatsonxPromptMonitor(PromptMonitor):
@@ -1611,12 +1612,14 @@ class WatsonxPromptMonitor(PromptMonitor):
1611
1612
  return {"status": "success"}
1612
1613
 
1613
1614
  def __call__(self, payload: PayloadRecord) -> None:
1614
- if self.prompt_template:
1615
- template_vars = extract_template_vars(
1616
- self.prompt_template.template, payload.input_text
1617
- )
1618
-
1619
- if not template_vars:
1620
- self.store_payload_records([payload.model_dump()])
1621
- else:
1622
- self.store_payload_records([{**payload.model_dump(), **template_vars}])
1615
+ self.store_payload_records(
1616
+ [
1617
+ {
1618
+ **payload.prompt_variable_values,
1619
+ **payload.model_dump(
1620
+ exclude_none=True,
1621
+ exclude={"system_prompt", "prompt_variable_values"},
1622
+ ),
1623
+ }
1624
+ ]
1625
+ )
@@ -453,6 +453,12 @@ class WatsonxCustomMetricsManager:
453
453
  existing_instance_id,
454
454
  )
455
455
 
456
+ self._wos_client.custom_monitor.create_custom_dataset(
457
+ data_mart_id=data_mart_id,
458
+ subscription_id=subscription_id,
459
+ custom_monitor_id=monitor_definition_id,
460
+ )
461
+
456
462
  return monitor_instance_details
457
463
 
458
464
  @deprecated(
@@ -4,7 +4,7 @@ _REGION_DATA = {
4
4
  "us-south": {
5
5
  "watsonxai": "https://us-south.ml.cloud.ibm.com",
6
6
  "openscale": "https://api.aiopenscale.cloud.ibm.com",
7
- "factsheet": None,
7
+ "factsheet": "us-south",
8
8
  },
9
9
  "eu-de": {
10
10
  "watsonxai": "https://eu-de.ml.cloud.ibm.com",
@@ -4,19 +4,19 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "beekeeper-monitors-watsonx"
7
- version = "1.1.3"
7
+ version = "1.1.4.post1"
8
8
  description = "beekeeper monitors watsonx extension"
9
9
  authors = [{ name = "Leonardo Furnielis", email = "leonardofurnielis@outlook.com" }]
10
10
  license = { text = "Apache-2.0" }
11
11
  readme = "README.md"
12
- requires-python = ">=3.10,<4.0"
12
+ requires-python = ">=3.11,<3.14"
13
13
  dependencies = [
14
- "certifi>=2025.4.26,<2026.0.0",
15
- "ipython==8.37.0",
16
- "ibm-aigov-facts-client>=1.0.96,<1.0.97",
17
- "ibm-watson-openscale>=3.0.49,<3.1.0",
18
- "ibm-watsonx-ai>=1.3.26,<2.0.0",
19
- "beekeeper-core>=1.0.6,<2.0.0",
14
+ "certifi>=2025.11.12,<2026.0.0",
15
+ "ipython==9.8.0",
16
+ "ibm-aigov-facts-client>=1.0.104,<1.0.200",
17
+ "ibm-watson-openscale>=3.1.3,<3.2.0",
18
+ "ibm-watsonx-ai>=1.4.11,<2.0.0",
19
+ "beekeeper-core>=1.0.12,<2.0.0",
20
20
  ]
21
21
 
22
22
  [tool.hatch.build.targets.sdist]
@@ -27,5 +27,5 @@ include = ["beekeeper/"]
27
27
 
28
28
  [project.optional-dependencies]
29
29
  dev = [
30
- "ruff>=0.11.13",
30
+ "ruff>=0.14.9",
31
31
  ]
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: beekeeper-monitors-watsonx
3
- Version: 1.1.3
4
- Summary: beekeeper monitors watsonx extension
5
- Author-email: Leonardo Furnielis <leonardofurnielis@outlook.com>
6
- License: Apache-2.0
7
- Requires-Python: <4.0,>=3.10
8
- Requires-Dist: beekeeper-core<2.0.0,>=1.0.6
9
- Requires-Dist: certifi<2026.0.0,>=2025.4.26
10
- Requires-Dist: ibm-aigov-facts-client<1.0.97,>=1.0.96
11
- Requires-Dist: ibm-watson-openscale<3.1.0,>=3.0.49
12
- Requires-Dist: ibm-watsonx-ai<2.0.0,>=1.3.26
13
- Requires-Dist: ipython==8.37.0
14
- Provides-Extra: dev
15
- Requires-Dist: ruff>=0.11.13; extra == 'dev'
16
- Description-Content-Type: text/markdown
17
-
18
- # Beekeeper monitors extension - watsonx
19
-
20
- ## Installation
21
-
22
- ```bash
23
- pip install beekeeper-monitors-watsonx
24
- ```