waldiez 0.3.1__py3-none-any.whl → 0.3.3__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.
Potentially problematic release.
This version of waldiez might be problematic. Click here for more details.
- waldiez/_version.py +1 -1
- waldiez/exporting/agent/agent_exporter.py +2 -4
- waldiez/models/flow/flow.py +10 -2
- {waldiez-0.3.1.dist-info → waldiez-0.3.3.dist-info}/METADATA +3 -3
- {waldiez-0.3.1.dist-info → waldiez-0.3.3.dist-info}/RECORD +8 -8
- {waldiez-0.3.1.dist-info → waldiez-0.3.3.dist-info}/WHEEL +0 -0
- {waldiez-0.3.1.dist-info → waldiez-0.3.3.dist-info}/entry_points.txt +0 -0
- {waldiez-0.3.1.dist-info → waldiez-0.3.3.dist-info}/licenses/LICENSE +0 -0
waldiez/_version.py
CHANGED
|
@@ -56,10 +56,8 @@ class AgentExporter(BaseExporter, ExporterMixin):
|
|
|
56
56
|
The model ids to names mapping.
|
|
57
57
|
skill_names : Dict[str, str]
|
|
58
58
|
The skill ids to names mapping.
|
|
59
|
-
|
|
60
|
-
All the chats
|
|
61
|
-
chat_names : Dict[str, str]
|
|
62
|
-
The chat ids to names mapping.
|
|
59
|
+
chats : Tuple[List[WaldiezChat], Dict[str, str]]
|
|
60
|
+
All the chats and the chat ids to names mapping.
|
|
63
61
|
is_async : bool
|
|
64
62
|
Whether the whole flow is async.
|
|
65
63
|
for_notebook : bool
|
waldiez/models/flow/flow.py
CHANGED
|
@@ -237,11 +237,19 @@ class WaldiezFlow(WaldiezBase):
|
|
|
237
237
|
):
|
|
238
238
|
return [(chat, source, target)]
|
|
239
239
|
if source.agent_type == "swarm" and target.agent_type == "swarm":
|
|
240
|
-
if isinstance(source, WaldiezSwarmAgent) and source.is_initial:
|
|
241
|
-
return [(chat, source, target)]
|
|
242
240
|
valid_chats.append(chat)
|
|
243
241
|
if not valid_chats:
|
|
244
242
|
return []
|
|
243
|
+
for valid_chat in valid_chats:
|
|
244
|
+
source = self.get_agent_by_id(valid_chat.source)
|
|
245
|
+
if isinstance(source, WaldiezSwarmAgent) and source.is_initial:
|
|
246
|
+
return [
|
|
247
|
+
(
|
|
248
|
+
valid_chat,
|
|
249
|
+
source,
|
|
250
|
+
self.get_agent_by_id(valid_chat.target),
|
|
251
|
+
)
|
|
252
|
+
]
|
|
245
253
|
first_chat: Optional[WaldiezChat] = None
|
|
246
254
|
# first check the order
|
|
247
255
|
by_order = sorted(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: waldiez
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: waldiez
|
|
5
5
|
Project-URL: homepage, https://waldiez.github.io/waldiez/python
|
|
6
6
|
Project-URL: repository, https://github.com/waldiez/python.git
|
|
@@ -73,9 +73,9 @@ Requires-Dist: mkdocstrings-python==1.13.0; extra == 'docs'
|
|
|
73
73
|
Requires-Dist: mkdocstrings[crystal,python]==0.27.0; extra == 'docs'
|
|
74
74
|
Provides-Extra: jupyter
|
|
75
75
|
Requires-Dist: jupyterlab>=4.3.0; extra == 'jupyter'
|
|
76
|
-
Requires-Dist: waldiez-jupyter==0.3.
|
|
76
|
+
Requires-Dist: waldiez-jupyter==0.3.3; extra == 'jupyter'
|
|
77
77
|
Provides-Extra: studio
|
|
78
|
-
Requires-Dist: waldiez-studio==0.3.
|
|
78
|
+
Requires-Dist: waldiez-studio==0.3.3; extra == 'studio'
|
|
79
79
|
Provides-Extra: test
|
|
80
80
|
Requires-Dist: pytest-asyncio==0.25.2; extra == 'test'
|
|
81
81
|
Requires-Dist: pytest-cov==6.0.0; extra == 'test'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
waldiez/__init__.py,sha256=WrnR3f-FQ0mK2orSfyApwRs9UGfq1nYiohQTyLrX_hs,2149
|
|
2
2
|
waldiez/__main__.py,sha256=0dYzNrQbovRwQQvmZC6_1FDR1m71SUIOkTleO5tBnBw,203
|
|
3
|
-
waldiez/_version.py,sha256=
|
|
3
|
+
waldiez/_version.py,sha256=CyMN539kB8LnRXcUgDMXLFAZiap2g-3YrgLFQfYH6Wk,155
|
|
4
4
|
waldiez/cli.py,sha256=SUdYLwNfG2TRnZr_E2gZ6SGczSQMIUdeIDzSZEYaw7o,6947
|
|
5
5
|
waldiez/cli_extras.py,sha256=cnMJnznNgTjtI_qKAlgLOzXaJSuzx7D_XNDzC1faKzw,3018
|
|
6
6
|
waldiez/conflict_checker.py,sha256=oF7PT2bdMGeIoj13cE2F6hn5dxhMhOutq34z8hCkZYg,976
|
|
@@ -9,7 +9,7 @@ waldiez/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
9
9
|
waldiez/runner.py,sha256=5J8bAdh2XaovM6xA8OW2jtfHXckjVUIE_9GtHn1UqzI,11038
|
|
10
10
|
waldiez/exporting/__init__.py,sha256=7dMoWMJ-Hv48ZmM4m7QaqYvZ4G1o9uDJnklI6EU4r50,345
|
|
11
11
|
waldiez/exporting/agent/__init__.py,sha256=GOgri16QNICpx3YNZPzVn_KYVxuQACYKQyazhJNtYK0,188
|
|
12
|
-
waldiez/exporting/agent/agent_exporter.py,sha256=
|
|
12
|
+
waldiez/exporting/agent/agent_exporter.py,sha256=Xg6XY7fmJbBrvX_s3YS8ABIxM368jNYQTCGUnMuvcao,9785
|
|
13
13
|
waldiez/exporting/agent/utils/__init__.py,sha256=G0iJgfI8tKrNufawPmG2um-hijUS4TZEn7Xwk2DkC88,825
|
|
14
14
|
waldiez/exporting/agent/utils/agent_class_name.py,sha256=V3EB5VhMT5xDC0u92YB7_p_nEL6rO1Jbp63DKG60kVY,927
|
|
15
15
|
waldiez/exporting/agent/utils/agent_imports.py,sha256=X8aX0ThYmBVYzqzAdKX1U4IttqneJuYANi3eAj7mGiE,1549
|
|
@@ -105,7 +105,7 @@ waldiez/models/common/__init__.py,sha256=OpQTQ-wNA56hZTKZfBSj4joKRzX5n2uNGhL1jKo
|
|
|
105
105
|
waldiez/models/common/base.py,sha256=SwnnuFTJ0C3PfBoRilqE0uZv3j5aelw7-s-79KcxJNA,1840
|
|
106
106
|
waldiez/models/common/method_utils.py,sha256=jT6Cpu_XskroLlMwLGCY4HNptQtnccvMOa2CwRwT6xc,6944
|
|
107
107
|
waldiez/models/flow/__init__.py,sha256=3UdwoUZdkLr6G78tNTyaijoiwvmHZ-N0tY3G7S_xbRs,255
|
|
108
|
-
waldiez/models/flow/flow.py,sha256=
|
|
108
|
+
waldiez/models/flow/flow.py,sha256=kM8K7dl8wZIP0GEryELC2yZ0t0blEFFkNOvx7VEMW4o,14700
|
|
109
109
|
waldiez/models/flow/flow_data.py,sha256=5Mn27AMzd44rrcg2Toa6wZC4cX5oCOsCUhuoE0giQsE,4949
|
|
110
110
|
waldiez/models/flow/utils.py,sha256=Bd8dWYlCenuU4VeusAL_qxkXzYSuxl9e3a7FhHs6UCY,5435
|
|
111
111
|
waldiez/models/model/__init__.py,sha256=1cOyDThhZV8o7pZN1DaIhh12jWty_YMegoQ4Jg7uKyI,383
|
|
@@ -118,8 +118,8 @@ waldiez/running/__init__.py,sha256=hptO_sDFv0Alg-YJmLN-A49SeQ4YyWUMP8nBH21qO-o,6
|
|
|
118
118
|
waldiez/running/environment.py,sha256=8IgEmm1MJrfwOlxyMAdoYtH-KRmLtlVROOWzlMtSbps,2268
|
|
119
119
|
waldiez/running/gen_seq_diagram.py,sha256=y9O5HFe25YvfNc78MrWTwaSfFQEDu6-buq7lja8PYgg,5639
|
|
120
120
|
waldiez/running/running.py,sha256=CpgiK9E-4T7ruVwB2baSv6qTipgTcdR9IulE8db5V4o,8561
|
|
121
|
-
waldiez-0.3.
|
|
122
|
-
waldiez-0.3.
|
|
123
|
-
waldiez-0.3.
|
|
124
|
-
waldiez-0.3.
|
|
125
|
-
waldiez-0.3.
|
|
121
|
+
waldiez-0.3.3.dist-info/METADATA,sha256=4PiL-W28dG9VdC-8O2ZpwK4Plxty8lcWE7HIzVIflLg,9026
|
|
122
|
+
waldiez-0.3.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
123
|
+
waldiez-0.3.3.dist-info/entry_points.txt,sha256=9MQ8Y1rD19CU7UwjNPwoyTRpQsPs2QimjrtwTD0bD6k,44
|
|
124
|
+
waldiez-0.3.3.dist-info/licenses/LICENSE,sha256=bWinEG_ynCS8eSj1vhAmYDWwYODhBOF0AUEjOgZ3kmU,11355
|
|
125
|
+
waldiez-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|