lionagi 0.7.0__py3-none-any.whl → 0.7.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. lionagi/operations/ReAct/ReAct.py +2 -2
  2. lionagi/operations/communicate/communicate.py +0 -59
  3. lionagi/operations/interpret/interpret.py +1 -2
  4. lionagi/operations/operate/operate.py +10 -5
  5. lionagi/operations/parse/parse.py +0 -36
  6. lionagi/operations/plan/plan.py +3 -3
  7. lionagi/operatives/action/manager.py +105 -82
  8. lionagi/operatives/action/request_response_model.py +31 -0
  9. lionagi/operatives/action/tool.py +50 -20
  10. lionagi/protocols/_concepts.py +1 -1
  11. lionagi/protocols/adapters/adapter.py +25 -0
  12. lionagi/protocols/adapters/json_adapter.py +107 -27
  13. lionagi/protocols/adapters/pandas_/csv_adapter.py +55 -11
  14. lionagi/protocols/adapters/pandas_/excel_adapter.py +52 -10
  15. lionagi/protocols/adapters/pandas_/pd_dataframe_adapter.py +54 -4
  16. lionagi/protocols/adapters/pandas_/pd_series_adapter.py +40 -0
  17. lionagi/protocols/generic/element.py +1 -1
  18. lionagi/protocols/generic/pile.py +5 -8
  19. lionagi/protocols/graph/edge.py +1 -1
  20. lionagi/protocols/graph/graph.py +16 -8
  21. lionagi/protocols/graph/node.py +1 -1
  22. lionagi/protocols/mail/exchange.py +126 -15
  23. lionagi/protocols/mail/mail.py +33 -0
  24. lionagi/protocols/mail/mailbox.py +62 -0
  25. lionagi/protocols/mail/manager.py +97 -41
  26. lionagi/protocols/mail/package.py +57 -3
  27. lionagi/protocols/messages/action_request.py +77 -26
  28. lionagi/protocols/messages/action_response.py +55 -26
  29. lionagi/protocols/messages/assistant_response.py +50 -15
  30. lionagi/protocols/messages/base.py +36 -0
  31. lionagi/protocols/messages/instruction.py +175 -145
  32. lionagi/protocols/messages/manager.py +152 -56
  33. lionagi/protocols/messages/message.py +61 -25
  34. lionagi/protocols/messages/system.py +54 -19
  35. lionagi/service/imodel.py +24 -0
  36. lionagi/session/branch.py +40 -32
  37. lionagi/utils.py +1 -0
  38. lionagi/version.py +1 -1
  39. {lionagi-0.7.0.dist-info → lionagi-0.7.1.dist-info}/METADATA +1 -1
  40. {lionagi-0.7.0.dist-info → lionagi-0.7.1.dist-info}/RECORD +42 -42
  41. {lionagi-0.7.0.dist-info → lionagi-0.7.1.dist-info}/WHEEL +0 -0
  42. {lionagi-0.7.0.dist-info → lionagi-0.7.1.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
- Format system message content with optional datetime information.
27
+ Insert optional datetime string into the system message content.
23
28
 
24
29
  Args:
25
- system_datetime: Flag or string for datetime inclusion
26
- system_message: The system message content
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
- Note: Formatted system content
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
- Create a new system message.
73
+ Construct a system message with optional datetime annotation.
62
74
 
63
75
  Args:
64
- system_message: The system message content
65
- system_datetime: Optional datetime flag or string
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: The new system message
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
- params["role"] = MessageRole.SYSTEM
83
- params["content"] = content
84
- params["sender"] = sender or MessageRole.SYSTEM
85
- params["recipient"] = recipient or MessageRole.ASSISTANT
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
- Update the system message components.
125
+ Adjust fields of this system message.
102
126
 
103
127
  Args:
104
- system: New system message content
105
- sender: New sender
106
- recipient: New recipient
107
- system_datetime: New datetime flag or string
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
- - 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`).
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
- 1. Storing and organizing messages, including system instructions, user instructions, and model responses.
72
- 2. Handling asynchronous or synchronous execution of LLM calls and tool invocations.
73
- 3. Providing a consistent interface for “operate,” “chat,” “communicate,” “parse,” etc.
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
- - Messages
542
- - Logs
543
- - Chat/Parse models
544
- - System message
545
- - LogManager config
546
- - Metadata
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 appended to the instruction.
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.communicate()` behind the scenes with a system prompt
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.0"
1
+ __version__ = "0.7.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lionagi
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: An AGentic Intelligence Operating System.
5
5
  Author-email: HaiyangLi <quantocean.li@gmail.com>
6
6
  License: Apache License
@@ -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=hBlGmi8Px_ng3v4_D_k8xNpW3X93u01930lkZIHUQ-Y,73019
6
- lionagi/version.py,sha256=RaANGbRu5e-vehwXI1-Qe2ggPPfs1TQaZj072JdbLk4,22
5
+ lionagi/utils.py,sha256=nwbr9mDOmmLmf5wq4sTZieCbu74GwHcXYrNjFV4-4LQ,73096
6
+ lionagi/version.py,sha256=2KJZDSMOG7KS82AxYOrZ4ZihYxX0wjfUjDsIZh3L024,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,7 +46,7 @@ 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=NH8P2urJRk7WJrL7QbRB1J7PafQOb6Ef5b-k4w0JQbs,3945
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
@@ -57,17 +57,17 @@ lionagi/operations/brainstorm/prompt.py,sha256=f-Eh6pO606dT2TrX9BFv_einRDpYwFi6G
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=ZOW-jrPXb8Tt2NCy53yYMmndNZxhY1vruebQB7_wV5E,5660
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=3VrPe01RnZhsdtQlhG8xNno2jojOq1O9ZfJwyIH2FWk,1118
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=4Z6rQmaylI_ZeNPIviz5fsDD-NFlmbcK5nqQ8z2Sasg,6670
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=-MGdQTV8N0KQsj_ec08P0kd_55ubpOaH_v5VlSHse54,4575
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=Uxysob3evbjhXWS_wseO3Mb_A90p1wk3ralJ17rHFCk,15333
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=N0M4pUuxh51yelNzad1YuDcsNPgVmgLMD0JaWvNlIHI,7840
85
- lionagi/operatives/action/request_response_model.py,sha256=7X_ZkcgmQ0D77qyP8_39RdEAKASCjEPWH4ey83jIUKc,2326
86
- lionagi/operatives/action/tool.py,sha256=fUwlzmi6kuuwHU6xA8Soo_bWOgD-I7TBLtJ-WJ1OBLk,4277
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=aIV3cIuKxRcEFdROemlFR6mMAwqiYv-rjkZQ4rHBfXo,1554
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=CyAZ4IR6S4FSmKMk_3YzyE1Ny8TJjeYc4h1Z710WL6M,2417
121
- lionagi/protocols/adapters/json_adapter.py,sha256=Jl0pyu2r-vZ5PVfqBzp3eAl9no9MQwg2ln5ty3UDI4s,2337
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=iKBX1XXRh85O4595pvxKwxv5A-80OYBhzQoaAeF6MgI,1307
125
- lionagi/protocols/adapters/pandas_/excel_adapter.py,sha256=XoPD16Kus6lPNUEsy8JZDi5JMlwSsB6VVOQU3QIOoIs,1356
126
- lionagi/protocols/adapters/pandas_/pd_dataframe_adapter.py,sha256=3JQFTN7xTovPet98cOxx2mCq1O7OXZnXZEZv6m06dtc,908
127
- lionagi/protocols/adapters/pandas_/pd_series_adapter.py,sha256=f5mj4HSL6G1R02RaRRxQ06bfxble19da8BtH3WD889M,434
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=Pi-YHinDDab7sIYNo4Caj-gJGBidcIAEN1Bpl1D100Q,14161
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=kXzN9ZHmmR__tOItwvx9xcB9IDxJYYHIkHOtDX0wsFE,31509
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=LOESNQc3aVNKXZrr5ZrRCK5biTWkyxGtTQ7GxJFyCx8,5221
137
- lionagi/protocols/graph/graph.py,sha256=bRlZot_6eN4K3CYxgFnfehnQHDGJTQ3OPqITaz8ETiU,10055
138
- lionagi/protocols/graph/node.py,sha256=5VStUHSV0Qjv6DtwJPCzod2stveixnsErJR09uLLYhc,3773
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=bT-JUU9CXDdUn6GlAjB1Pc4KD7J8Ncm7s-xbmFKI45g,4066
141
- lionagi/protocols/mail/mail.py,sha256=4O4R0ak7dFar80wjj1DK64SPgRhYAR7qKjv_tSDbkXA,625
142
- lionagi/protocols/mail/mailbox.py,sha256=lOHi74714hTd22nH9WxXcWD1DmIohj_H4NZsxbe6LD4,1297
143
- lionagi/protocols/mail/manager.py,sha256=hQ63lZIdmx4L0t2ofhnRHjobA-Bi0uuCNyd0yhwldhE,5617
144
- lionagi/protocols/mail/package.py,sha256=qjLzvSyZ3R4AQg2nUcF5j8h-3ggWS22prxYtSPPP0PI,1409
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=PpuB1UQ_b0Y1V5K8fQLX7-X4ULyb9RYOxUIyLpk7UGg,5010
147
- lionagi/protocols/messages/action_response.py,sha256=24p8ZBSYuckvYlySGoR2U7Au6ZYKtDVEI8owv5fqzDg,3818
148
- lionagi/protocols/messages/assistant_response.py,sha256=yg0FHttHuVMX1DIAAHpXSVDWmFh2W6sSqH1E8H8Nuro,4992
149
- lionagi/protocols/messages/base.py,sha256=6eAACK_b7pvjCcEswxm9FHqMXNOBx6r8cnIP_jUDBtQ,1567
150
- lionagi/protocols/messages/instruction.py,sha256=gz5d0yMURN_TaGwtvKFyg4miOEg8TZPAF7rC1ts57kM,18138
151
- lionagi/protocols/messages/manager.py,sha256=TFbgnkeBvsFaWXR01o8PsJ4SGzlOa6dnDOWJunVp8Lo,13762
152
- lionagi/protocols/messages/message.py,sha256=mhQwFBxaNE71KUWvU5tkLxAqaLwTHH3DvWbjLXrTf9A,6686
153
- lionagi/protocols/messages/system.py,sha256=kPmUMGIarOBlbD6f-QCS-ol4OfFI6HOo1nRBQGJy-Wo,3393
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=-FudX8C_wmc7ByUv-pILrybtQd4E2gfE51C5l0IR0ho,10815
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=Fhuv_JM4glBw8BEiOksQmehHPAyxe4beQ2QBIJduypA,57727
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.0.dist-info/METADATA,sha256=GScf641-hvSkJb8TJTrZgPYDhFs012qBnJhfTItnGbo,22776
186
- lionagi-0.7.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
187
- lionagi-0.7.0.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
188
- lionagi-0.7.0.dist-info/RECORD,,
185
+ lionagi-0.7.1.dist-info/METADATA,sha256=fUR_5--oNQ4nxNsjRh9tc6Yh6TYxCsRFa6lmlgsQMNw,22776
186
+ lionagi-0.7.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
187
+ lionagi-0.7.1.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
188
+ lionagi-0.7.1.dist-info/RECORD,,