lionagi 0.13.6__py3-none-any.whl → 0.13.7__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/_types.py CHANGED
@@ -1,4 +1,5 @@
1
1
  from .fields import *
2
+ from .models import *
2
3
  from .operations import (
3
4
  BrainstormOperation,
4
5
  ExpansionStrategy,
lionagi/fields/base.py CHANGED
@@ -135,7 +135,6 @@ class OutlineItem(HashableModel):
135
135
  class Outline(HashableModel):
136
136
  """
137
137
  A top-level outline for a document or article.
138
- Usually used in early planning stages.
139
138
  """
140
139
 
141
140
  topic: str = Field(
@@ -285,8 +285,6 @@ async def ReActStream(
285
285
  operate_kwargs["include_token_usage_to_model"] = (
286
286
  include_token_usage_to_model
287
287
  )
288
- if analysis.action_batch_size:
289
- operate_kwargs["action_batch_size"] = analysis.action_batch_size
290
288
  if irfm:
291
289
  operate_kwargs["field_models"] = operate_kwargs.get(
292
290
  "field_models", []
@@ -94,20 +94,12 @@ class ReActAnalysis(HashableModel):
94
94
  ),
95
95
  )
96
96
 
97
- action_strategy: Literal["sequential", "concurrent", "batch"] = Field(
97
+ action_strategy: Literal["sequential", "concurrent"] = Field(
98
98
  "concurrent",
99
99
  description=(
100
100
  "Specifies how to invoke the planned actions:\n"
101
101
  "'sequential' => Each action is run in order, \n"
102
102
  "'concurrent' => All actions run in parallel, \n"
103
- "'batch' => Divide actions into async batches of N (if reasonable)."
104
- ),
105
- )
106
-
107
- action_batch_size: int | None = Field(
108
- None,
109
- description=(
110
- "provide if and only if action_strategy is 'batch', this specifies the number of actions to run in parallel per batch."
111
103
  ),
112
104
  )
113
105
 
@@ -51,7 +51,6 @@ async def operate(
51
51
  action_strategy: Literal[
52
52
  "sequential", "concurrent", "batch"
53
53
  ] = "concurrent",
54
- action_batch_size: int = None,
55
54
  verbose_action: bool = False,
56
55
  field_models: list[FieldModel] = None,
57
56
  exclude_fields: list | dict | None = None,
@@ -194,8 +193,6 @@ async def operate(
194
193
  if instruct.action_strategy
195
194
  else action_kwargs.get("strategy", "concurrent")
196
195
  )
197
- if action_batch_size:
198
- action_kwargs["batch_size"] = action_batch_size
199
196
 
200
197
  action_response_models = await branch.act(
201
198
  response_model.action_requests,
lionagi/session/branch.py CHANGED
@@ -920,7 +920,6 @@ class Branch(Element, Communicatable, Relational):
920
920
  action_strategy: Literal[
921
921
  "sequential", "concurrent", "batch"
922
922
  ] = "concurrent",
923
- action_batch_size: int = None,
924
923
  verbose_action: bool = False,
925
924
  field_models: list[FieldModel] = None,
926
925
  exclude_fields: list | dict | None = None,
@@ -990,8 +989,6 @@ class Branch(Element, Communicatable, Relational):
990
989
  Additional parameters for the `branch.act()` call if tools are invoked.
991
990
  action_strategy (Literal["sequential","concurrent","batch"], optional):
992
991
  The strategy for invoking tools (default: "concurrent").
993
- action_batch_size (int, optional):
994
- The batch size for concurrent tool invocation if `action_strategy="batch"`.
995
992
  verbose_action (bool, optional):
996
993
  If `True`, logs detailed information about tool invocation.
997
994
  field_models (list[FieldModel] | None, optional):
@@ -1041,7 +1038,6 @@ class Branch(Element, Communicatable, Relational):
1041
1038
  reason=reason,
1042
1039
  action_kwargs=action_kwargs,
1043
1040
  action_strategy=action_strategy,
1044
- action_batch_size=action_batch_size,
1045
1041
  verbose_action=verbose_action,
1046
1042
  field_models=field_models,
1047
1043
  exclude_fields=exclude_fields,
@@ -42,7 +42,6 @@ Actions are invoked by providing the tool function name and the required paramet
42
42
  and choose the appropriate action strategy.
43
43
  - 'sequential': execute actions in sequence
44
44
  - 'concurrent': execute all actions concurrently
45
- - 'batch': execute all actions in batch, each batch is concurrent
46
45
 
47
46
  ---
48
47
  ## Note:
lionagi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.13.6"
1
+ __version__ = "0.13.7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lionagi
3
- Version: 0.13.6
3
+ Version: 0.13.7
4
4
  Summary: An Intelligence Operating System.
5
5
  Author-email: HaiyangLi <quantocean.li@gmail.com>, Liangbingyan Luo <llby_luo@outlook.com>
6
6
  License: Apache License
@@ -1,15 +1,15 @@
1
1
  lionagi/__init__.py,sha256=x_DLjvYZp15u2L3pjIKrUDvvdDBzf7VmrhYVzbsACjU,725
2
2
  lionagi/_class_registry.py,sha256=pfUO1DjFZIqr3OwnNMkFqL_fiEBrrf8-swkGmP_KDLE,3112
3
3
  lionagi/_errors.py,sha256=S02keQTY2IMkTvpLe00v7P7b8QNJ0PrZ1KWmQWCEQAA,500
4
- lionagi/_types.py,sha256=R5-XbcOpgqDBgwa65EQTC8irPDuLm3oGXY5t_zwpa9M,163
4
+ lionagi/_types.py,sha256=9cKKDMl0l5DLGhHzDAtnlKT2XqLv1IeynmhFYBno2_k,185
5
5
  lionagi/config.py,sha256=Dxs5FA9UCv1YX5H54qOJcPsDrIF9wFokWEPZ212eH-k,3715
6
6
  lionagi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  lionagi/settings.py,sha256=HDuKCEJCpc4HudKodBnhoQUGuTGhRHdlIFhbtf3VBtY,1633
8
8
  lionagi/utils.py,sha256=8zCdJHKbDJv2WSzAAiFnMSpvfyZb9RnmfSNaMEqdTJE,79003
9
- lionagi/version.py,sha256=riz4KLyxI3rKxqm-AbvFFuR22uDgmXnMIjs0NxKBiIE,23
9
+ lionagi/version.py,sha256=YilxH0DSMK7mdSphWpemdLgoy2nZkSlwrns9E36XZrw,23
10
10
  lionagi/fields/__init__.py,sha256=yrn9NDAM6_v73kK7aJeb-Pvqigeu8WASaV-My-6CDsc,939
11
11
  lionagi/fields/action.py,sha256=OziEpbaUeEVo34KdtbzDxXJBgkf3QLxlcKIQAfHe4O0,5791
12
- lionagi/fields/base.py,sha256=5CJc7j8kTTWzXwpYzkSAFzx4BglABfx3AElIATKB7bg,3857
12
+ lionagi/fields/base.py,sha256=mvgqxLonCROszMjnG8QWt00l-MvIr_mnGvCtaH-SQ_k,3814
13
13
  lionagi/fields/code.py,sha256=TFym51obzaSfCmeRoHZJyBtjfDI4tvl9F-1sjFc9rMw,7713
14
14
  lionagi/fields/file.py,sha256=DhQ_HE0RvTNzkvBGQHRgbMYSokDkzE8GEu814i6jw5Q,7297
15
15
  lionagi/fields/instruct.py,sha256=sMbCxEv0HQLa31JkJDmdrWWEzIfeKbcmN2hYOehz3Q0,4773
@@ -89,9 +89,9 @@ lionagi/operations/manager.py,sha256=7KD6NMWqYJHCPI2LumDRwGinF8WYKFjrr3bsNUi9xzI
89
89
  lionagi/operations/node.py,sha256=JNJpn_LUP_46F7C8DcvwAg6rzlaRKzs9RcVGQakARyU,3066
90
90
  lionagi/operations/types.py,sha256=fM8HphnbBifMzhoKKvdl3JxGCBHlEGPJEYkLWj9b7vE,704
91
91
  lionagi/operations/utils.py,sha256=b8HmpF5vRgmf6PTzg3_fZCIKMnhoGa0HCyOlX6JCz7g,1263
92
- lionagi/operations/ReAct/ReAct.py,sha256=uoJnFMoPP1kzzmgLDFNBwEbWdfGNfG37IT22N1AM-hE,13504
92
+ lionagi/operations/ReAct/ReAct.py,sha256=UzW3MClv9_w1AqrZIuATOZ9ASTb8HPD0Rlotlp0mYOg,13388
93
93
  lionagi/operations/ReAct/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
94
- lionagi/operations/ReAct/utils.py,sha256=FKb0v-1tboN17imxef9jLKWhet0Iz049eqvZCcJKNX8,4436
94
+ lionagi/operations/ReAct/utils.py,sha256=mBKii3zIxVg-l18fXUfDqGTK0h0JX_DcM2jO_YwRRu4,4117
95
95
  lionagi/operations/_act/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
96
96
  lionagi/operations/_act/act.py,sha256=LfN4UqTTHVvO1h9tqmDhVfVafVUOry4YGEivIZbmLqc,2810
97
97
  lionagi/operations/brainstorm/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
@@ -106,7 +106,7 @@ lionagi/operations/instruct/instruct.py,sha256=7pxhyP5jxwpgqjmQNb1rnGF4QAVlbMENp
106
106
  lionagi/operations/interpret/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
107
107
  lionagi/operations/interpret/interpret.py,sha256=yl1NSp2iOm3dbycVLEcnV3absnqKoubfH15v6lQgySU,1500
108
108
  lionagi/operations/operate/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
109
- lionagi/operations/operate/operate.py,sha256=cMc-n_uBPC8L8URIHHdR9N2LiwFlOiVv8yazmrFxX8g,7358
109
+ lionagi/operations/operate/operate.py,sha256=G-VGjvhKxxgQLyoxigOYcYHMOazyM1ESQMfbrM33SPM,7233
110
110
  lionagi/operations/parse/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
111
111
  lionagi/operations/parse/parse.py,sha256=xS9uIxBzHLGD-1VpBVgGUhxF-tQDkF2KLmIpErM47RQ,6661
112
112
  lionagi/operations/plan/__init__.py,sha256=yGBPll6lOqVjadbTvDLGrTlMx3FfBW-e00z7AMvg7Uo,156
@@ -193,8 +193,8 @@ lionagi/service/third_party/exa_models.py,sha256=G_hnekcy-DillPLzMoDQ8ZisVAL8Mp7
193
193
  lionagi/service/third_party/openai_models.py,sha256=sF-fQ726CnaDBgLY_r2NdPqc3GicPKhZjh5F8IfjBO0,501904
194
194
  lionagi/service/third_party/pplx_models.py,sha256=Nkm1ftESBa_NwP9ITBUNqLmAZ3Jh92aL732g_i6T8LQ,5947
195
195
  lionagi/session/__init__.py,sha256=kDypY6L3kGPnatAw7YNQAykgg-9MlIBnlhHExaXvt-c,202
196
- lionagi/session/branch.py,sha256=OzF8lftHXuI8ovS8I4iWet96XKHmJ0tA0rh7qvimw-0,69940
197
- lionagi/session/prompts.py,sha256=vLoodSB1vosCTujtU1hUWrm_OgsBAR_QZmru0yTIQ5A,3236
196
+ lionagi/session/branch.py,sha256=bMNZQhCB7s_vWCOqQ3X1w2gZ9mhkDUMf21OvJGMWOyM,69713
197
+ lionagi/session/prompts.py,sha256=GPr0jibyAAqS3awDzGC8SoCL6aWJLLCCbXY0JUuxOC0,3170
198
198
  lionagi/session/session.py,sha256=otln9YGw-YBxkeW7N2qlhFztO9PpPP-erIW86_rSAzg,10770
199
199
  lionagi/tools/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
200
200
  lionagi/tools/base.py,sha256=cld32pyjaTUdyiqZ8hNyJjWKAhcJ8RQNhgImI7R8b-E,1940
@@ -202,7 +202,7 @@ lionagi/tools/types.py,sha256=XtJLY0m-Yi_ZLWhm0KycayvqMCZd--HxfQ0x9vFUYDE,230
202
202
  lionagi/tools/file/__init__.py,sha256=5y5joOZzfFWERl75auAcNcKC3lImVJ5ZZGvvHZUFCJM,112
203
203
  lionagi/tools/file/reader.py,sha256=0TdnfVGVCKuM58MmGM-NyVjhU9BFoitkNYEepdc0z_Y,9529
204
204
  lionagi/tools/memory/tools.py,sha256=zTGBenVsF8Wuh303kWntmQSGlAFKonHNdh5ePuQ26KE,15948
205
- lionagi-0.13.6.dist-info/METADATA,sha256=ENE6dEOAAy0IbJkdVVgryZ8v-ySobfMqzgdsZguQsJE,20818
206
- lionagi-0.13.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
207
- lionagi-0.13.6.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
208
- lionagi-0.13.6.dist-info/RECORD,,
205
+ lionagi-0.13.7.dist-info/METADATA,sha256=T36rPnR5fYVnSIh2kR6NbYLgzIjtKNvtwR3knFT9fs0,20818
206
+ lionagi-0.13.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
207
+ lionagi-0.13.7.dist-info/licenses/LICENSE,sha256=VXFWsdoN5AAknBCgFqQNgPWYx7OPp-PFEP961zGdOjc,11288
208
+ lionagi-0.13.7.dist-info/RECORD,,