lionagi 0.15.6__py3-none-any.whl → 0.15.7__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.
- lionagi/ln/_models.py +12 -4
- lionagi/version.py +1 -1
- {lionagi-0.15.6.dist-info → lionagi-0.15.7.dist-info}/METADATA +1 -1
- {lionagi-0.15.6.dist-info → lionagi-0.15.7.dist-info}/RECORD +6 -6
- {lionagi-0.15.6.dist-info → lionagi-0.15.7.dist-info}/WHEEL +0 -0
- {lionagi-0.15.6.dist-info → lionagi-0.15.7.dist-info}/licenses/LICENSE +0 -0
lionagi/ln/_models.py
CHANGED
@@ -26,6 +26,18 @@ class Params:
|
|
26
26
|
)
|
27
27
|
"""Class variable cache to store allowed keys for parameters."""
|
28
28
|
|
29
|
+
def __init__(self, **kwargs: Any):
|
30
|
+
"""Initialize the Params object with keyword arguments."""
|
31
|
+
# Set all attributes from kwargs, allowing for sentinel values
|
32
|
+
for k, v in kwargs.items():
|
33
|
+
if k in self.allowed():
|
34
|
+
object.__setattr__(self, k, v)
|
35
|
+
else:
|
36
|
+
raise ValueError(f"Invalid parameter: {k}")
|
37
|
+
|
38
|
+
# Validate after setting all attributes
|
39
|
+
self._validate()
|
40
|
+
|
29
41
|
@classmethod
|
30
42
|
def _is_sentinel(cls, value: Any) -> bool:
|
31
43
|
"""Check if a value is a sentinel (Undefined or Unset)."""
|
@@ -33,10 +45,6 @@ class Params:
|
|
33
45
|
return True
|
34
46
|
return is_sentinel(value)
|
35
47
|
|
36
|
-
def __post_init__(self):
|
37
|
-
"""Post-initialization to ensure all fields are set."""
|
38
|
-
self._validate()
|
39
|
-
|
40
48
|
@classmethod
|
41
49
|
def allowed(cls) -> set[str]:
|
42
50
|
"""Return the keys of the parameters."""
|
lionagi/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.15.
|
1
|
+
__version__ = "0.15.7"
|
@@ -6,7 +6,7 @@ lionagi/config.py,sha256=W3JOC_TFad8hFkpTG8yv0-GNupa7x3wX4NAUfWpB59U,3763
|
|
6
6
|
lionagi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
lionagi/settings.py,sha256=HDuKCEJCpc4HudKodBnhoQUGuTGhRHdlIFhbtf3VBtY,1633
|
8
8
|
lionagi/utils.py,sha256=LxsMXyXbj5DC64y7QTmg8XzjE6hogxaed5FHw2PyK_M,39811
|
9
|
-
lionagi/version.py,sha256=
|
9
|
+
lionagi/version.py,sha256=MAPfkctPEvU6tygJmfGoOx7ZrEBKkfDrKqpCja4D-yM,23
|
10
10
|
lionagi/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
lionagi/adapters/_utils.py,sha256=n4DS27CZfC-0O_UFaYtlUdjiMx9IeYsGpP7MVaFO5ZA,885
|
12
12
|
lionagi/adapters/async_postgres_adapter.py,sha256=QKzEnzGR5_HNxxmnHhyuPELHv6yvQ-p7cfaX1bWRAQU,12722
|
@@ -89,7 +89,7 @@ lionagi/ln/__init__.py,sha256=N2wBLrZWUTfLAXFU2b0VbbByAmbW5Xwl42eIu0RaYWg,906
|
|
89
89
|
lionagi/ln/_async_call.py,sha256=N8vpXPDyonVqfszVEgOTQS8M1MohYJH9vcf1xwuo4JU,9367
|
90
90
|
lionagi/ln/_hash.py,sha256=g20yJfuVhAsfsBOWlkO889DHte6cbUCl6vV5QMT8nUo,3499
|
91
91
|
lionagi/ln/_list_call.py,sha256=oDCyTzz7F7KVAMjekKftJp7qgIZ9Yo8BUNMHasKoJhU,3935
|
92
|
-
lionagi/ln/_models.py,sha256=
|
92
|
+
lionagi/ln/_models.py,sha256=GU34C3HB9iMp-3DsraQnaYRMsUg9NrQi6Pf3RGWqN7M,4787
|
93
93
|
lionagi/ln/_to_list.py,sha256=DKjZAah6pm6frHls773yTMVK1I3OY7qxwLemOjRPr5A,5600
|
94
94
|
lionagi/ln/_types.py,sha256=usVaL2tGnYVQ2W12eUhJYiXY-m55b_5e0tUOFcuDtkc,3607
|
95
95
|
lionagi/ln/concurrency/__init__.py,sha256=Sv1LEvwN1hRESLtuYM5UltyJqx6DRsHvGmr8aof16cA,1286
|
@@ -235,7 +235,7 @@ lionagi/tools/types.py,sha256=XtJLY0m-Yi_ZLWhm0KycayvqMCZd--HxfQ0x9vFUYDE,230
|
|
235
235
|
lionagi/tools/file/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
236
236
|
lionagi/tools/file/reader.py,sha256=jnSHVSQ66AHZXQrgRuGmlbwKT5JHYoo-1zv1hKgTEfc,9544
|
237
237
|
lionagi/tools/memory/tools.py,sha256=earYkKxSOz_iXkqVZYTEDfE3dwZYIWPXZrqQ1DYGz4I,15941
|
238
|
-
lionagi-0.15.
|
239
|
-
lionagi-0.15.
|
240
|
-
lionagi-0.15.
|
241
|
-
lionagi-0.15.
|
238
|
+
lionagi-0.15.7.dist-info/METADATA,sha256=gfYkQElSVIU3smdlJiBJjp1pRby8Gc1LTORtxxacg9M,22895
|
239
|
+
lionagi-0.15.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
240
|
+
lionagi-0.15.7.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
|
241
|
+
lionagi-0.15.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|