lionagi 0.7.3__py3-none-any.whl → 0.7.4__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/__init__.py CHANGED
@@ -2,12 +2,12 @@
2
2
  #
3
3
  # SPDX-License-Identifier: Apache-2.0
4
4
 
5
- from lionagi.operations import types as op
6
- from lionagi.operatives import types as ops_types
7
- from lionagi.protocols import types as types
8
- from lionagi.service.imodel import iModel
9
- from lionagi.session.session import Branch, Session
10
- from lionagi.version import __version__
5
+ from . import _types as types
6
+ from .operations import types as op
7
+ from .operatives import types as ops_types # deprecated
8
+ from .service.imodel import iModel
9
+ from .session.session import Branch, Session
10
+ from .version import __version__
11
11
 
12
12
  LiteiModel = iModel
13
13
 
lionagi/_types.py ADDED
@@ -0,0 +1,2 @@
1
+ from .operatives.types import *
2
+ from .protocols.types import *
lionagi/session/branch.py CHANGED
@@ -611,6 +611,24 @@ class Branch(Element, Communicatable, Relational):
611
611
  # Remove placeholders (UNDEFINED) so we don't incorrectly assign them
612
612
  return cls(**{k: v for k, v in params.items() if v is not UNDEFINED})
613
613
 
614
+ def dump_logs(self, clear: bool = True, persist_path=None):
615
+ """
616
+ Dumps the log to a file or clears it.
617
+
618
+ Args:
619
+ clear (bool, optional):
620
+ If `True`, clears the log after dumping.
621
+ persist_path (str, optional):
622
+ The file path to save the log to.
623
+ """
624
+ self._log_manager.dump(clear=clear, persist_path=persist_path)
625
+
626
+ async def adump_logs(self, clear: bool = True, persist_path=None):
627
+ """
628
+ Asynchronously dumps the log to a file or clears it.
629
+ """
630
+ await self._log_manager.adump(clear=clear, persist_path=persist_path)
631
+
614
632
  # -------------------------------------------------------------------------
615
633
  # Asynchronous Operations (chat, parse, operate, etc.)
616
634
  # -------------------------------------------------------------------------
lionagi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.7.3"
1
+ __version__ = "0.7.4"
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lionagi
3
- Version: 0.7.3
4
- Summary: An AGentic Intelligence Operating System.
3
+ Version: 0.7.4
4
+ Summary: An Intelligence Operating System.
5
5
  Author-email: HaiyangLi <quantocean.li@gmail.com>
6
6
  License: Apache License
7
7
  Version 2.0, January 2004
@@ -1,9 +1,10 @@
1
- lionagi/__init__.py,sha256=sBS47lQGuXNAdfSoVLW8szKbCfDWrfAceMMUVYNK3IU,541
1
+ lionagi/__init__.py,sha256=Z_cWmXAAYFrUDQsB9xJR8SqCrc7fKShllJFQd1N11BI,505
2
2
  lionagi/_class_registry.py,sha256=dutMsw-FQNqVV5gGH-NEIv90uBkSr8fERJ_x3swbb-s,3112
3
3
  lionagi/_errors.py,sha256=wNKdnVQvE_CHEstK7htrrj334RA_vbGcIds-3pUiRkc,455
4
+ lionagi/_types.py,sha256=9g7iytvSj3UjZxD-jL06_fxuNfgZyWT3Qnp0XYp1wQU,63
4
5
  lionagi/settings.py,sha256=k9zRJXv57TveyfHO3Vr9VGiKrSwlRUUVKt5zf6v9RU4,1627
5
6
  lionagi/utils.py,sha256=X12H-O8Lx9tUOKGtjpoxHjRsKYHRqty0qD9i2W12kpI,73121
6
- lionagi/version.py,sha256=G0rwkDLSytonr7idr8ma7KaTUnRCn3-Ripum70RSeh0,22
7
+ lionagi/version.py,sha256=A6fZ_oURo3l_Fa_K29LgV21A4Onqu3NquwGYzL05E1Y,22
7
8
  lionagi/libs/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
8
9
  lionagi/libs/parse.py,sha256=tpEbmIRGuHhLCJlUlm6fjmqm_Z6XJLAXGNFHNuk422I,1011
9
10
  lionagi/libs/file/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
@@ -180,9 +181,9 @@ lionagi/service/providers/openrouter_/chat_completions.py,sha256=MRf4ZbMCgzNIL4g
180
181
  lionagi/service/providers/perplexity_/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
181
182
  lionagi/service/providers/perplexity_/chat_completions.py,sha256=SsDbrtXwQsR4Yu2VMU43KfeS86QWI8UTNhDth5lNWNs,1055
182
183
  lionagi/session/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
183
- lionagi/session/branch.py,sha256=ogCp8ybyrm1bspmtovcvrzUmBh8Nu_Q5RBBu2uYAl6U,58678
184
+ lionagi/session/branch.py,sha256=2KMMl-YVVfbgbz1qtyXpw3SrRZ5yAfoqm44s-gnbjyU,59319
184
185
  lionagi/session/session.py,sha256=po6C7PnM0iu_ISHUo4PBzzQ61HFOgcsAUfPoO--eLak,8987
185
- lionagi-0.7.3.dist-info/METADATA,sha256=DRvNYxsLZQBHfGy4niyl48KxbI7eB7z2YbhabbtJRD0,22776
186
- lionagi-0.7.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
187
- lionagi-0.7.3.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
188
- lionagi-0.7.3.dist-info/RECORD,,
186
+ lionagi-0.7.4.dist-info/METADATA,sha256=dyNJj1KRT_rkMZgwaraOEfPCPd9GdxlLc5DJMaxzJpY,22768
187
+ lionagi-0.7.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
188
+ lionagi-0.7.4.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
189
+ lionagi-0.7.4.dist-info/RECORD,,