lionagi 0.7.3__py3-none-any.whl → 0.7.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- lionagi/__init__.py +6 -6
- lionagi/_types.py +2 -0
- lionagi/session/branch.py +18 -0
- lionagi/version.py +1 -1
- {lionagi-0.7.3.dist-info → lionagi-0.7.4.dist-info}/METADATA +2 -2
- {lionagi-0.7.3.dist-info → lionagi-0.7.4.dist-info}/RECORD +8 -7
- {lionagi-0.7.3.dist-info → lionagi-0.7.4.dist-info}/WHEEL +0 -0
- {lionagi-0.7.3.dist-info → lionagi-0.7.4.dist-info}/licenses/LICENSE +0 -0
lionagi/__init__.py
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
#
|
3
3
|
# SPDX-License-Identifier: Apache-2.0
|
4
4
|
|
5
|
-
from
|
6
|
-
from
|
7
|
-
from
|
8
|
-
from
|
9
|
-
from
|
10
|
-
from
|
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
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.
|
1
|
+
__version__ = "0.7.4"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: lionagi
|
3
|
-
Version: 0.7.
|
4
|
-
Summary: An
|
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=
|
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=
|
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=
|
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.
|
186
|
-
lionagi-0.7.
|
187
|
-
lionagi-0.7.
|
188
|
-
lionagi-0.7.
|
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,,
|
File without changes
|
File without changes
|