lionagi 0.7.0__py3-none-any.whl → 0.7.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of lionagi might be problematic. Click here for more details.
- lionagi/operations/ReAct/ReAct.py +2 -2
- lionagi/operations/_act/act.py +10 -3
- lionagi/operations/communicate/communicate.py +0 -59
- lionagi/operations/interpret/interpret.py +1 -2
- lionagi/operations/operate/operate.py +10 -5
- lionagi/operations/parse/parse.py +0 -36
- lionagi/operations/plan/plan.py +3 -3
- lionagi/operatives/action/manager.py +105 -82
- lionagi/operatives/action/request_response_model.py +31 -0
- lionagi/operatives/action/tool.py +50 -20
- lionagi/protocols/_concepts.py +1 -1
- lionagi/protocols/adapters/adapter.py +25 -0
- lionagi/protocols/adapters/json_adapter.py +107 -27
- lionagi/protocols/adapters/pandas_/csv_adapter.py +55 -11
- lionagi/protocols/adapters/pandas_/excel_adapter.py +52 -10
- lionagi/protocols/adapters/pandas_/pd_dataframe_adapter.py +54 -4
- lionagi/protocols/adapters/pandas_/pd_series_adapter.py +40 -0
- lionagi/protocols/generic/element.py +1 -1
- lionagi/protocols/generic/pile.py +5 -8
- lionagi/protocols/graph/edge.py +1 -1
- lionagi/protocols/graph/graph.py +16 -8
- lionagi/protocols/graph/node.py +1 -1
- lionagi/protocols/mail/exchange.py +126 -15
- lionagi/protocols/mail/mail.py +33 -0
- lionagi/protocols/mail/mailbox.py +62 -0
- lionagi/protocols/mail/manager.py +97 -41
- lionagi/protocols/mail/package.py +57 -3
- lionagi/protocols/messages/action_request.py +77 -26
- lionagi/protocols/messages/action_response.py +55 -26
- lionagi/protocols/messages/assistant_response.py +50 -15
- lionagi/protocols/messages/base.py +36 -0
- lionagi/protocols/messages/instruction.py +175 -145
- lionagi/protocols/messages/manager.py +152 -56
- lionagi/protocols/messages/message.py +61 -25
- lionagi/protocols/messages/system.py +54 -19
- lionagi/service/imodel.py +24 -0
- lionagi/session/branch.py +40 -32
- lionagi/utils.py +1 -0
- lionagi/version.py +1 -1
- {lionagi-0.7.0.dist-info → lionagi-0.7.2.dist-info}/METADATA +1 -1
- {lionagi-0.7.0.dist-info → lionagi-0.7.2.dist-info}/RECORD +43 -43
- {lionagi-0.7.0.dist-info → lionagi-0.7.2.dist-info}/WHEEL +0 -0
- {lionagi-0.7.0.dist-info → lionagi-0.7.2.dist-info}/licenses/LICENSE +0 -0
@@ -2,6 +2,11 @@
|
|
2
2
|
#
|
3
3
|
# SPDX-License-Identifier: Apache-2.0
|
4
4
|
|
5
|
+
"""
|
6
|
+
Defines the `System` class, representing system-level instructions or
|
7
|
+
settings that guide the AI's behavior from a privileged role.
|
8
|
+
"""
|
9
|
+
|
5
10
|
from datetime import datetime
|
6
11
|
from typing import Any, NoReturn, Self
|
7
12
|
|
@@ -19,14 +24,16 @@ def format_system_content(
|
|
19
24
|
system_message: str,
|
20
25
|
) -> dict:
|
21
26
|
"""
|
22
|
-
|
27
|
+
Insert optional datetime string into the system message content.
|
23
28
|
|
24
29
|
Args:
|
25
|
-
system_datetime:
|
26
|
-
|
30
|
+
system_datetime (bool|str|None):
|
31
|
+
If True, embed current time. If str, use as time. If None, omit.
|
32
|
+
system_message (str):
|
33
|
+
The main system message text.
|
27
34
|
|
28
35
|
Returns:
|
29
|
-
|
36
|
+
dict: The combined system content.
|
30
37
|
"""
|
31
38
|
content: dict = {"system_message": system_message}
|
32
39
|
if system_datetime:
|
@@ -40,6 +47,11 @@ def format_system_content(
|
|
40
47
|
|
41
48
|
|
42
49
|
class System(RoledMessage):
|
50
|
+
"""
|
51
|
+
A specialized message that sets a *system-level* context or policy.
|
52
|
+
Usually the first in a conversation, instructing the AI about general
|
53
|
+
constraints or identity.
|
54
|
+
"""
|
43
55
|
|
44
56
|
template: str | Template | None = jinja_env.get_template(
|
45
57
|
"system_message.jinja2"
|
@@ -58,14 +70,26 @@ class System(RoledMessage):
|
|
58
70
|
**kwargs,
|
59
71
|
) -> Self:
|
60
72
|
"""
|
61
|
-
|
73
|
+
Construct a system message with optional datetime annotation.
|
62
74
|
|
63
75
|
Args:
|
64
|
-
system_message:
|
65
|
-
|
76
|
+
system_message (str):
|
77
|
+
The main text instructing the AI about behavior/identity.
|
78
|
+
system_datetime (bool|str, optional):
|
79
|
+
If True or str, embed a time reference. If str, it is used directly.
|
80
|
+
sender (SenderRecipient, optional):
|
81
|
+
Typically `MessageRole.SYSTEM`.
|
82
|
+
recipient (SenderRecipient, optional):
|
83
|
+
Typically `MessageRole.ASSISTANT`.
|
84
|
+
template (Template|str|None):
|
85
|
+
An optional custom template for rendering.
|
86
|
+
system (Any):
|
87
|
+
Alias for `system_message` (deprecated).
|
88
|
+
**kwargs:
|
89
|
+
Additional content merged into the final dict.
|
66
90
|
|
67
91
|
Returns:
|
68
|
-
System:
|
92
|
+
System: A newly created system-level message.
|
69
93
|
"""
|
70
94
|
if system and system_message:
|
71
95
|
raise ValueError(
|
@@ -78,14 +102,14 @@ class System(RoledMessage):
|
|
78
102
|
system_datetime=system_datetime, system_message=system_message
|
79
103
|
)
|
80
104
|
content.update(kwargs)
|
81
|
-
params = {
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
105
|
+
params = {
|
106
|
+
"role": MessageRole.SYSTEM,
|
107
|
+
"content": content,
|
108
|
+
"sender": sender or MessageRole.SYSTEM,
|
109
|
+
"recipient": recipient or MessageRole.ASSISTANT,
|
110
|
+
}
|
86
111
|
if template:
|
87
112
|
params["template"] = template
|
88
|
-
|
89
113
|
return cls(**params)
|
90
114
|
|
91
115
|
def update(
|
@@ -98,13 +122,21 @@ class System(RoledMessage):
|
|
98
122
|
**kwargs,
|
99
123
|
) -> NoReturn:
|
100
124
|
"""
|
101
|
-
|
125
|
+
Adjust fields of this system message.
|
102
126
|
|
103
127
|
Args:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
128
|
+
system_message (JsonValue):
|
129
|
+
New system message text.
|
130
|
+
sender (SenderRecipient):
|
131
|
+
Updated sender or role.
|
132
|
+
recipient (SenderRecipient):
|
133
|
+
Updated recipient or role.
|
134
|
+
system_datetime (bool|str):
|
135
|
+
If set, embed new datetime info.
|
136
|
+
template (Template|str|None):
|
137
|
+
New template override.
|
138
|
+
**kwargs:
|
139
|
+
Additional fields for self.content.
|
108
140
|
"""
|
109
141
|
if any([system_message, system_message]):
|
110
142
|
self.content = format_system_content(
|
@@ -113,3 +145,6 @@ class System(RoledMessage):
|
|
113
145
|
super().update(
|
114
146
|
sender=sender, recipient=recipient, template=template, **kwargs
|
115
147
|
)
|
148
|
+
|
149
|
+
|
150
|
+
# File: lionagi/protocols/messages/system.py
|
lionagi/service/imodel.py
CHANGED
@@ -295,3 +295,27 @@ class iModel:
|
|
295
295
|
**data,
|
296
296
|
**processor_config,
|
297
297
|
)
|
298
|
+
|
299
|
+
async def compress_text(
|
300
|
+
self,
|
301
|
+
text: str,
|
302
|
+
system_msg: str = None,
|
303
|
+
target_ratio: float = 0.2,
|
304
|
+
n_samples: int = 5,
|
305
|
+
max_tokens_per_sample=80,
|
306
|
+
verbose=True,
|
307
|
+
) -> str:
|
308
|
+
"""
|
309
|
+
Convenience function that instantiates LLMCompressor and compresses text.
|
310
|
+
"""
|
311
|
+
from lionagi.libs.token_transform.perplexity import LLMCompressor
|
312
|
+
|
313
|
+
compressor = LLMCompressor(
|
314
|
+
chat_model=self,
|
315
|
+
system_msg=system_msg,
|
316
|
+
target_ratio=target_ratio,
|
317
|
+
n_samples=n_samples,
|
318
|
+
max_tokens_per_sample=max_tokens_per_sample,
|
319
|
+
verbose=verbose,
|
320
|
+
)
|
321
|
+
return await compressor.compress(text)
|
lionagi/session/branch.py
CHANGED
@@ -61,16 +61,16 @@ class Branch(Element, Communicatable, Relational):
|
|
61
61
|
Manages a conversation 'branch' with messages, tools, and iModels.
|
62
62
|
|
63
63
|
The `Branch` class serves as a high-level interface or orchestrator that:
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
64
|
+
- Handles message management (`MessageManager`).
|
65
|
+
- Registers and invokes tools/actions (`ActionManager`).
|
66
|
+
- Manages model instances (`iModelManager`).
|
67
|
+
- Logs activity (`LogManager`).
|
68
|
+
- Communicates via mailboxes (`Mailbox`).
|
69
69
|
|
70
70
|
**Key responsibilities**:
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
- Storing and organizing messages, including system instructions, user instructions, and model responses.
|
72
|
+
- Handling asynchronous or synchronous execution of LLM calls and tool invocations.
|
73
|
+
- Providing a consistent interface for “operate,” “chat,” “communicate,” “parse,” etc.
|
74
74
|
|
75
75
|
Attributes:
|
76
76
|
user (SenderRecipient | None):
|
@@ -120,8 +120,8 @@ class Branch(Element, Communicatable, Relational):
|
|
120
120
|
messages: Pile[RoledMessage] = None, # message manager kwargs
|
121
121
|
system: System | JsonValue = None,
|
122
122
|
system_sender: SenderRecipient = None,
|
123
|
-
chat_model: iModel = None, # iModelManager kwargs
|
124
|
-
parse_model: iModel = None,
|
123
|
+
chat_model: iModel | dict = None, # iModelManager kwargs
|
124
|
+
parse_model: iModel | dict = None,
|
125
125
|
imodel: iModel = None, # deprecated, alias of chat_model
|
126
126
|
tools: FuncTool | list[FuncTool] = None, # ActionManager kwargs
|
127
127
|
log_config: LogManagerConfig | dict = None, # LogManager kwargs
|
@@ -538,12 +538,12 @@ class Branch(Element, Communicatable, Relational):
|
|
538
538
|
def to_dict(self):
|
539
539
|
"""
|
540
540
|
Serializes the branch to a Python dictionary, including:
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
541
|
+
- Messages
|
542
|
+
- Logs
|
543
|
+
- Chat/Parse models
|
544
|
+
- System message
|
545
|
+
- LogManager config
|
546
|
+
- Metadata
|
547
547
|
|
548
548
|
Returns:
|
549
549
|
dict: A dictionary representing the branch's internal state.
|
@@ -616,23 +616,25 @@ class Branch(Element, Communicatable, Relational):
|
|
616
616
|
# -------------------------------------------------------------------------
|
617
617
|
async def chat(
|
618
618
|
self,
|
619
|
-
instruction=None,
|
620
|
-
guidance=None,
|
621
|
-
context=None,
|
622
|
-
sender=None,
|
623
|
-
recipient=None,
|
624
|
-
request_fields=None,
|
625
|
-
response_format: type[BaseModel] = None,
|
626
|
-
progression=None,
|
619
|
+
instruction: Instruction | JsonValue = None,
|
620
|
+
guidance: JsonValue = None,
|
621
|
+
context: JsonValue = None,
|
622
|
+
sender: ID.Ref = None,
|
623
|
+
recipient: ID.Ref = None,
|
624
|
+
request_fields: list[str] | dict[str, JsonValue] = None,
|
625
|
+
response_format: type[BaseModel] | BaseModel = None,
|
626
|
+
progression: Progression | list[ID[RoledMessage].ID] = None,
|
627
627
|
imodel: iModel = None,
|
628
|
-
tool_schemas=None,
|
628
|
+
tool_schemas: list[dict] = None,
|
629
629
|
images: list = None,
|
630
630
|
image_detail: Literal["low", "high", "auto"] = None,
|
631
631
|
plain_content: str = None,
|
632
|
+
return_ins_res_message: bool = False,
|
632
633
|
**kwargs,
|
633
634
|
) -> tuple[Instruction, AssistantResponse]:
|
634
635
|
"""
|
635
|
-
Invokes the chat model with the current conversation history.
|
636
|
+
Invokes the chat model with the current conversation history. This method does not
|
637
|
+
automatically add messages to the branch. It is typically used for orchestrating.
|
636
638
|
|
637
639
|
**High-level flow**:
|
638
640
|
1. Construct a sequence of messages from the stored progression.
|
@@ -666,7 +668,10 @@ class Branch(Element, Communicatable, Relational):
|
|
666
668
|
image_detail (Literal["low", "high", "auto"], optional):
|
667
669
|
Level of detail for image-based context (if relevant).
|
668
670
|
plain_content (str, optional):
|
669
|
-
Plain text content
|
671
|
+
Plain text content, will override any other content.
|
672
|
+
return_ins_res_message:
|
673
|
+
If `True`, returns the final `Instruction` and `AssistantResponse` objects.
|
674
|
+
else, returns only the response content.
|
670
675
|
**kwargs:
|
671
676
|
Additional parameters for the LLM invocation.
|
672
677
|
|
@@ -691,6 +696,7 @@ class Branch(Element, Communicatable, Relational):
|
|
691
696
|
images=images,
|
692
697
|
image_detail=image_detail,
|
693
698
|
plain_content=plain_content,
|
699
|
+
return_ins_res_message=return_ins_res_message,
|
694
700
|
**kwargs,
|
695
701
|
)
|
696
702
|
|
@@ -716,7 +722,7 @@ class Branch(Element, Communicatable, Relational):
|
|
716
722
|
response_format: type[BaseModel] = None,
|
717
723
|
):
|
718
724
|
"""
|
719
|
-
Attempts to parse text into a structured Pydantic model using parse model logic.
|
725
|
+
Attempts to parse text into a structured Pydantic model using parse model logic. New messages are not appeneded to conversation context.
|
720
726
|
|
721
727
|
If fuzzy matching is enabled, tries to map partial or uncertain keys
|
722
728
|
to the known fields of the model. Retries are performed if initial parsing fails.
|
@@ -815,7 +821,8 @@ class Branch(Element, Communicatable, Relational):
|
|
815
821
|
) -> list | BaseModel | None | dict | str:
|
816
822
|
"""
|
817
823
|
Orchestrates an "operate" flow with optional tool invocation and
|
818
|
-
structured response validation.
|
824
|
+
structured response validation. Messages **are** automatically
|
825
|
+
added to the conversation.
|
819
826
|
|
820
827
|
**Workflow**:
|
821
828
|
1) Builds or updates an `Operative` object to specify how the LLM should respond.
|
@@ -969,7 +976,7 @@ class Branch(Element, Communicatable, Relational):
|
|
969
976
|
**kwargs,
|
970
977
|
):
|
971
978
|
"""
|
972
|
-
A simpler orchestration than `operate()`, typically without tool invocation.
|
979
|
+
A simpler orchestration than `operate()`, typically without tool invocation. Messages are automatically added to the conversation.
|
973
980
|
|
974
981
|
**Flow**:
|
975
982
|
1. Sends an instruction (or conversation) to the chat model.
|
@@ -1297,9 +1304,9 @@ class Branch(Element, Communicatable, Relational):
|
|
1297
1304
|
Interprets (rewrites) a user's raw input into a more formal or structured
|
1298
1305
|
LLM prompt. This function can be seen as a "prompt translator," which
|
1299
1306
|
ensures the user's original query is clarified or enhanced for better
|
1300
|
-
LLM responses.
|
1307
|
+
LLM responses. Messages are not automatically added to the conversation.
|
1301
1308
|
|
1302
|
-
The method calls `branch.
|
1309
|
+
The method calls `branch.chat()` behind the scenes with a system prompt
|
1303
1310
|
that instructs the LLM to rewrite the input. You can provide additional
|
1304
1311
|
parameters in `**kwargs` (e.g., `parse_model`, `skip_validation`, etc.)
|
1305
1312
|
if you want to shape how the rewriting is done.
|
@@ -1429,6 +1436,7 @@ class Branch(Element, Communicatable, Relational):
|
|
1429
1436
|
ReActAnalysis objects.
|
1430
1437
|
|
1431
1438
|
Notes:
|
1439
|
+
- Messages are automatically added to the branch context during the ReAct process.
|
1432
1440
|
- If `max_extensions` is greater than 5, a warning is logged, and it is set to 5.
|
1433
1441
|
- If `interpret=True`, the user instruction is replaced by the interpreted
|
1434
1442
|
string before proceeding.
|
lionagi/utils.py
CHANGED
@@ -701,6 +701,7 @@ async def alcall(
|
|
701
701
|
flatten (bool): Flatten the final result if True.
|
702
702
|
dropna (bool): Remove None values from the final result if True.
|
703
703
|
unique_output (bool): Deduplicate the output if True.
|
704
|
+
flatten_tuple_set (bool): Tuples and sets will be flattened if True.
|
704
705
|
**kwargs: Additional arguments passed to func.
|
705
706
|
|
706
707
|
Returns:
|
lionagi/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.7.
|
1
|
+
__version__ = "0.7.2"
|
@@ -2,8 +2,8 @@ lionagi/__init__.py,sha256=sBS47lQGuXNAdfSoVLW8szKbCfDWrfAceMMUVYNK3IU,541
|
|
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
4
|
lionagi/settings.py,sha256=k9zRJXv57TveyfHO3Vr9VGiKrSwlRUUVKt5zf6v9RU4,1627
|
5
|
-
lionagi/utils.py,sha256=
|
6
|
-
lionagi/version.py,sha256=
|
5
|
+
lionagi/utils.py,sha256=nwbr9mDOmmLmf5wq4sTZieCbu74GwHcXYrNjFV4-4LQ,73096
|
6
|
+
lionagi/version.py,sha256=lcrcqfPdVkkAQSUY7-6U3m2gooWLXX_neDSS8dIuHdc,22
|
7
7
|
lionagi/libs/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
8
8
|
lionagi/libs/parse.py,sha256=tpEbmIRGuHhLCJlUlm6fjmqm_Z6XJLAXGNFHNuk422I,1011
|
9
9
|
lionagi/libs/file/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
@@ -46,28 +46,28 @@ lionagi/libs/validate/validate_boolean.py,sha256=h3d7Dn7asJokBozWaKxaV_3Y6vUWBc0
|
|
46
46
|
lionagi/operations/__init__.py,sha256=O7nV0tedpUe7_OlUWmCcduGPFtqtzWZcR_SIOnjLsro,134
|
47
47
|
lionagi/operations/types.py,sha256=LIa68xcyKLVafof-DSFwKtSkneuYPFqrtGyClohYI6o,704
|
48
48
|
lionagi/operations/utils.py,sha256=Twy6L_UFt9JqJFRYuKKTKVZIXsePidNl5ipcYcCbesI,1220
|
49
|
-
lionagi/operations/ReAct/ReAct.py,sha256=
|
49
|
+
lionagi/operations/ReAct/ReAct.py,sha256=ICQROuVqYhUMUyzXao7oTewp8YZsdk-jI9Bn5eJpWpA,3955
|
50
50
|
lionagi/operations/ReAct/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
51
51
|
lionagi/operations/ReAct/utils.py,sha256=0OhZhoc8QsTsMFo2Jmys1mgpnMwHsldKuLVSbev9uZM,994
|
52
52
|
lionagi/operations/_act/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
53
|
-
lionagi/operations/_act/act.py,sha256=
|
53
|
+
lionagi/operations/_act/act.py,sha256=HBp-sNwNigLDNkuEZqGU_98UCaJXPZsaokkFAXwOMn0,2454
|
54
54
|
lionagi/operations/brainstorm/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
55
55
|
lionagi/operations/brainstorm/brainstorm.py,sha256=88Cq2IBrUs5du9q_8rf_VmhLYBfGKJv4rCeDTcJ07_g,17196
|
56
56
|
lionagi/operations/brainstorm/prompt.py,sha256=f-Eh6pO606dT2TrX9BFv_einRDpYwFi6Gep9Strd1cM,610
|
57
57
|
lionagi/operations/chat/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
58
58
|
lionagi/operations/chat/chat.py,sha256=ug3bFTByNVwa5Rlb1qWY1vf1cCMDpX8sX1tGR6ElYIs,5356
|
59
59
|
lionagi/operations/communicate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
60
|
-
lionagi/operations/communicate/communicate.py,sha256=
|
60
|
+
lionagi/operations/communicate/communicate.py,sha256=1PzBpzgATcAdBog0EUxtj5_uJGixNV93D4PYR12w_ec,2962
|
61
61
|
lionagi/operations/instruct/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
62
62
|
lionagi/operations/instruct/instruct.py,sha256=CYICzWvmgALtSPIetfF3csx6WDsCuiu4NRRPL56UA2g,795
|
63
63
|
lionagi/operations/interpret/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
64
|
-
lionagi/operations/interpret/interpret.py,sha256=
|
64
|
+
lionagi/operations/interpret/interpret.py,sha256=EtgXTeOezEPR03HSUVz8PGK-xf8p2nXoUMUhFkAntK0,1081
|
65
65
|
lionagi/operations/operate/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
66
|
-
lionagi/operations/operate/operate.py,sha256=
|
66
|
+
lionagi/operations/operate/operate.py,sha256=jgVV9CjtnVLmR5ZdDmunicS5Pp9dT3hV5kMEBuk16iI,6614
|
67
67
|
lionagi/operations/parse/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
68
|
-
lionagi/operations/parse/parse.py,sha256
|
68
|
+
lionagi/operations/parse/parse.py,sha256=LpF6LVAvCVoE8n63BkhSxXSHYgSx7CNkN7yXUwaNpQo,3003
|
69
69
|
lionagi/operations/plan/__init__.py,sha256=AFkAmOJBTqPlYuqFRRn7rCvIw3CGh9XXH_22cNWbfig,156
|
70
|
-
lionagi/operations/plan/plan.py,sha256=
|
70
|
+
lionagi/operations/plan/plan.py,sha256=wcvQFFh9bF1pa754OpILrCPnMuMOO6suPrhrgRiZHXM,15317
|
71
71
|
lionagi/operations/plan/prompt.py,sha256=ig4JjJR5gV-lXPRVbiaJuL9qeoahM_afYvWphpY1lWA,993
|
72
72
|
lionagi/operations/select/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
73
73
|
lionagi/operations/select/select.py,sha256=qCxgsqNSDQVmtINHTee2973UU6VuBuAsO7fdhQ0VYjQ,2492
|
@@ -81,9 +81,9 @@ lionagi/operatives/step.py,sha256=DevwisZc2q88ynUiiSu7VBEY2A_G4Q5iRLrVgVLHNJU,98
|
|
81
81
|
lionagi/operatives/types.py,sha256=8krpGIeJL2GkO580ePOuAZfGc7vUVPIanemoA77tbVY,1697
|
82
82
|
lionagi/operatives/action/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
83
83
|
lionagi/operatives/action/function_calling.py,sha256=VHUq8qebCAAdaWcPJQCZNI-P6zC_P1kp9o-d7nhZf_0,4602
|
84
|
-
lionagi/operatives/action/manager.py,sha256=
|
85
|
-
lionagi/operatives/action/request_response_model.py,sha256=
|
86
|
-
lionagi/operatives/action/tool.py,sha256=
|
84
|
+
lionagi/operatives/action/manager.py,sha256=FXfWhQMSFE5qJNZPpgdz4ePvthLafZfnmak2PImCrsc,8824
|
85
|
+
lionagi/operatives/action/request_response_model.py,sha256=mCyKub_WoEttJ_mqLhGoOoPVBQHOhr7sswy_jN6-620,3378
|
86
|
+
lionagi/operatives/action/tool.py,sha256=Fl47hS_RXWlkQYLBeRSLQ0iwtb7TaTrfTA0sPCzyi4k,5188
|
87
87
|
lionagi/operatives/action/utils.py,sha256=vUe7Aysuzbg16rAfe2Ttp5QUz5_L6mMedBVAWzGAHwk,4330
|
88
88
|
lionagi/operatives/forms/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
89
89
|
lionagi/operatives/forms/base.py,sha256=ALPREgOkRcY2wtRG0JpTXztlohkRjyCiwoleQfGCpSg,7207
|
@@ -114,43 +114,43 @@ lionagi/operatives/strategies/sequential_chunk.py,sha256=bs_0zZJjJpYdmEEWx3mwh3i
|
|
114
114
|
lionagi/operatives/strategies/sequential_concurrent_chunk.py,sha256=GJurnTuu6U7FOPR9mZxkjoJMIiQbgvRGt5iZZtmB2mY,3559
|
115
115
|
lionagi/operatives/strategies/utils.py,sha256=plZg84Yqba5GAmNPvsiUjbAavdDmCfwZkKnK_c_aORw,1414
|
116
116
|
lionagi/protocols/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
117
|
-
lionagi/protocols/_concepts.py,sha256=
|
117
|
+
lionagi/protocols/_concepts.py,sha256=2vHkG_Zbh4y3YAOqgJw0HXa2HS0VogjjvV3o1oXG7HM,1555
|
118
118
|
lionagi/protocols/types.py,sha256=M-cWgRGl8vaU776MuX-QSQVmaI1rbXmzyW9tfPHzGYc,2065
|
119
119
|
lionagi/protocols/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
120
|
-
lionagi/protocols/adapters/adapter.py,sha256=
|
121
|
-
lionagi/protocols/adapters/json_adapter.py,sha256=
|
120
|
+
lionagi/protocols/adapters/adapter.py,sha256=yXe21fmut9e9vtbxrQ6CWYIW2liy1sO0lItoclzYodU,3357
|
121
|
+
lionagi/protocols/adapters/json_adapter.py,sha256=EJj0Jev46ZhU3ZMnlYwyzN2rLxjLCVrMDpHkEuggBvk,4561
|
122
122
|
lionagi/protocols/adapters/types.py,sha256=qYCbxjWNLVIUOosC3N8oJHP8tDJ9kjsnaYuUh_h-70c,563
|
123
123
|
lionagi/protocols/adapters/pandas_/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
124
|
-
lionagi/protocols/adapters/pandas_/csv_adapter.py,sha256=
|
125
|
-
lionagi/protocols/adapters/pandas_/excel_adapter.py,sha256=
|
126
|
-
lionagi/protocols/adapters/pandas_/pd_dataframe_adapter.py,sha256=
|
127
|
-
lionagi/protocols/adapters/pandas_/pd_series_adapter.py,sha256=
|
124
|
+
lionagi/protocols/adapters/pandas_/csv_adapter.py,sha256=HWie6Jlt8nR-EVJC_zmCFilaWszLNuk7EWUp8Xvr-H8,2358
|
125
|
+
lionagi/protocols/adapters/pandas_/excel_adapter.py,sha256=ZqRT2xF93NLKNyMp16ePNzwUN3ntNkUy1dO3nbsrfak,2287
|
126
|
+
lionagi/protocols/adapters/pandas_/pd_dataframe_adapter.py,sha256=ULGZVhK5aaOuTrmFq4x5SiuDScYetyYYUHeL8Hh13Eg,2279
|
127
|
+
lionagi/protocols/adapters/pandas_/pd_series_adapter.py,sha256=TX3cqFtgEip8JqVqkjdJYOu4PQGpW1yYU6POhvz8Jeg,1388
|
128
128
|
lionagi/protocols/generic/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
129
|
-
lionagi/protocols/generic/element.py,sha256=
|
129
|
+
lionagi/protocols/generic/element.py,sha256=6RPUqs3FOdSC65QOwnfBD9yKVsWnmb878kmfas0m928,14169
|
130
130
|
lionagi/protocols/generic/event.py,sha256=SjR9N4Egr5_oqOBSKVsxQjsn6MlqNcwf48bee-qIT6Y,4879
|
131
131
|
lionagi/protocols/generic/log.py,sha256=xi8dRKwxtxVYU8T_E4wYJE4lCQzkERgAUARcAN7ZngI,7441
|
132
|
-
lionagi/protocols/generic/pile.py,sha256=
|
132
|
+
lionagi/protocols/generic/pile.py,sha256=SsdxIfDaIM1j6S6LuRPCTIJ86bZVeqlKkL_D1TGEQUQ,31446
|
133
133
|
lionagi/protocols/generic/processor.py,sha256=4Gkie1DxE0U-uZAdNBTuTibUlyeEGm_OyVlMXilCEm8,10115
|
134
134
|
lionagi/protocols/generic/progression.py,sha256=3PjIBlPoj7jahy75ERbo9vHKVNU7fFl4be5ETNzphJU,15160
|
135
135
|
lionagi/protocols/graph/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
136
|
-
lionagi/protocols/graph/edge.py,sha256=
|
137
|
-
lionagi/protocols/graph/graph.py,sha256=
|
138
|
-
lionagi/protocols/graph/node.py,sha256=
|
136
|
+
lionagi/protocols/graph/edge.py,sha256=cEbhqapsdJqHx5VhPwXwOkahfC7E7XZNbRqGixt_EFc,5229
|
137
|
+
lionagi/protocols/graph/graph.py,sha256=H1kcI2XRY2nIWIx1HLQSQr9ozx0fa6dLHsjT-vgjNv8,10208
|
138
|
+
lionagi/protocols/graph/node.py,sha256=DjsMB8CCbPesM45_3PAPPELbIl5Arlty-LDamYW09UI,3781
|
139
139
|
lionagi/protocols/mail/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
140
|
-
lionagi/protocols/mail/exchange.py,sha256=
|
141
|
-
lionagi/protocols/mail/mail.py,sha256=
|
142
|
-
lionagi/protocols/mail/mailbox.py,sha256=
|
143
|
-
lionagi/protocols/mail/manager.py,sha256=
|
144
|
-
lionagi/protocols/mail/package.py,sha256=
|
140
|
+
lionagi/protocols/mail/exchange.py,sha256=fKoaviOGoDGo2-kSg2_mOfRym6ZFtnIo_BTYlre39ZU,7258
|
141
|
+
lionagi/protocols/mail/mail.py,sha256=VzmbXzYKT-jtTdWglJRXEnRs6c0DIrxl-rz-6qKhyKo,1511
|
142
|
+
lionagi/protocols/mail/mailbox.py,sha256=U31owBkfO9fPo248xEIpYr-sU7akjEvEWKMhhQsra0o,2873
|
143
|
+
lionagi/protocols/mail/manager.py,sha256=tEjm8dj_6M8jyAgA1H9KjtFb_kjH1q8t0Bp_wi--txY,7105
|
144
|
+
lionagi/protocols/mail/package.py,sha256=j5L2V6xQR9rdnuNnlQZx2iXNSYmV9i6U5rhaR4AxoZg,2838
|
145
145
|
lionagi/protocols/messages/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
146
|
-
lionagi/protocols/messages/action_request.py,sha256=
|
147
|
-
lionagi/protocols/messages/action_response.py,sha256=
|
148
|
-
lionagi/protocols/messages/assistant_response.py,sha256=
|
149
|
-
lionagi/protocols/messages/base.py,sha256=
|
150
|
-
lionagi/protocols/messages/instruction.py,sha256=
|
151
|
-
lionagi/protocols/messages/manager.py,sha256=
|
152
|
-
lionagi/protocols/messages/message.py,sha256=
|
153
|
-
lionagi/protocols/messages/system.py,sha256=
|
146
|
+
lionagi/protocols/messages/action_request.py,sha256=Nsh6Nm6M1BvBOw3TzI5DvSuwH5ldjHLczmxF8G3dWBM,7081
|
147
|
+
lionagi/protocols/messages/action_response.py,sha256=v5ykwspVEBXYxgFCIgmhdvk8lR3ycxxQdbjwdVLK_w8,5401
|
148
|
+
lionagi/protocols/messages/assistant_response.py,sha256=rWQsvElcUdF9KHkDLTNg_o-uzNl5DTcK066lszvCI0k,6412
|
149
|
+
lionagi/protocols/messages/base.py,sha256=YcOtj-okN5ldbviPsulIDBAFaGRvqpmt7DTfgLYjpwA,2482
|
150
|
+
lionagi/protocols/messages/instruction.py,sha256=I5FNvygcilHmfEv6nWdAsg6yAwB0BqXdXbFdfAIYExE,19574
|
151
|
+
lionagi/protocols/messages/manager.py,sha256=QpOIbQ6zVaBzhh7KkMvXdujB05vJK4waSaos14WwG_Q,17370
|
152
|
+
lionagi/protocols/messages/message.py,sha256=ulTjKK4FSWTLFRbMbg8V8cEveKu_fhFnOaAyuVWCXbo,7864
|
153
|
+
lionagi/protocols/messages/system.py,sha256=pagv9ClmKAEY81mJ0OQFwzK0znJ1dDTMT8aJ8iAX17I,4799
|
154
154
|
lionagi/protocols/messages/templates/README.md,sha256=Ch4JrKSjd85fLitAYO1OhZjNOGKHoEwaKQlcV16jiUI,1286
|
155
155
|
lionagi/protocols/messages/templates/action_request.jinja2,sha256=d6OmxHKyvvNDSK4bnBM3TGSUk_HeE_Q2EtLAQ0ZBEJg,120
|
156
156
|
lionagi/protocols/messages/templates/action_response.jinja2,sha256=Mg0UxmXlIvtP_KPB0GcJxE1TP6lml9BwdPkW1PZxkg8,142
|
@@ -159,7 +159,7 @@ lionagi/protocols/messages/templates/instruction_message.jinja2,sha256=L-ptw5OHx
|
|
159
159
|
lionagi/protocols/messages/templates/system_message.jinja2,sha256=JRKJ0aFpYfaXSFouKc_N4unZ35C3yZTOWhIrIdCB5qk,215
|
160
160
|
lionagi/protocols/messages/templates/tool_schemas.jinja2,sha256=ozIaSDCRjIAhLyA8VM6S-YqS0w2NcctALSwx4LjDwII,126
|
161
161
|
lionagi/service/__init__.py,sha256=DMGXIqPsmut9H5GT0ZeSzQIzYzzPwI-2gLXydpbwiV8,21
|
162
|
-
lionagi/service/imodel.py,sha256
|
162
|
+
lionagi/service/imodel.py,sha256=MaiBcKM00vH0tq0nD_C7jV6S7OyV71a4YwVDrDfPMrA,11539
|
163
163
|
lionagi/service/manager.py,sha256=MKSYBkg23s7YhZy5GEFdnpspEnhPVfFhpkpoJe20D7k,1435
|
164
164
|
lionagi/service/types.py,sha256=v9SAn5-GTmds4Mar13Or_VFrRHCinBK99dmeDUd-QNk,486
|
165
165
|
lionagi/service/endpoints/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
@@ -180,9 +180,9 @@ lionagi/service/providers/openrouter_/chat_completions.py,sha256=MRf4ZbMCgzNIL4g
|
|
180
180
|
lionagi/service/providers/perplexity_/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
181
181
|
lionagi/service/providers/perplexity_/chat_completions.py,sha256=SsDbrtXwQsR4Yu2VMU43KfeS86QWI8UTNhDth5lNWNs,1055
|
182
182
|
lionagi/session/__init__.py,sha256=v8vNyJVIVj8_Oz9RJdVe6ZKUQMYTgDh1VQpnr1KdLaw,112
|
183
|
-
lionagi/session/branch.py,sha256=
|
183
|
+
lionagi/session/branch.py,sha256=ogCp8ybyrm1bspmtovcvrzUmBh8Nu_Q5RBBu2uYAl6U,58678
|
184
184
|
lionagi/session/session.py,sha256=A2PCG1BD1noMLtCJD3C_H7r-0GUQ_ru2szOhF1pOCtY,8976
|
185
|
-
lionagi-0.7.
|
186
|
-
lionagi-0.7.
|
187
|
-
lionagi-0.7.
|
188
|
-
lionagi-0.7.
|
185
|
+
lionagi-0.7.2.dist-info/METADATA,sha256=Nr0nOloMvQhDTeDaFm5E538OuaH566Y_kuleyBbxfvU,22776
|
186
|
+
lionagi-0.7.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
187
|
+
lionagi-0.7.2.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
|
188
|
+
lionagi-0.7.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|