swarms 7.9.5__py3-none-any.whl → 7.9.6__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/structs/agent.py +1 -13
- swarms/utils/formatter.py +4 -4
- {swarms-7.9.5.dist-info → swarms-7.9.6.dist-info}/METADATA +1 -1
- {swarms-7.9.5.dist-info → swarms-7.9.6.dist-info}/RECORD +7 -7
- {swarms-7.9.5.dist-info → swarms-7.9.6.dist-info}/LICENSE +0 -0
- {swarms-7.9.5.dist-info → swarms-7.9.6.dist-info}/WHEEL +0 -0
- {swarms-7.9.5.dist-info → swarms-7.9.6.dist-info}/entry_points.txt +0 -0
swarms/structs/agent.py
CHANGED
@@ -1359,8 +1359,6 @@ class Agent:
|
|
1359
1359
|
f"Structured Output - Attempting Function Call Execution [{time.strftime('%H:%M:%S')}] \n\n {format_data_structure(response)} ",
|
1360
1360
|
loop_count,
|
1361
1361
|
)
|
1362
|
-
elif self.streaming_on is True:
|
1363
|
-
pass
|
1364
1362
|
else:
|
1365
1363
|
self.pretty_print(
|
1366
1364
|
response, loop_count
|
@@ -3011,14 +3009,10 @@ class Agent:
|
|
3011
3009
|
|
3012
3010
|
def pretty_print(self, response: str, loop_count: int):
|
3013
3011
|
"""Print the response in a formatted panel"""
|
3014
|
-
# Skip printing if streaming is already handling output
|
3015
|
-
if self.streaming_on is True:
|
3016
|
-
return
|
3017
|
-
|
3018
3012
|
# Handle None response
|
3019
3013
|
if response is None:
|
3020
3014
|
response = "No response generated"
|
3021
|
-
|
3015
|
+
|
3022
3016
|
if self.print_on:
|
3023
3017
|
formatter.print_panel(
|
3024
3018
|
response,
|
@@ -3426,9 +3420,3 @@ class Agent:
|
|
3426
3420
|
f"Full traceback: {traceback.format_exc()}. "
|
3427
3421
|
f"Attempting to retry tool execution with 3 attempts"
|
3428
3422
|
)
|
3429
|
-
retry_function(
|
3430
|
-
self.execute_tools,
|
3431
|
-
response=response,
|
3432
|
-
loop_count=loop_count,
|
3433
|
-
max_retries=self.tool_retry_attempts,
|
3434
|
-
)
|
swarms/utils/formatter.py
CHANGED
@@ -128,7 +128,7 @@ class Formatter:
|
|
128
128
|
style: str = "bold blue",
|
129
129
|
) -> None:
|
130
130
|
"""Print content in a panel with a title and style.
|
131
|
-
|
131
|
+
|
132
132
|
Args:
|
133
133
|
content (str): The content to display in the panel
|
134
134
|
title (str): The title of the panel
|
@@ -137,14 +137,14 @@ class Formatter:
|
|
137
137
|
# Handle None content
|
138
138
|
if content is None:
|
139
139
|
content = "No content to display"
|
140
|
-
|
140
|
+
|
141
141
|
# Convert non-string content to string
|
142
142
|
if not isinstance(content, str):
|
143
143
|
content = str(content)
|
144
|
-
|
144
|
+
|
145
145
|
try:
|
146
146
|
self._print_panel(content, title, style)
|
147
|
-
except Exception
|
147
|
+
except Exception:
|
148
148
|
# Fallback to basic printing if panel fails
|
149
149
|
print(f"\n{title}:")
|
150
150
|
print(content)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: swarms
|
3
|
-
Version: 7.9.
|
3
|
+
Version: 7.9.6
|
4
4
|
Summary: Swarms - TGSC
|
5
5
|
License: MIT
|
6
6
|
Keywords: artificial intelligence,deep learning,optimizers,Prompt Engineering,swarms,agents,llms,transformers,multi-agent,swarms of agents,Enterprise-Grade Agents,Production-Grade Agents,Agents,Multi-Grade-Agents,Swarms,Transformers,LLMs,Prompt Engineering,Agents,Generative Agents,Generative AI,Agent Marketplace,Agent Store,quant,finance,algorithmic trading,portfolio optimization,risk management,financial modeling,machine learning for finance,natural language processing for finance
|
@@ -106,7 +106,7 @@ swarms/schemas/mcp_schemas.py,sha256=XZJ4HyiY_cv8Gvj-53ddjzXuqT9hBU2f0cHbhIKs_jY
|
|
106
106
|
swarms/schemas/swarms_api_schemas.py,sha256=uKqleW_7hNpqHi06yoba9jS2i9yzZp-SBV944MnkN68,6233
|
107
107
|
swarms/schemas/tool_schema_base_model.py,sha256=0biTGIoibsPPP3fOrkC6WvNU5vXaalyccVKC1fpO_eg,1409
|
108
108
|
swarms/structs/__init__.py,sha256=8_CG2mct9cS-TQlpKlC5-240kSjmoooy9bfYXRuB9oQ,4552
|
109
|
-
swarms/structs/agent.py,sha256=
|
109
|
+
swarms/structs/agent.py,sha256=XFLzI5UThDsod3C67GUxKMnmNpXBUmjAxA7GJTwPHUI,126260
|
110
110
|
swarms/structs/agent_builder.py,sha256=tYNpfO4_8cgfMHfgA5DAOWffHnt70p6CLt59esqfVCY,12133
|
111
111
|
swarms/structs/agent_rag_handler.py,sha256=g17YRrNmf16TLvyFCCcsitVk3d-QNZmck_XYmjSN_YM,21372
|
112
112
|
swarms/structs/agent_registry.py,sha256=il507cO1NF-d4ChyANVLuWrN8bXsEAi8_7bLJ_sTU6A,12112
|
@@ -192,7 +192,7 @@ swarms/utils/check_all_model_max_tokens.py,sha256=ZHIKlrU-L-OM2IJAbYkCoVyBKe2d0J
|
|
192
192
|
swarms/utils/data_to_text.py,sha256=1PUoWokylp7MOrGNk1cmO3cJlfskdAIiImGk9ECwsKU,3427
|
193
193
|
swarms/utils/disable_logging.py,sha256=KKPKQVfQqLPFgj03uveOoyeHOTlfEJt-yfLc3SA53Rk,2470
|
194
194
|
swarms/utils/file_processing.py,sha256=QjQCIPTcwicQlfy656BXBYpIzMR0s2343E7ftnok5Uo,4865
|
195
|
-
swarms/utils/formatter.py,sha256=
|
195
|
+
swarms/utils/formatter.py,sha256=vJSuW4F69COuyuKYP-M_3EpAUMWnI8iGuFRdPe1TYQo,15227
|
196
196
|
swarms/utils/function_caller_model.py,sha256=ZfgCMzOizNnuZipYLclTziECNHszH9p8RQcUq7VNr4Q,4156
|
197
197
|
swarms/utils/generate_keys.py,sha256=o5zp_8rwu5sgQnItWS1xAuIIRIkahwm02qy1vsV6DSQ,997
|
198
198
|
swarms/utils/history_output_formatter.py,sha256=whjfk4N5SjMo3mtrafNny_alNiAhQcGza3l1dCyg7Nw,1388
|
@@ -208,8 +208,8 @@ swarms/utils/str_to_dict.py,sha256=T3Jsdjz87WIlkSo7jAW6BB80sv0Ns49WT1qXlOrdEoE,8
|
|
208
208
|
swarms/utils/try_except_wrapper.py,sha256=uvDZDZJcH986EF0Ej6zZBLcqHJ58NHizPsAH5olrE7Q,3919
|
209
209
|
swarms/utils/vllm_wrapper.py,sha256=sNkm4EbeMrqqmHidnvq5zTnofQAaARy3HIrNBu11lKs,5072
|
210
210
|
swarms/utils/xml_utils.py,sha256=D4nEdo1nkHqSoTKrWylXBXjcHFhGaOYvvfGNQQoYV5o,2514
|
211
|
-
swarms-7.9.
|
212
|
-
swarms-7.9.
|
213
|
-
swarms-7.9.
|
214
|
-
swarms-7.9.
|
215
|
-
swarms-7.9.
|
211
|
+
swarms-7.9.6.dist-info/LICENSE,sha256=jwRtEmTWjLrEsvFB6QFdYs2cEeZPRMdj-UMOFkPF8_0,11363
|
212
|
+
swarms-7.9.6.dist-info/METADATA,sha256=2WjpqWQuTllW22h5vMVctltb3LDHObC8U9PFVCCQJ-w,32138
|
213
|
+
swarms-7.9.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
214
|
+
swarms-7.9.6.dist-info/entry_points.txt,sha256=2K0rTtfO1X1WaO-waJlXIKw5Voa_EpAL_yU0HXE2Jgc,47
|
215
|
+
swarms-7.9.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|