lionagi 0.16.3__py3-none-any.whl → 0.17.1__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 +24 -2
- lionagi/_types.py +47 -3
- lionagi/adapters/_utils.py +10 -9
- lionagi/adapters/async_postgres_adapter.py +83 -79
- lionagi/ln/__init__.py +0 -4
- lionagi/ln/_json_dump.py +0 -6
- lionagi/operations/__init__.py +0 -6
- lionagi/operations/_visualize_graph.py +285 -0
- lionagi/operations/brainstorm/brainstorm.py +14 -12
- lionagi/operations/builder.py +23 -302
- lionagi/operations/flow.py +105 -11
- lionagi/operations/node.py +14 -3
- lionagi/operations/operate/operate.py +5 -11
- lionagi/operations/parse/parse.py +1 -2
- lionagi/operations/types.py +0 -2
- lionagi/operations/utils.py +11 -5
- lionagi/protocols/generic/pile.py +2 -6
- lionagi/protocols/graph/graph.py +23 -6
- lionagi/protocols/graph/node.py +27 -10
- lionagi/protocols/messages/message.py +0 -1
- lionagi/protocols/types.py +0 -15
- lionagi/service/__init__.py +19 -1
- lionagi/service/connections/api_calling.py +13 -4
- lionagi/service/connections/endpoint.py +11 -5
- lionagi/service/types.py +19 -1
- lionagi/session/branch.py +24 -18
- lionagi/session/session.py +44 -18
- lionagi/version.py +1 -1
- {lionagi-0.16.3.dist-info → lionagi-0.17.1.dist-info}/METADATA +5 -2
- {lionagi-0.16.3.dist-info → lionagi-0.17.1.dist-info}/RECORD +32 -32
- lionagi/protocols/graph/_utils.py +0 -22
- {lionagi-0.16.3.dist-info → lionagi-0.17.1.dist-info}/WHEEL +0 -0
- {lionagi-0.16.3.dist-info → lionagi-0.17.1.dist-info}/licenses/LICENSE +0 -0
lionagi/session/session.py
CHANGED
@@ -6,7 +6,6 @@ import contextlib
|
|
6
6
|
from collections.abc import Callable
|
7
7
|
from typing import Any
|
8
8
|
|
9
|
-
import pandas as pd
|
10
9
|
from pydantic import (
|
11
10
|
Field,
|
12
11
|
JsonValue,
|
@@ -19,7 +18,6 @@ from typing_extensions import Self
|
|
19
18
|
from lionagi.protocols.types import (
|
20
19
|
ID,
|
21
20
|
MESSAGE_FIELDS,
|
22
|
-
ActionManager,
|
23
21
|
Communicatable,
|
24
22
|
Exchange,
|
25
23
|
Graph,
|
@@ -33,13 +31,12 @@ from lionagi.protocols.types import (
|
|
33
31
|
RoledMessage,
|
34
32
|
SenderRecipient,
|
35
33
|
System,
|
36
|
-
Tool,
|
37
34
|
)
|
38
35
|
|
39
36
|
from .._errors import ItemNotFoundError
|
40
37
|
from ..ln import lcall
|
41
38
|
from ..service.imodel import iModel
|
42
|
-
from .branch import Branch, OperationManager
|
39
|
+
from .branch import ActionManager, Branch, OperationManager, Tool
|
43
40
|
|
44
41
|
|
45
42
|
class Session(Node, Communicatable, Relational):
|
@@ -257,7 +254,7 @@ class Session(Node, Communicatable, Relational):
|
|
257
254
|
branches: ID.RefSeq = None,
|
258
255
|
exclude_clone: bool = False,
|
259
256
|
exlcude_load: bool = False,
|
260
|
-
)
|
257
|
+
):
|
261
258
|
out = self.concat_messages(
|
262
259
|
branches=branches,
|
263
260
|
exclude_clone=exclude_clone,
|
@@ -298,19 +295,6 @@ class Session(Node, Communicatable, Relational):
|
|
298
295
|
collections=messages, item_type={RoledMessage}, strict_type=False
|
299
296
|
)
|
300
297
|
|
301
|
-
def to_df(
|
302
|
-
self,
|
303
|
-
branches: ID.RefSeq = None,
|
304
|
-
exclude_clone: bool = False,
|
305
|
-
exclude_load: bool = False,
|
306
|
-
) -> pd.DataFrame:
|
307
|
-
out = self.concat_messages(
|
308
|
-
branches=branches,
|
309
|
-
exclude_clone=exclude_clone,
|
310
|
-
exclude_load=exclude_load,
|
311
|
-
)
|
312
|
-
return out.to_df(columns=MESSAGE_FIELDS)
|
313
|
-
|
314
298
|
def send(self, to_: ID.RefSeq = None):
|
315
299
|
"""
|
316
300
|
Send mail to specified branches.
|
@@ -432,6 +416,48 @@ class Session(Node, Communicatable, Relational):
|
|
432
416
|
alcall_params=alcall_params,
|
433
417
|
)
|
434
418
|
|
419
|
+
def cleanup_memory(
|
420
|
+
self, clear_branches: bool = True, clear_mail: bool = True
|
421
|
+
):
|
422
|
+
"""
|
423
|
+
Clean up session memory to prevent memory accumulation.
|
424
|
+
|
425
|
+
Args:
|
426
|
+
clear_branches: Whether to clear branch logs and memory
|
427
|
+
clear_mail: Whether to clear mail transfer history
|
428
|
+
"""
|
429
|
+
if clear_branches and self.branches:
|
430
|
+
for branch in self.branches:
|
431
|
+
if hasattr(branch, "dump_logs"):
|
432
|
+
branch.dump_logs(clear=True)
|
433
|
+
|
434
|
+
if clear_mail and self.mail_transfer:
|
435
|
+
# Clear mail transfer history if available
|
436
|
+
if hasattr(self.mail_transfer, "clear"):
|
437
|
+
self.mail_transfer.clear()
|
438
|
+
|
439
|
+
async def acleanup_memory(
|
440
|
+
self, clear_branches: bool = True, clear_mail: bool = True
|
441
|
+
):
|
442
|
+
"""
|
443
|
+
Asynchronously clean up session memory to prevent memory accumulation.
|
444
|
+
|
445
|
+
Args:
|
446
|
+
clear_branches: Whether to clear branch logs and memory
|
447
|
+
clear_mail: Whether to clear mail transfer history
|
448
|
+
"""
|
449
|
+
if clear_branches and self.branches:
|
450
|
+
for branch in self.branches:
|
451
|
+
if hasattr(branch, "adump_logs"):
|
452
|
+
await branch.adump_logs(clear=True)
|
453
|
+
|
454
|
+
if clear_mail and self.mail_transfer:
|
455
|
+
# Clear mail transfer history if available
|
456
|
+
if hasattr(self.mail_transfer, "aclear"):
|
457
|
+
await self.mail_transfer.aclear()
|
458
|
+
elif hasattr(self.mail_transfer, "clear"):
|
459
|
+
self.mail_transfer.clear()
|
460
|
+
|
435
461
|
|
436
462
|
__all__ = ["Session"]
|
437
463
|
# File: autoos/session/session.py
|
lionagi/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.
|
1
|
+
__version__ = "0.17.1"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: lionagi
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.17.1
|
4
4
|
Summary: An Intelligence Operating System.
|
5
5
|
Author-email: HaiyangLi <quantocean.li@gmail.com>
|
6
6
|
License: Apache License
|
@@ -225,10 +225,13 @@ Requires-Dist: anyio>=4.7.0
|
|
225
225
|
Requires-Dist: backoff>=2.0.0
|
226
226
|
Requires-Dist: jinja2>=3.0.0
|
227
227
|
Requires-Dist: json-repair>=0.40.0
|
228
|
+
Requires-Dist: matplotlib>=3.10.3
|
228
229
|
Requires-Dist: msgspec>=0.18.0
|
230
|
+
Requires-Dist: pandas>=2.3.1
|
231
|
+
Requires-Dist: psutil>=7.0.0
|
229
232
|
Requires-Dist: pydantic-settings>=2.8.0
|
230
233
|
Requires-Dist: pydantic>=2.8.0
|
231
|
-
Requires-Dist: pydapter
|
234
|
+
Requires-Dist: pydapter>=1.1.1
|
232
235
|
Requires-Dist: python-dotenv>=1.1.0
|
233
236
|
Requires-Dist: tiktoken>=0.9.0
|
234
237
|
Provides-Extra: all
|
@@ -1,15 +1,15 @@
|
|
1
|
-
lionagi/__init__.py,sha256=
|
1
|
+
lionagi/__init__.py,sha256=KDyBBo2Ahdk44akAbUG7ZZATdZhVvl8WHEr6HXMC6vA,1196
|
2
2
|
lionagi/_class_registry.py,sha256=pfUO1DjFZIqr3OwnNMkFqL_fiEBrrf8-swkGmP_KDLE,3112
|
3
3
|
lionagi/_errors.py,sha256=ia_VWhPSyr5FIJLSdPpl04SrNOLI2skN40VC8ePmzeQ,3748
|
4
|
-
lionagi/_types.py,sha256=
|
4
|
+
lionagi/_types.py,sha256=COWRrmstmABGKKn-h_cKiAREGsMp_Ik49OdR4lSS3P8,1263
|
5
5
|
lionagi/config.py,sha256=D13nnjpgJKz_LlQrzaKKVefm4hqesz_dP9ROjWmGuLE,3811
|
6
6
|
lionagi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
lionagi/settings.py,sha256=HDuKCEJCpc4HudKodBnhoQUGuTGhRHdlIFhbtf3VBtY,1633
|
8
8
|
lionagi/utils.py,sha256=pfAibR84sx-aPxGNPrdlHqUAf2OXoCBGRCMseMrzhi4,18046
|
9
|
-
lionagi/version.py,sha256=
|
9
|
+
lionagi/version.py,sha256=mrwBkyZNcMowMG4-KslRvuWjlT2xdlnWDSWDZEK270s,23
|
10
10
|
lionagi/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
lionagi/adapters/_utils.py,sha256=
|
12
|
-
lionagi/adapters/async_postgres_adapter.py,sha256=
|
11
|
+
lionagi/adapters/_utils.py,sha256=sniMG1LDDkwJNzUF2K32jv7rA6Y1QcohgyNclYsptzI,453
|
12
|
+
lionagi/adapters/async_postgres_adapter.py,sha256=2XlxYNPow78dFHIQs8W1oJ2zkVD5Udn3aynMBF9Nf3k,3498
|
13
13
|
lionagi/fields/__init__.py,sha256=yrn9NDAM6_v73kK7aJeb-Pvqigeu8WASaV-My-6CDsc,939
|
14
14
|
lionagi/fields/action.py,sha256=OziEpbaUeEVo34KdtbzDxXJBgkf3QLxlcKIQAfHe4O0,5791
|
15
15
|
lionagi/fields/base.py,sha256=mvgqxLonCROszMjnG8QWt00l-MvIr_mnGvCtaH-SQ_k,3814
|
@@ -37,10 +37,10 @@ lionagi/libs/validate/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZU
|
|
37
37
|
lionagi/libs/validate/common_field_validators.py,sha256=1BHznXnJYcLQrHqvHKUnP6aqCptuQ0qN7KJRCExcJBU,4778
|
38
38
|
lionagi/libs/validate/to_num.py,sha256=ZRHDjpTCykPfDIZZa4rZKNaR_8ZHbPDFlw9rc02DrII,11610
|
39
39
|
lionagi/libs/validate/validate_boolean.py,sha256=bjiX_WZ3Bg8XcqoWLzE1G9BpO0AisrlZUxrpye_mlGk,3614
|
40
|
-
lionagi/ln/__init__.py,sha256=
|
40
|
+
lionagi/ln/__init__.py,sha256=dQvfTU1MHUrG4C4KoqEs7Xg801seML-GNjihbdUtp3E,1575
|
41
41
|
lionagi/ln/_async_call.py,sha256=mnqq5l-hNIBWrWh7X7CtmwPafg1kT-lnWWm3nJnbPoI,9384
|
42
42
|
lionagi/ln/_hash.py,sha256=WLwKsbJISE7KtOrpiE30AFtfwyOCSBjb1GslBlvj5ac,4529
|
43
|
-
lionagi/ln/_json_dump.py,sha256=
|
43
|
+
lionagi/ln/_json_dump.py,sha256=zOeoOE3JbaGAzL-lfAdMqdgaXWYXFliqcgXsZ_pxonI,10347
|
44
44
|
lionagi/ln/_list_call.py,sha256=zvISmCeNAH7yjBcusQI1s17n556tILgePhRMdAM2plA,2831
|
45
45
|
lionagi/ln/_to_list.py,sha256=YOlrMplSpQhXDSTK4fkMF7Mhuw1wS0jGip5mS88Otro,6610
|
46
46
|
lionagi/ln/_utils.py,sha256=5Z_AsDxdtH5wNB-P4IiihhH0dYUcZMT-hTxFQBQPwL0,4303
|
@@ -68,20 +68,21 @@ lionagi/models/hashable_model.py,sha256=oOqR3OJCU9cJfWHiG0WaEw0GMqfE2WTt4cy7WsAs
|
|
68
68
|
lionagi/models/model_params.py,sha256=zVU-PHp3skjK5ZVjpsPs1k_VJiS8X0hgct0xs6Z6W_Y,10955
|
69
69
|
lionagi/models/operable_model.py,sha256=Zm_Hxdauqyh0za3_TJLCZ3g6nR4F45Rrnc0ZM3d54Gs,20111
|
70
70
|
lionagi/models/schema_model.py,sha256=ghRIM8aBNaToAknwNlhQKpuKXcwzyCw5pDE31bVKxs0,667
|
71
|
-
lionagi/operations/__init__.py,sha256=
|
72
|
-
lionagi/operations/
|
73
|
-
lionagi/operations/
|
71
|
+
lionagi/operations/__init__.py,sha256=DU9sIhtw1vPBVllZ1Fbum8GE3qC9yfyQtt6_8vyv_cA,444
|
72
|
+
lionagi/operations/_visualize_graph.py,sha256=F0KadgRthP-6-R-FPgvlwiiaiWH3ueO-rjSd1bzRUbE,8594
|
73
|
+
lionagi/operations/builder.py,sha256=c6OIBwIX2-V4oH7wRBQf4SEs38L9lHdSX1ODb7ETLuI,14722
|
74
|
+
lionagi/operations/flow.py,sha256=7mjyKCXN1GYNDxNMqjALr9j6vsgm8TC2Z4ZNpzzfUMU,25141
|
74
75
|
lionagi/operations/manager.py,sha256=YZr3VjPAZVVFd_bIjF1aoQqzzKZHNA1kcqefNi5QFFM,683
|
75
|
-
lionagi/operations/node.py,sha256=
|
76
|
-
lionagi/operations/types.py,sha256=
|
77
|
-
lionagi/operations/utils.py,sha256=
|
76
|
+
lionagi/operations/node.py,sha256=zntelS3kO6q4H6vpS2lpw3iNUTLR3a6I3dp07fdSGJs,3465
|
77
|
+
lionagi/operations/types.py,sha256=zBhTQ4od4yXo84_Osbed7Zqhnp-PA90mrjGsQSSCuzw,644
|
78
|
+
lionagi/operations/utils.py,sha256=xSRJkPyorhUHkibtW45ICGkGwrg7IkIALXIYBtvj6cc,1373
|
78
79
|
lionagi/operations/ReAct/ReAct.py,sha256=UzW3MClv9_w1AqrZIuATOZ9ASTb8HPD0Rlotlp0mYOg,13388
|
79
80
|
lionagi/operations/ReAct/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
80
81
|
lionagi/operations/ReAct/utils.py,sha256=qYh-zTRCHXyuNpSgBmooTG0TVp9Pdht0tONPwdv8BT4,4102
|
81
82
|
lionagi/operations/_act/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
82
83
|
lionagi/operations/_act/act.py,sha256=LfN4UqTTHVvO1h9tqmDhVfVafVUOry4YGEivIZbmLqc,2810
|
83
84
|
lionagi/operations/brainstorm/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
84
|
-
lionagi/operations/brainstorm/brainstorm.py,sha256=
|
85
|
+
lionagi/operations/brainstorm/brainstorm.py,sha256=o7szKzx9axhBB656p3wDnFM_syXKFhIHt25CJ28XiGI,18797
|
85
86
|
lionagi/operations/brainstorm/prompt.py,sha256=Dqi4NNeztdI4iutggRqjnOrG4a4E2JtwIAtRnjZ_ghQ,610
|
86
87
|
lionagi/operations/chat/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
87
88
|
lionagi/operations/chat/chat.py,sha256=F5ugFtMm4OdNCQhaKN-0ezIcfInR_za5I7WbBC9qfzQ,5493
|
@@ -92,9 +93,9 @@ lionagi/operations/instruct/instruct.py,sha256=7pxhyP5jxwpgqjmQNb1rnGF4QAVlbMENp
|
|
92
93
|
lionagi/operations/interpret/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
93
94
|
lionagi/operations/interpret/interpret.py,sha256=yl1NSp2iOm3dbycVLEcnV3absnqKoubfH15v6lQgySU,1500
|
94
95
|
lionagi/operations/operate/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
95
|
-
lionagi/operations/operate/operate.py,sha256=
|
96
|
+
lionagi/operations/operate/operate.py,sha256=I20CwJGx-hxlZ3kmd0-Hh6kWbqCCA3-aJMR8hHHpzd4,7532
|
96
97
|
lionagi/operations/parse/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
97
|
-
lionagi/operations/parse/parse.py,sha256=
|
98
|
+
lionagi/operations/parse/parse.py,sha256=gI6xbMdc7XDHYyfJRMlH4YBorxMmKhGSQZ2oHlrmULs,6590
|
98
99
|
lionagi/operations/plan/__init__.py,sha256=yGBPll6lOqVjadbTvDLGrTlMx3FfBW-e00z7AMvg7Uo,156
|
99
100
|
lionagi/operations/plan/plan.py,sha256=qonV5kJjJCBAWfsvH7gqUj5Gyo-N-Nh_2dr-OZcDQ1Q,15315
|
100
101
|
lionagi/operations/plan/prompt.py,sha256=GUNZ8RpHIa89D-_y7GK--Spg0JADI3K13sjf_w3a2mI,993
|
@@ -105,7 +106,7 @@ lionagi/protocols/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM
|
|
105
106
|
lionagi/protocols/_concepts.py,sha256=ZBN5OYpLMWLrl9uZqSg9GD4uwf60V4VHcxRnBTRWIRc,1555
|
106
107
|
lionagi/protocols/contracts.py,sha256=ii7luaPJsEKOb3J-rcaNysPDGU3nEzpgy_8g1z5_CCA,1398
|
107
108
|
lionagi/protocols/ids.py,sha256=RM40pP_4waMJcfCGmEK_PfS8-k_DuDbC1fG-2Peuf6s,2472
|
108
|
-
lionagi/protocols/types.py,sha256=
|
109
|
+
lionagi/protocols/types.py,sha256=6GJ5ZgDyWl8tckNLXB0z8jbtkordWpgm5r4ht31KVRc,2431
|
109
110
|
lionagi/protocols/action/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
110
111
|
lionagi/protocols/action/function_calling.py,sha256=jFy6Ruh3QWkERtBHXqPWVwrOH5aDitEo8oJHZgW5xnI,5066
|
111
112
|
lionagi/protocols/action/manager.py,sha256=XmdQIaVgSpmFBFW9kbW_rdwdQmlBteP4VRanxh_f918,8549
|
@@ -119,14 +120,13 @@ lionagi/protocols/generic/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGv
|
|
119
120
|
lionagi/protocols/generic/element.py,sha256=yD4SWNOGZsLTgxtz6TKtJfqkUvDmUH9wIH3Liw6QmmA,15839
|
120
121
|
lionagi/protocols/generic/event.py,sha256=n5EraAJ5bPiwegTdkxsILs7-vFJwmnXhB2om4xMQnK0,6529
|
121
122
|
lionagi/protocols/generic/log.py,sha256=AnPr2RweSZcJdxOK0KGb1eyvAPZmME3hEm9HraUoftQ,8212
|
122
|
-
lionagi/protocols/generic/pile.py,sha256=
|
123
|
+
lionagi/protocols/generic/pile.py,sha256=AHxj1q5apabATmdgGXlAhkcqIug9r_75wmufdq9XLt4,36894
|
123
124
|
lionagi/protocols/generic/processor.py,sha256=uiNIldAYPEujuboLFyrIJADMlhRghy3H86hYintj5D4,11705
|
124
125
|
lionagi/protocols/generic/progression.py,sha256=HCV_EnQCFvjg6D7eF4ygGrZNQPEOtu75zvW1sJbAVrM,15190
|
125
126
|
lionagi/protocols/graph/__init__.py,sha256=UPu3OmUpjSgX2aBuBJUdG2fppGlfqAH96hU0qIMBMp0,253
|
126
|
-
lionagi/protocols/graph/_utils.py,sha256=mts4M2wcGKdY9hC-1917lxIJT5oycW9VnRgfRx8ydbI,605
|
127
127
|
lionagi/protocols/graph/edge.py,sha256=YxSGj4w_fG7khm-zpKduuK5fJzhJDx23JhU1dZp29d8,5241
|
128
|
-
lionagi/protocols/graph/graph.py,sha256=
|
129
|
-
lionagi/protocols/graph/node.py,sha256=
|
128
|
+
lionagi/protocols/graph/graph.py,sha256=l-12vTRblpWS_M4Ae-NTZThdeioaQvmhCS83mjB2fe8,11159
|
129
|
+
lionagi/protocols/graph/node.py,sha256=AtMw-Z88aW0YjOlN1g6cxmRrSSC3qyGV1MYqBg5hUrY,5305
|
130
130
|
lionagi/protocols/mail/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
131
131
|
lionagi/protocols/mail/exchange.py,sha256=P1PcrFylIBeiQa8kox9H1qyJ4kjhUlbLiTUT8rs1OXg,7041
|
132
132
|
lionagi/protocols/mail/mail.py,sha256=RB5CUft_4J85H9nM9g6aRXomTaqKwF5xVjJacPAhoa8,1356
|
@@ -140,7 +140,7 @@ lionagi/protocols/messages/assistant_response.py,sha256=jrzRPVHHDnPw86Xp0IHnPy0t
|
|
140
140
|
lionagi/protocols/messages/base.py,sha256=Ng1Q8yIIIFauUv53LnwDeyOrM-cSCfsHM1GwkxChf2o,2317
|
141
141
|
lionagi/protocols/messages/instruction.py,sha256=Qpme1oSc406V3-F2iOyqC8TVT2GWVduZaoDfdGdBnDI,21127
|
142
142
|
lionagi/protocols/messages/manager.py,sha256=ABDiN-QULbfbSrHVlPe3kqBxr7e7sYoT49wHQMLiT6c,16897
|
143
|
-
lionagi/protocols/messages/message.py,sha256=
|
143
|
+
lionagi/protocols/messages/message.py,sha256=invP8Lu7bep_y5ve97LD9engQCHmhg7BhV5H3B0umvc,7941
|
144
144
|
lionagi/protocols/messages/system.py,sha256=x0F1C57SFHaO2-Z9cy1QshYlxv8wjl7VppooaGKbMIg,4658
|
145
145
|
lionagi/protocols/messages/templates/README.md,sha256=Ch4JrKSjd85fLitAYO1OhZjNOGKHoEwaKQlcV16jiUI,1286
|
146
146
|
lionagi/protocols/messages/templates/action_request.jinja2,sha256=d6OmxHKyvvNDSK4bnBM3TGSUk_HeE_Q2EtLAQ0ZBEJg,120
|
@@ -152,16 +152,16 @@ lionagi/protocols/messages/templates/tool_schemas.jinja2,sha256=ozIaSDCRjIAhLyA8
|
|
152
152
|
lionagi/protocols/operatives/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
153
153
|
lionagi/protocols/operatives/operative.py,sha256=Y_prGR7aPQtO3ws91W_KkjJTVnb5lYkfwMKaEIN2FVU,13331
|
154
154
|
lionagi/protocols/operatives/step.py,sha256=uF92QO2KZiY3YR1cxhrbD844VFidOKfmeQn2Fv637iY,9280
|
155
|
-
lionagi/service/__init__.py,sha256=
|
155
|
+
lionagi/service/__init__.py,sha256=qcscXOKVQtDDQ7YV-_D9jcIABDkGaxAEsCKsBBtf4XE,992
|
156
156
|
lionagi/service/imodel.py,sha256=ya406sf42-KRrKN4TJJLtI6wsKeM5hAhWr7Hubg7W0E,16371
|
157
157
|
lionagi/service/manager.py,sha256=tN3p0kM7pg_CEs6wXK62_B_h49Q3nrU-9qniFhw2ABE,1164
|
158
158
|
lionagi/service/rate_limited_processor.py,sha256=h2_F71aVeBrgZ0a7ARS8-8NDaAHvfWrLykI5QcNuYbk,6099
|
159
159
|
lionagi/service/resilience.py,sha256=91RPFtQY4QyNga_nuSNLsbzNE26pXJMTAfLaQqVdvmg,18714
|
160
160
|
lionagi/service/token_calculator.py,sha256=piTidArzUkIMCtOLC_HBLoZNYZcENQywgeKM31bxezM,6457
|
161
|
-
lionagi/service/types.py,sha256=
|
161
|
+
lionagi/service/types.py,sha256=KxUM3m6LMPqIO3l1nNdaSJ8vt46ozOKWFZyI4LXBTRk,1532
|
162
162
|
lionagi/service/connections/__init__.py,sha256=yHQZ7OJpCftd6CStYR8inbxjJydYdmv9kCvbUBhJ2zU,362
|
163
|
-
lionagi/service/connections/api_calling.py,sha256=
|
164
|
-
lionagi/service/connections/endpoint.py,sha256=
|
163
|
+
lionagi/service/connections/api_calling.py,sha256=n_FA_Q8R7s0KsgsUE-obyVPB73UbOxTD2c_qpi9ngso,10110
|
164
|
+
lionagi/service/connections/endpoint.py,sha256=0r4-8NPyAvLNey09BBsUr5KGJCXchBmVZm2pCe3Nbq4,15165
|
165
165
|
lionagi/service/connections/endpoint_config.py,sha256=6sA06uCzriT6p0kFxhDCFH8N6V6MVp8ytlOw5ctBhDI,5169
|
166
166
|
lionagi/service/connections/header_factory.py,sha256=IYeTQQk7r8FXcdhmW7orCxHjNO-Nb1EOXhgNK7CAp-I,1821
|
167
167
|
lionagi/service/connections/match_endpoint.py,sha256=QlOw9CbR1peExP-b-XlkRpqqGIksfNefI2EZCw9P7_E,2575
|
@@ -187,15 +187,15 @@ lionagi/service/third_party/exa_models.py,sha256=G_hnekcy-DillPLzMoDQ8ZisVAL8Mp7
|
|
187
187
|
lionagi/service/third_party/openai_model_names.py,sha256=C44tnqexgc4ZU2-3I_sn5d688hf3WWx-25xBd50bvas,5121
|
188
188
|
lionagi/service/third_party/pplx_models.py,sha256=-EhyJgOWR6rzSv3zczUtk80X6c19p18Dg9KC6l8BFRQ,6473
|
189
189
|
lionagi/session/__init__.py,sha256=kDypY6L3kGPnatAw7YNQAykgg-9MlIBnlhHExaXvt-c,202
|
190
|
-
lionagi/session/branch.py,sha256=
|
190
|
+
lionagi/session/branch.py,sha256=Gz9QOhZ2e6UJtTTkqY4P1Oa0UnjXHwIJTP7YCpcbA9o,65064
|
191
191
|
lionagi/session/prompts.py,sha256=GPr0jibyAAqS3awDzGC8SoCL6aWJLLCCbXY0JUuxOC0,3170
|
192
|
-
lionagi/session/session.py,sha256=
|
192
|
+
lionagi/session/session.py,sha256=mPUUm-NG9UtUdn98UqIGRkxcZoFswrob70tVb_QZSf8,14536
|
193
193
|
lionagi/tools/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
194
194
|
lionagi/tools/base.py,sha256=hEGnE4MD0CM4UqnF0xsDRKB0aM-pyrTFHl8utHhyJLU,1897
|
195
195
|
lionagi/tools/types.py,sha256=XtJLY0m-Yi_ZLWhm0KycayvqMCZd--HxfQ0x9vFUYDE,230
|
196
196
|
lionagi/tools/file/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
|
197
197
|
lionagi/tools/file/reader.py,sha256=2YKgU3VKo76zfL_buDAUQJoPLC56f6WJ4_mdJjlMDIM,9509
|
198
|
-
lionagi-0.
|
199
|
-
lionagi-0.
|
200
|
-
lionagi-0.
|
201
|
-
lionagi-0.
|
198
|
+
lionagi-0.17.1.dist-info/METADATA,sha256=FDfZlBaL8WKxRxOc7ZQ7Fur_yEBy3Ft0puOgm2GxIOc,22766
|
199
|
+
lionagi-0.17.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
200
|
+
lionagi-0.17.1.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
|
201
|
+
lionagi-0.17.1.dist-info/RECORD,,
|
@@ -1,22 +0,0 @@
|
|
1
|
-
def check_networkx_available():
|
2
|
-
try:
|
3
|
-
from networkx import DiGraph # noqa: F401
|
4
|
-
|
5
|
-
return True
|
6
|
-
except Exception:
|
7
|
-
return ImportError(
|
8
|
-
"The 'networkx' package is required for this feature. "
|
9
|
-
"Please install `networkx` or `'lionagi[graph]'`."
|
10
|
-
)
|
11
|
-
|
12
|
-
|
13
|
-
def check_matplotlib_available():
|
14
|
-
try:
|
15
|
-
import matplotlib.pyplot as plt
|
16
|
-
|
17
|
-
return True
|
18
|
-
except Exception:
|
19
|
-
return ImportError(
|
20
|
-
"The 'matplotlib' package is required for this feature. "
|
21
|
-
"Please install `matplotlib` or `'lionagi[graph]'`."
|
22
|
-
)
|
File without changes
|
File without changes
|