toolchemy 0.2.194__py3-none-any.whl → 0.2.195__py3-none-any.whl
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.
- toolchemy/ai/trackers/common.py +7 -0
- toolchemy/ai/trackers/mlflow_tracker.py +6 -0
- {toolchemy-0.2.194.dist-info → toolchemy-0.2.195.dist-info}/METADATA +1 -1
- {toolchemy-0.2.194.dist-info → toolchemy-0.2.195.dist-info}/RECORD +7 -7
- {toolchemy-0.2.194.dist-info → toolchemy-0.2.195.dist-info}/WHEEL +0 -0
- {toolchemy-0.2.194.dist-info → toolchemy-0.2.195.dist-info}/entry_points.txt +0 -0
- {toolchemy-0.2.194.dist-info → toolchemy-0.2.195.dist-info}/licenses/LICENSE +0 -0
toolchemy/ai/trackers/common.py
CHANGED
|
@@ -93,6 +93,10 @@ class ITracker(ABC):
|
|
|
93
93
|
def get_data(self) -> dict:
|
|
94
94
|
pass
|
|
95
95
|
|
|
96
|
+
@abstractmethod
|
|
97
|
+
def get_traces(self, filter_name: str | None = None):
|
|
98
|
+
pass
|
|
99
|
+
|
|
96
100
|
|
|
97
101
|
class TrackerBase(ITracker, ABC):
|
|
98
102
|
def __init__(self, experiment_name: str, with_artifact_logging: bool = True, disabled: bool = False):
|
|
@@ -132,6 +136,9 @@ class TrackerBase(ITracker, ABC):
|
|
|
132
136
|
"tags": self._tags.copy(),
|
|
133
137
|
}
|
|
134
138
|
|
|
139
|
+
def get_traces(self, filter_name: str | None = None):
|
|
140
|
+
raise NotImplementedError()
|
|
141
|
+
|
|
135
142
|
def _store_param(self, name: str, value: Any):
|
|
136
143
|
if self._disabled:
|
|
137
144
|
raise RuntimeError(f"Disabled trackers cannot store params!")
|
|
@@ -195,6 +195,12 @@ class MLFlowTracker(TrackerBase):
|
|
|
195
195
|
self._store_tag(name, value)
|
|
196
196
|
self._client.set_experiment_tag(self._experiment_id, name, value)
|
|
197
197
|
|
|
198
|
+
def get_traces(self, filter_name: str | None = None):
|
|
199
|
+
filter_string = None
|
|
200
|
+
if filter_name:
|
|
201
|
+
filter_string = f"trace.name = '{filter_name}'"
|
|
202
|
+
return self._client.search_traces(experiment_ids=[self.experiment_id], run_id=self.run_id, filter_string=filter_string)
|
|
203
|
+
|
|
198
204
|
def _reset_run(self):
|
|
199
205
|
self._active_run = None
|
|
200
206
|
self._active_run_id = None
|
|
@@ -10,8 +10,8 @@ toolchemy/ai/clients/pricing.py,sha256=FuAuarQIaLl-e6KLzLbiWawWpqjY_kV4poO_qiTuH
|
|
|
10
10
|
toolchemy/ai/clients/whisper_client.py,sha256=AQcY2FiGLu0JTYw0zzjjH-7WyZ6NbQWrtxFa6iYhR4M,5252
|
|
11
11
|
toolchemy/ai/prompter.py,sha256=2Vf00d3pHUC1giG39REAn0YhuFUqxHXAQVNr5PCQQJ0,5367
|
|
12
12
|
toolchemy/ai/trackers/__init__.py,sha256=FUv2NuGSmCpDrbE7rmeG0VmQr9rJRC-Y_D0MuQa0e-M,214
|
|
13
|
-
toolchemy/ai/trackers/common.py,sha256=
|
|
14
|
-
toolchemy/ai/trackers/mlflow_tracker.py,sha256=
|
|
13
|
+
toolchemy/ai/trackers/common.py,sha256=dtSAJVyBrUZ5vuIKF9N0fargirY61DaJ1pNf6dHRGa0,6712
|
|
14
|
+
toolchemy/ai/trackers/mlflow_tracker.py,sha256=Yv_wnIDRhhco2GblafQ633zISutiPuOLPx8LhPKRbQ0,8822
|
|
15
15
|
toolchemy/ai/trackers/neptune_tracker.py,sha256=GIbkLmHAzzO8Q7FuCmGf--y2NTEfcjDF9CVqqgmWzVg,4712
|
|
16
16
|
toolchemy/db/lightdb.py,sha256=Bp7AimIuOfp2jIORFvBndk8kuKnEV12Ua1hoQXR5brY,9377
|
|
17
17
|
toolchemy/utils/__init__.py,sha256=6Mp65G6Ce_zY86AxvjyzkMjU_e8cbeij7TTHYqLwO0U,574
|
|
@@ -29,8 +29,8 @@ toolchemy/utils/utils.py,sha256=JCRNRBJ4vRWzl-GtbetJs8GM72ImVAbDkPIXrvp3IE0,5167
|
|
|
29
29
|
toolchemy/vision/__init__.py,sha256=p-sQaVd1FUQ1LMGdF51y28Z9IJvMVWaCdvrL0-jKDgc,141
|
|
30
30
|
toolchemy/vision/caption_overlay.py,sha256=fLxHMD7IPSh5XJC5pvdPf1wZvHidlOvnXt_wgW7UJjk,2825
|
|
31
31
|
toolchemy/vision/image.py,sha256=5q7MRK2SEyqWPB62duuzJqGmqBfQP1Tgphu01nP7O8s,2392
|
|
32
|
-
toolchemy-0.2.
|
|
33
|
-
toolchemy-0.2.
|
|
34
|
-
toolchemy-0.2.
|
|
35
|
-
toolchemy-0.2.
|
|
36
|
-
toolchemy-0.2.
|
|
32
|
+
toolchemy-0.2.195.dist-info/METADATA,sha256=0ehp0XRLMcnLUFrV9NaTLJS_om0qe5FPph8kepjDnh8,980
|
|
33
|
+
toolchemy-0.2.195.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
34
|
+
toolchemy-0.2.195.dist-info/entry_points.txt,sha256=6l1k81pMAx7Ap1FaX8qW8SDwsONnNLOb28QQD9t6gto,66
|
|
35
|
+
toolchemy-0.2.195.dist-info/licenses/LICENSE,sha256=JY5EPk3yvwZqQHk8JrQ-TFARdyfVTK9uUKV6CuKo_Bs,1062
|
|
36
|
+
toolchemy-0.2.195.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|