lionagi 0.15.6__py3-none-any.whl → 0.15.8__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 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.6"
1
+ __version__ = "0.15.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lionagi
3
- Version: 0.15.6
3
+ Version: 0.15.8
4
4
  Summary: An Intelligence Operating System.
5
5
  Author-email: HaiyangLi <quantocean.li@gmail.com>
6
6
  License: Apache License
@@ -222,16 +222,16 @@ Requires-Python: >=3.10
222
222
  Requires-Dist: aiocache>=0.12.0
223
223
  Requires-Dist: aiohttp>=3.11.0
224
224
  Requires-Dist: anyio>=4.7.0
225
- Requires-Dist: backoff>=2.2.1
226
- Requires-Dist: jinja2>=3.1.0
225
+ Requires-Dist: backoff>=2.0.0
226
+ Requires-Dist: jinja2>=3.0.0
227
227
  Requires-Dist: json-repair>=0.40.0
228
228
  Requires-Dist: pillow>=11.0.0
229
- Requires-Dist: psutil>=7.0.0
229
+ Requires-Dist: psutil>=6.0.0
230
230
  Requires-Dist: pydantic-settings>=2.8.0
231
231
  Requires-Dist: pydapter[pandas]>=1.0.0
232
232
  Requires-Dist: python-dotenv>=1.1.0
233
- Requires-Dist: tiktoken>=0.8.0
234
- Requires-Dist: toml>=0.9.0
233
+ Requires-Dist: tiktoken>=0.9.0
234
+ Requires-Dist: toml>=0.8.0
235
235
  Provides-Extra: all
236
236
  Requires-Dist: aiosqlite>=0.21.0; extra == 'all'
237
237
  Requires-Dist: claude-code-sdk>=0.0.15; extra == 'all'
@@ -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=So0qfsz_A4mujJ9XBWY4PqtrU6DdTz1l5TygxPTJj1Y,23
9
+ lionagi/version.py,sha256=GqK-8KWAo4vp6jaQ3n26VDgMQlCxjp7WFrJNanI0RCs,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=fk01heknu7ZtBM-p9O3OnrdNeS9yzo04ZqRyQ87gZnk,4457
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.6.dist-info/METADATA,sha256=ChrjXamF6ihAwtiYPo770q7s0eDt7zg4LInJATpP8Pw,22895
239
- lionagi-0.15.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
240
- lionagi-0.15.6.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
241
- lionagi-0.15.6.dist-info/RECORD,,
238
+ lionagi-0.15.8.dist-info/METADATA,sha256=OjLBHcqd_txE1eAyDUJRHdlmhcV0fEhnyW9C5xKu0Os,22895
239
+ lionagi-0.15.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
240
+ lionagi-0.15.8.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
241
+ lionagi-0.15.8.dist-info/RECORD,,