lmnr 0.3.4__tar.gz → 0.3.6__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.
- {lmnr-0.3.4 → lmnr-0.3.6}/PKG-INFO +4 -5
- {lmnr-0.3.4 → lmnr-0.3.6}/README.md +3 -4
- {lmnr-0.3.4 → lmnr-0.3.6}/pyproject.toml +2 -2
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/decorators.py +2 -2
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/utils.py +3 -1
- {lmnr-0.3.4 → lmnr-0.3.6}/LICENSE +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/__init__.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/__init__.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/client.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/collector.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/constants.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/context.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/interface.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/providers/__init__.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/providers/base.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/providers/fallback.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/providers/openai.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/providers/utils.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/tracing_types.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/sdk/types.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/semantic_conventions/__init__.py +0 -0
- {lmnr-0.3.4 → lmnr-0.3.6}/src/lmnr/semantic_conventions/gen_ai_spans.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lmnr
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.6
|
4
4
|
Summary: Python SDK for Laminar AI
|
5
5
|
License: Apache-2.0
|
6
6
|
Author: lmnr.ai
|
@@ -41,13 +41,12 @@ You can send events in two ways:
|
|
41
41
|
- `.evaluate_event(name, data)` – for an event that our agent checks for and assigns a value from possible values.
|
42
42
|
|
43
43
|
There are 3 types of events:
|
44
|
-
-
|
45
|
-
-
|
46
|
-
-
|
44
|
+
- Number - Numeric value.
|
45
|
+
- String - Arbitrary string.
|
46
|
+
- Boolean - Convenient to classify if something has took place or not.
|
47
47
|
|
48
48
|
Important notes:
|
49
49
|
- If event name does not match anything pre-defined in the UI, the event won't be saved.
|
50
|
-
- If event value (when sent with `.event()`) is not in the domain, the event won't be saved.
|
51
50
|
|
52
51
|
## Instrumentation
|
53
52
|
|
@@ -21,13 +21,12 @@ You can send events in two ways:
|
|
21
21
|
- `.evaluate_event(name, data)` – for an event that our agent checks for and assigns a value from possible values.
|
22
22
|
|
23
23
|
There are 3 types of events:
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
24
|
+
- Number - Numeric value.
|
25
|
+
- String - Arbitrary string.
|
26
|
+
- Boolean - Convenient to classify if something has took place or not.
|
27
27
|
|
28
28
|
Important notes:
|
29
29
|
- If event name does not match anything pre-defined in the UI, the event won't be saved.
|
30
|
-
- If event value (when sent with `.event()`) is not in the domain, the event won't be saved.
|
31
30
|
|
32
31
|
## Instrumentation
|
33
32
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "lmnr"
|
3
|
-
version = "0.3.
|
3
|
+
version = "0.3.6"
|
4
4
|
description = "Python SDK for Laminar AI"
|
5
5
|
authors = [
|
6
6
|
{ name = "lmnr.ai", email = "founders@lmnr.ai" }
|
@@ -11,7 +11,7 @@ license = "Apache-2.0"
|
|
11
11
|
|
12
12
|
[tool.poetry]
|
13
13
|
name = "lmnr"
|
14
|
-
version = "0.3.
|
14
|
+
version = "0.3.6"
|
15
15
|
description = "Python SDK for Laminar AI"
|
16
16
|
authors = ["lmnr.ai"]
|
17
17
|
readme = "README.md"
|
@@ -172,8 +172,8 @@ class LaminarDecorator:
|
|
172
172
|
self,
|
173
173
|
pipeline: str,
|
174
174
|
inputs: dict[str, NodeInput],
|
175
|
-
env: dict[str, str] =
|
176
|
-
metadata: dict[str, str] =
|
175
|
+
env: dict[str, str] = {},
|
176
|
+
metadata: dict[str, str] = {},
|
177
177
|
) -> PipelineRunResponse:
|
178
178
|
"""Run the laminar pipeline with the given inputs. Pipeline must be defined in the Laminar UI and have a target version.
|
179
179
|
|
@@ -90,7 +90,9 @@ def get_input_from_func_args(
|
|
90
90
|
for i, k in enumerate(inspect.signature(func).parameters.keys()):
|
91
91
|
if is_method and k in ["self", "cls"]:
|
92
92
|
continue
|
93
|
-
|
93
|
+
# If param has default value, then it's not present in func args
|
94
|
+
if len(func_args) > i:
|
95
|
+
res[k] = func_args[i]
|
94
96
|
return res
|
95
97
|
|
96
98
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|