swarms 7.7.4__py3-none-any.whl → 7.7.5__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.
- swarms/communication/__init__.py +0 -0
- swarms/communication/duckdb_wrap.py +1037 -0
- swarms/communication/sqlite_wrap.py +813 -0
- swarms/structs/hybrid_hiearchical_peer_swarm.py +19 -2
- swarms/structs/swarm_arange.py +2 -2
- {swarms-7.7.4.dist-info → swarms-7.7.5.dist-info}/METADATA +1 -1
- {swarms-7.7.4.dist-info → swarms-7.7.5.dist-info}/RECORD +10 -7
- {swarms-7.7.4.dist-info → swarms-7.7.5.dist-info}/LICENSE +0 -0
- {swarms-7.7.4.dist-info → swarms-7.7.5.dist-info}/WHEEL +0 -0
- {swarms-7.7.4.dist-info → swarms-7.7.5.dist-info}/entry_points.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import os
|
2
|
-
from typing import List
|
2
|
+
from typing import List, Literal
|
3
3
|
from swarms.structs.agent import Agent
|
4
4
|
from swarms.structs.conversation import Conversation
|
5
5
|
from swarms.structs.multi_agent_exec import get_swarms_info
|
@@ -10,6 +10,23 @@ from swarms.utils.history_output_formatter import (
|
|
10
10
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
11
11
|
from typing import Union, Callable
|
12
12
|
|
13
|
+
|
14
|
+
HistoryOutputType = Literal[
|
15
|
+
"list",
|
16
|
+
"dict",
|
17
|
+
"dictionary",
|
18
|
+
"string",
|
19
|
+
"str",
|
20
|
+
"final",
|
21
|
+
"last",
|
22
|
+
"json",
|
23
|
+
"all",
|
24
|
+
"yaml",
|
25
|
+
# "dict-final",
|
26
|
+
"dict-all-except-first",
|
27
|
+
"str-all-except-first",
|
28
|
+
]
|
29
|
+
|
13
30
|
tools = [
|
14
31
|
{
|
15
32
|
"type": "function",
|
@@ -105,7 +122,7 @@ class HybridHierarchicalClusterSwarm:
|
|
105
122
|
description: str = "A swarm that uses a hybrid hierarchical-peer model to solve complex tasks.",
|
106
123
|
swarms: List[Union[SwarmRouter, Callable]] = [],
|
107
124
|
max_loops: int = 1,
|
108
|
-
output_type:
|
125
|
+
output_type: HistoryOutputType = "list",
|
109
126
|
router_agent_model_name: str = "gpt-4o-mini",
|
110
127
|
*args,
|
111
128
|
**kwargs,
|
swarms/structs/swarm_arange.py
CHANGED
@@ -6,7 +6,7 @@ from swarms.utils.any_to_str import any_to_str
|
|
6
6
|
from swarms.utils.loguru_logger import initialize_logger
|
7
7
|
from swarms.structs.conversation import Conversation
|
8
8
|
from swarms.utils.history_output_formatter import (
|
9
|
-
|
9
|
+
HistoryOutputType,
|
10
10
|
)
|
11
11
|
|
12
12
|
logger = initialize_logger(log_folder="swarm_arange")
|
@@ -58,7 +58,7 @@ class SwarmRearrange:
|
|
58
58
|
Callable[[str], str]
|
59
59
|
] = None,
|
60
60
|
return_json: bool = False,
|
61
|
-
output_type:
|
61
|
+
output_type: HistoryOutputType = "dict-all-except-first",
|
62
62
|
*args,
|
63
63
|
**kwargs,
|
64
64
|
):
|
@@ -21,6 +21,9 @@ swarms/cli/main.py,sha256=T9YsCrNIzvbQA8h5qlke-TbRP498Wu6R_KkAxRiabvs,15319
|
|
21
21
|
swarms/cli/onboarding_process.py,sha256=3-2LKoLhjnaPbX9iiasqXPZZpqmwm-ZrXawH88M4BIU,6940
|
22
22
|
swarms/client/__init__.py,sha256=VASeCEYoZskTU3NOw5tQ22uc2_7gyK0oLsxG_WB20ys,268
|
23
23
|
swarms/client/main.py,sha256=f-RpvfKfRK2AaapkyPN2ihXJvIGN4JWB_A7pJu4WyiU,13735
|
24
|
+
swarms/communication/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
|
+
swarms/communication/duckdb_wrap.py,sha256=CFJ3OlIlBLT6y68I3FB_74yikyHqFAK0GNs14g383LM,33821
|
26
|
+
swarms/communication/sqlite_wrap.py,sha256=Yl8gnaHL685GwJc6eHAqJ5nY-xn_nZHyn4i7rhUj9kQ,26236
|
24
27
|
swarms/prompts/__init__.py,sha256=ZFcghAs4b0Rsjcc_DIFssiztZub5tJ66rxmJD2_tXpQ,747
|
25
28
|
swarms/prompts/accountant_swarm_prompts.py,sha256=swceN1B0fZCOedd3-y3gjNOHDmR-3H5YK17ytp7tTDM,11320
|
26
29
|
swarms/prompts/ag_prompt.py,sha256=mMeqC84SMNrCjQcBeejroSXLuF_wWrVRebHU1MrEQko,4577
|
@@ -102,7 +105,7 @@ swarms/structs/dynamic_conversational_swarm.py,sha256=n_d1jDCzBwiGb0QjJpW_MlXxqE
|
|
102
105
|
swarms/structs/graph_workflow.py,sha256=TAaUG_J3898hhghPOp0WEAV3Zf0in6s48ZSVbSTX-vQ,8629
|
103
106
|
swarms/structs/groupchat.py,sha256=CivOw0QlpjugG8MIu5uGGVoA_0_oY6sBg0XlA08gViQ,15691
|
104
107
|
swarms/structs/hiearchical_swarm.py,sha256=2x3InS4HJg4T9Y195l_ANTGu6DYcllqCdJcR3v5Xuro,33402
|
105
|
-
swarms/structs/hybrid_hiearchical_peer_swarm.py,sha256=
|
108
|
+
swarms/structs/hybrid_hiearchical_peer_swarm.py,sha256=D1iBtNNee_mxPoOWS5WGTqcci5FQKtt38mW-J42GvfM,9494
|
106
109
|
swarms/structs/ma_utils.py,sha256=FxMNCmeSpYEczZOxK0gpgn5a50CJTc1USmRHCqvxP54,3091
|
107
110
|
swarms/structs/majority_voting.py,sha256=F_t_MOC3YCRyMw5N6qKdFThpaXZxwixRw592Ku5Uhto,10122
|
108
111
|
swarms/structs/malt.py,sha256=0ZOuLfOzaJ4vAVOM6J1aZ3yWAiKxfMkNIBNp8pjsEqE,19392
|
@@ -122,7 +125,7 @@ swarms/structs/safe_loading.py,sha256=gmYX8G9TsvAIp6OCvREBZt5mwSFc-p-t1rSnDBfhEm
|
|
122
125
|
swarms/structs/sequential_workflow.py,sha256=5jxHP-a2CzdclSXIrVWkQKXBr01VzrgOBIexR9s8diw,8492
|
123
126
|
swarms/structs/spreadsheet_swarm.py,sha256=ToX56QJjlm_nnC3MYppvKC_NTr9Zy_orkBzfxNLdwbA,14845
|
124
127
|
swarms/structs/stopping_conditions.py,sha256=JHHwqgPoUvjX897ofW2gpPZH_cqEWmv5lDTqb2GtA6M,1382
|
125
|
-
swarms/structs/swarm_arange.py,sha256=
|
128
|
+
swarms/structs/swarm_arange.py,sha256=5ewEfL52Y4gh-a0lRjFcleHWlsCBuc5XR1nVEEGh07w,15481
|
126
129
|
swarms/structs/swarm_eval.py,sha256=148E2R2zaCmt_LZYx15nmdFjybXHiQ2CZbl6pk77jNs,11635
|
127
130
|
swarms/structs/swarm_id_generator.py,sha256=Wly7AtGM9e6VgzhYmfg8_gSOdxAdsOvWHJFK81cpQNQ,68
|
128
131
|
swarms/structs/swarm_matcher.py,sha256=E2KwHHEJxmW-UfTeMPWZ6VCmYdQ_I9_fwrfJbxD02GY,23322
|
@@ -176,8 +179,8 @@ swarms/utils/try_except_wrapper.py,sha256=appEGu9Afy3TmdkNNXUgQ9yU9lj2j0uNkIoW0J
|
|
176
179
|
swarms/utils/visualizer.py,sha256=0ylohEk62MAS6iPRaDOV03m9qo2k5J56tWlKJk_46p4,16927
|
177
180
|
swarms/utils/vllm_wrapper.py,sha256=OIGnU9Vf81vE_hul1FK-xEhChFK8fxqZX6-fhQeW22c,4987
|
178
181
|
swarms/utils/wrapper_clusterop.py,sha256=PMSCVM7ZT1vgj1D_MYAe835RR3SMLYxA-si2JS02yNQ,4220
|
179
|
-
swarms-7.7.
|
180
|
-
swarms-7.7.
|
181
|
-
swarms-7.7.
|
182
|
-
swarms-7.7.
|
183
|
-
swarms-7.7.
|
182
|
+
swarms-7.7.5.dist-info/LICENSE,sha256=jwRtEmTWjLrEsvFB6QFdYs2cEeZPRMdj-UMOFkPF8_0,11363
|
183
|
+
swarms-7.7.5.dist-info/METADATA,sha256=4upfKa3OHBekr8msGULk_k8SY28U0vpdjj3hzYi5ioQ,94905
|
184
|
+
swarms-7.7.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
185
|
+
swarms-7.7.5.dist-info/entry_points.txt,sha256=2K0rTtfO1X1WaO-waJlXIKw5Voa_EpAL_yU0HXE2Jgc,47
|
186
|
+
swarms-7.7.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|