waldiez 0.2.1__tar.gz → 0.3.0__tar.gz

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.

Files changed (152) hide show
  1. {waldiez-0.2.1 → waldiez-0.3.0}/.gitignore +2 -0
  2. waldiez-0.3.0/LICENSE +201 -0
  3. {waldiez-0.2.1 → waldiez-0.3.0}/PKG-INFO +36 -30
  4. {waldiez-0.2.1 → waldiez-0.3.0}/README.md +6 -5
  5. {waldiez-0.2.1 → waldiez-0.3.0}/pyproject.toml +33 -25
  6. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/__init__.py +2 -0
  7. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/__main__.py +2 -0
  8. waldiez-0.3.0/waldiez/_version.py +5 -0
  9. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/cli.py +13 -3
  10. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/cli_extras.py +25 -27
  11. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/conflict_checker.py +4 -3
  12. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/exporter.py +28 -105
  13. waldiez-0.3.0/waldiez/exporting/__init__.py +13 -0
  14. waldiez-0.3.0/waldiez/exporting/agent/__init__.py +7 -0
  15. waldiez-0.3.0/waldiez/exporting/agent/agent_exporter.py +279 -0
  16. waldiez-0.3.0/waldiez/exporting/agent/utils/__init__.py +23 -0
  17. waldiez-0.3.0/waldiez/exporting/agent/utils/agent_class_name.py +34 -0
  18. waldiez-0.3.0/waldiez/exporting/agent/utils/agent_imports.py +50 -0
  19. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/code_execution.py +9 -11
  20. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/group_manager.py +47 -35
  21. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/rag_user/__init__.py +2 -0
  22. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/rag_user/chroma_utils.py +22 -17
  23. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/rag_user/mongo_utils.py +14 -10
  24. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/rag_user/pgvector_utils.py +12 -8
  25. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/rag_user/qdrant_utils.py +11 -8
  26. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/rag_user/rag_user.py +78 -55
  27. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/rag_user/vector_db.py +10 -8
  28. waldiez-0.3.0/waldiez/exporting/agent/utils/swarm_agent.py +463 -0
  29. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/teachability.py +10 -6
  30. {waldiez-0.2.1/waldiez/exporting/agents → waldiez-0.3.0/waldiez/exporting/agent/utils}/termination_message.py +7 -8
  31. waldiez-0.3.0/waldiez/exporting/base/__init__.py +25 -0
  32. waldiez-0.3.0/waldiez/exporting/base/agent_position.py +75 -0
  33. waldiez-0.3.0/waldiez/exporting/base/base_exporter.py +118 -0
  34. waldiez-0.3.0/waldiez/exporting/base/export_position.py +48 -0
  35. waldiez-0.3.0/waldiez/exporting/base/import_position.py +23 -0
  36. waldiez-0.3.0/waldiez/exporting/base/mixin.py +134 -0
  37. waldiez-0.3.0/waldiez/exporting/base/utils/__init__.py +18 -0
  38. {waldiez-0.2.1/waldiez/exporting → waldiez-0.3.0/waldiez/exporting/base}/utils/comments.py +12 -55
  39. {waldiez-0.2.1/waldiez/exporting → waldiez-0.3.0/waldiez/exporting/base}/utils/naming.py +14 -4
  40. waldiez-0.3.0/waldiez/exporting/base/utils/path_check.py +68 -0
  41. waldiez-0.2.1/waldiez/exporting/utils/object_string.py → waldiez-0.3.0/waldiez/exporting/base/utils/to_string.py +21 -20
  42. waldiez-0.3.0/waldiez/exporting/chats/__init__.py +7 -0
  43. waldiez-0.3.0/waldiez/exporting/chats/chats_exporter.py +240 -0
  44. waldiez-0.3.0/waldiez/exporting/chats/utils/__init__.py +15 -0
  45. waldiez-0.3.0/waldiez/exporting/chats/utils/common.py +81 -0
  46. {waldiez-0.2.1/waldiez/exporting/chats → waldiez-0.3.0/waldiez/exporting/chats/utils}/nested.py +125 -86
  47. waldiez-0.3.0/waldiez/exporting/chats/utils/sequential.py +244 -0
  48. waldiez-0.3.0/waldiez/exporting/chats/utils/single_chat.py +313 -0
  49. waldiez-0.3.0/waldiez/exporting/chats/utils/swarm.py +207 -0
  50. waldiez-0.3.0/waldiez/exporting/flow/__init__.py +7 -0
  51. waldiez-0.3.0/waldiez/exporting/flow/flow_exporter.py +503 -0
  52. waldiez-0.3.0/waldiez/exporting/flow/utils/__init__.py +47 -0
  53. waldiez-0.3.0/waldiez/exporting/flow/utils/agent_utils.py +204 -0
  54. waldiez-0.3.0/waldiez/exporting/flow/utils/chat_utils.py +71 -0
  55. waldiez-0.3.0/waldiez/exporting/flow/utils/def_main.py +62 -0
  56. waldiez-0.3.0/waldiez/exporting/flow/utils/flow_content.py +112 -0
  57. waldiez-0.3.0/waldiez/exporting/flow/utils/flow_names.py +115 -0
  58. waldiez-0.3.0/waldiez/exporting/flow/utils/importing_utils.py +179 -0
  59. {waldiez-0.2.1/waldiez/exporting → waldiez-0.3.0/waldiez/exporting/flow}/utils/logging_utils.py +34 -31
  60. waldiez-0.3.0/waldiez/exporting/models/__init__.py +9 -0
  61. waldiez-0.3.0/waldiez/exporting/models/models_exporter.py +192 -0
  62. waldiez-0.3.0/waldiez/exporting/models/utils.py +166 -0
  63. waldiez-0.3.0/waldiez/exporting/skills/__init__.py +9 -0
  64. waldiez-0.3.0/waldiez/exporting/skills/skills_exporter.py +169 -0
  65. waldiez-0.3.0/waldiez/exporting/skills/utils.py +281 -0
  66. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/__init__.py +25 -7
  67. waldiez-0.3.0/waldiez/models/agents/__init__.py +135 -0
  68. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agent/__init__.py +11 -1
  69. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agent/agent.py +9 -4
  70. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agent/agent_data.py +3 -1
  71. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agent/code_execution.py +2 -0
  72. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agent/linked_skill.py +2 -0
  73. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agent/nested_chat.py +2 -0
  74. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agent/teachability.py +2 -0
  75. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agent/termination_message.py +49 -13
  76. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/agents.py +15 -3
  77. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/assistant/__init__.py +2 -0
  78. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/assistant/assistant.py +2 -0
  79. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/assistant/assistant_data.py +2 -0
  80. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/group_manager/__init__.py +9 -1
  81. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/group_manager/group_manager.py +2 -0
  82. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/group_manager/group_manager_data.py +2 -0
  83. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/group_manager/speakers.py +49 -13
  84. waldiez-0.3.0/waldiez/models/agents/rag_user/__init__.py +43 -0
  85. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/rag_user/rag_user.py +3 -1
  86. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/rag_user/rag_user_data.py +2 -0
  87. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/rag_user/retrieve_config.py +268 -17
  88. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/rag_user/vector_db_config.py +5 -3
  89. waldiez-0.3.0/waldiez/models/agents/swarm_agent/__init__.py +49 -0
  90. waldiez-0.3.0/waldiez/models/agents/swarm_agent/after_work.py +178 -0
  91. waldiez-0.3.0/waldiez/models/agents/swarm_agent/on_condition.py +103 -0
  92. waldiez-0.3.0/waldiez/models/agents/swarm_agent/on_condition_available.py +140 -0
  93. waldiez-0.3.0/waldiez/models/agents/swarm_agent/on_condition_target.py +40 -0
  94. waldiez-0.3.0/waldiez/models/agents/swarm_agent/swarm_agent.py +107 -0
  95. waldiez-0.3.0/waldiez/models/agents/swarm_agent/swarm_agent_data.py +125 -0
  96. waldiez-0.3.0/waldiez/models/agents/swarm_agent/update_system_message.py +144 -0
  97. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/user_proxy/__init__.py +2 -0
  98. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/user_proxy/user_proxy.py +2 -0
  99. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/agents/user_proxy/user_proxy_data.py +2 -0
  100. waldiez-0.3.0/waldiez/models/chat/__init__.py +40 -0
  101. waldiez-0.3.0/waldiez/models/chat/chat.py +363 -0
  102. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/chat/chat_data.py +192 -48
  103. waldiez-0.3.0/waldiez/models/chat/chat_message.py +313 -0
  104. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/chat/chat_nested.py +33 -53
  105. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/chat/chat_summary.py +2 -0
  106. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/common/__init__.py +6 -6
  107. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/common/base.py +4 -1
  108. waldiez-0.3.0/waldiez/models/common/method_utils.py +246 -0
  109. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/flow/__init__.py +2 -0
  110. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/flow/flow.py +176 -40
  111. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/flow/flow_data.py +63 -2
  112. waldiez-0.3.0/waldiez/models/flow/utils.py +172 -0
  113. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/model/__init__.py +2 -0
  114. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/model/model.py +25 -6
  115. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/model/model_data.py +3 -1
  116. waldiez-0.3.0/waldiez/models/skill/__init__.py +12 -0
  117. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/skill/skill.py +30 -2
  118. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/skill/skill_data.py +2 -0
  119. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/models/waldiez.py +28 -4
  120. waldiez-0.3.0/waldiez/runner.py +337 -0
  121. waldiez-0.3.0/waldiez/running/__init__.py +33 -0
  122. waldiez-0.3.0/waldiez/running/environment.py +83 -0
  123. waldiez-0.3.0/waldiez/running/gen_seq_diagram.py +185 -0
  124. waldiez-0.3.0/waldiez/running/running.py +300 -0
  125. waldiez-0.2.1/LICENSE +0 -21
  126. waldiez-0.2.1/waldiez/_version.py +0 -3
  127. waldiez-0.2.1/waldiez/exporting/__init__.py +0 -14
  128. waldiez-0.2.1/waldiez/exporting/agents/__init__.py +0 -5
  129. waldiez-0.2.1/waldiez/exporting/agents/agent.py +0 -236
  130. waldiez-0.2.1/waldiez/exporting/agents/agent_skills.py +0 -67
  131. waldiez-0.2.1/waldiez/exporting/agents/llm_config.py +0 -53
  132. waldiez-0.2.1/waldiez/exporting/chats/__init__.py +0 -14
  133. waldiez-0.2.1/waldiez/exporting/chats/chats.py +0 -46
  134. waldiez-0.2.1/waldiez/exporting/chats/helpers.py +0 -420
  135. waldiez-0.2.1/waldiez/exporting/flow/__init__.py +0 -5
  136. waldiez-0.2.1/waldiez/exporting/flow/def_main.py +0 -32
  137. waldiez-0.2.1/waldiez/exporting/flow/flow.py +0 -189
  138. waldiez-0.2.1/waldiez/exporting/models/__init__.py +0 -244
  139. waldiez-0.2.1/waldiez/exporting/skills/__init__.py +0 -163
  140. waldiez-0.2.1/waldiez/exporting/utils/__init__.py +0 -36
  141. waldiez-0.2.1/waldiez/exporting/utils/importing.py +0 -265
  142. waldiez-0.2.1/waldiez/exporting/utils/method_utils.py +0 -35
  143. waldiez-0.2.1/waldiez/exporting/utils/path_check.py +0 -51
  144. waldiez-0.2.1/waldiez/models/agents/__init__.py +0 -65
  145. waldiez-0.2.1/waldiez/models/agents/rag_user/__init__.py +0 -26
  146. waldiez-0.2.1/waldiez/models/chat/__init__.py +0 -22
  147. waldiez-0.2.1/waldiez/models/chat/chat.py +0 -129
  148. waldiez-0.2.1/waldiez/models/chat/chat_message.py +0 -304
  149. waldiez-0.2.1/waldiez/models/common/method_utils.py +0 -166
  150. waldiez-0.2.1/waldiez/models/skill/__init__.py +0 -9
  151. waldiez-0.2.1/waldiez/runner.py +0 -423
  152. {waldiez-0.2.1 → waldiez-0.3.0}/waldiez/py.typed +0 -0
@@ -25,3 +25,5 @@ dmypy.json
25
25
  **/*.coverage*
26
26
  **/*.ffs_db
27
27
  **/*.lcov
28
+ **/*.mmd
29
+ **/*.ipynb_checkpoints/
waldiez-0.3.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Waldiez and contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ https://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: waldiez
3
- Version: 0.2.1
3
+ Version: 0.3.0
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
@@ -9,7 +9,7 @@ License-File: LICENSE
9
9
  Classifier: Development Status :: 3 - Alpha
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: Intended Audience :: Science/Research
12
- Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3
@@ -17,43 +17,47 @@ Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
19
  Requires-Python: <3.13,>=3.10
20
+ Requires-Dist: asyncer==0.0.8
20
21
  Requires-Dist: jupytext
21
- Requires-Dist: pyautogen==0.6.0
22
+ Requires-Dist: pandas>=2
23
+ Requires-Dist: parso==0.8.4
24
+ Requires-Dist: pyautogen==0.7.1
22
25
  Requires-Dist: pydantic>=2.0
23
26
  Requires-Dist: typer<0.13,>=0.9
24
27
  Provides-Extra: ag2-extras
25
- Requires-Dist: autogen[captainagent]==0.6.0; (platform_system == 'Linux') and extra == 'ag2-extras'
28
+ Requires-Dist: autogen[captainagent]==0.7.1; (platform_system == 'Linux') and extra == 'ag2-extras'
26
29
  Requires-Dist: pgvector>=0.3.6; extra == 'ag2-extras'
27
30
  Requires-Dist: psycopg[binary]>=3.2.3; extra == 'ag2-extras'
28
- Requires-Dist: pyautogen[anthropic]==0.6.0; extra == 'ag2-extras'
29
- Requires-Dist: pyautogen[bedrock]==0.6.0; extra == 'ag2-extras'
30
- Requires-Dist: pyautogen[gemini]==0.6.0; extra == 'ag2-extras'
31
- Requires-Dist: pyautogen[groq]==0.6.0; extra == 'ag2-extras'
32
- Requires-Dist: pyautogen[lmm]==0.6.0; extra == 'ag2-extras'
33
- Requires-Dist: pyautogen[mistral]==0.6.0; extra == 'ag2-extras'
34
- Requires-Dist: pyautogen[neo4j]==0.6.0; extra == 'ag2-extras'
35
- Requires-Dist: pyautogen[retrievechat-mongodb]==0.6.0; extra == 'ag2-extras'
36
- Requires-Dist: pyautogen[retrievechat-pgvector]==0.6.0; extra == 'ag2-extras'
37
- Requires-Dist: pyautogen[retrievechat-qdrant]==0.6.0; (python_version < '3.13') and extra == 'ag2-extras'
38
- Requires-Dist: pyautogen[retrievechat]==0.6.0; extra == 'ag2-extras'
39
- Requires-Dist: pyautogen[together]==0.6.0; extra == 'ag2-extras'
40
- Requires-Dist: pyautogen[websurfer]==0.6.0; extra == 'ag2-extras'
31
+ Requires-Dist: pyautogen[anthropic]==0.7.1; extra == 'ag2-extras'
32
+ Requires-Dist: pyautogen[bedrock]==0.7.1; extra == 'ag2-extras'
33
+ Requires-Dist: pyautogen[gemini]==0.7.1; extra == 'ag2-extras'
34
+ Requires-Dist: pyautogen[groq]==0.7.1; extra == 'ag2-extras'
35
+ Requires-Dist: pyautogen[lmm]==0.7.1; extra == 'ag2-extras'
36
+ Requires-Dist: pyautogen[mistral]==0.7.1; extra == 'ag2-extras'
37
+ Requires-Dist: pyautogen[neo4j]==0.7.1; extra == 'ag2-extras'
38
+ Requires-Dist: pyautogen[retrievechat-mongodb]==0.7.1; extra == 'ag2-extras'
39
+ Requires-Dist: pyautogen[retrievechat-pgvector]==0.7.1; extra == 'ag2-extras'
40
+ Requires-Dist: pyautogen[retrievechat-qdrant]==0.7.1; (python_version < '3.13') and extra == 'ag2-extras'
41
+ Requires-Dist: pyautogen[retrievechat]==0.7.1; extra == 'ag2-extras'
42
+ Requires-Dist: pyautogen[together]==0.7.1; extra == 'ag2-extras'
43
+ Requires-Dist: pyautogen[websurfer]==0.7.1; extra == 'ag2-extras'
41
44
  Requires-Dist: pymongo==4.10.1; extra == 'ag2-extras'
42
45
  Requires-Dist: qdrant-client[fastembed]; (python_version >= '3.13') and extra == 'ag2-extras'
43
46
  Provides-Extra: dev
44
47
  Requires-Dist: autoflake==2.3.1; extra == 'dev'
45
- Requires-Dist: bandit==1.8.0; extra == 'dev'
48
+ Requires-Dist: bandit==1.8.2; extra == 'dev'
46
49
  Requires-Dist: black[jupyter]==24.10.0; extra == 'dev'
47
50
  Requires-Dist: flake8==7.1.1; extra == 'dev'
48
51
  Requires-Dist: isort==5.13.2; extra == 'dev'
49
- Requires-Dist: mypy==1.14.0; extra == 'dev'
52
+ Requires-Dist: mypy==1.14.1; extra == 'dev'
53
+ Requires-Dist: pandas-stubs; extra == 'dev'
50
54
  Requires-Dist: pre-commit==4.0.1; extra == 'dev'
51
55
  Requires-Dist: pydocstyle==6.3.0; extra == 'dev'
52
56
  Requires-Dist: pylint==3.3.3; extra == 'dev'
53
57
  Requires-Dist: python-dotenv==1.0.1; extra == 'dev'
54
- Requires-Dist: ruff==0.8.4; extra == 'dev'
58
+ Requires-Dist: ruff==0.9.2; extra == 'dev'
55
59
  Requires-Dist: toml; (python_version <= '3.10') and extra == 'dev'
56
- Requires-Dist: types-pyyaml==6.0.12.20240917; extra == 'dev'
60
+ Requires-Dist: types-pyyaml==6.0.12.20241230; extra == 'dev'
57
61
  Requires-Dist: types-toml==0.10.8.20240310; extra == 'dev'
58
62
  Requires-Dist: yamllint==1.35.1; extra == 'dev'
59
63
  Provides-Extra: docs
@@ -61,17 +65,18 @@ Requires-Dist: mdx-include==1.4.2; extra == 'docs'
61
65
  Requires-Dist: mdx-truly-sane-lists==1.3; extra == 'docs'
62
66
  Requires-Dist: mkdocs-jupyter==0.25.1; extra == 'docs'
63
67
  Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == 'docs'
64
- Requires-Dist: mkdocs-material==9.5.49; extra == 'docs'
68
+ Requires-Dist: mkdocs-material==9.5.50; extra == 'docs'
65
69
  Requires-Dist: mkdocs-minify-html-plugin==0.2.3; extra == 'docs'
66
70
  Requires-Dist: mkdocs==1.6.1; extra == 'docs'
67
- Requires-Dist: mkdocstrings-python==1.12.2; extra == 'docs'
71
+ Requires-Dist: mkdocstrings-python==1.13.0; extra == 'docs'
68
72
  Requires-Dist: mkdocstrings[crystal,python]==0.27.0; extra == 'docs'
69
73
  Provides-Extra: jupyter
70
74
  Requires-Dist: jupyterlab>=4.3.0; extra == 'jupyter'
71
- Requires-Dist: waldiez-jupyter==0.2.1; extra == 'jupyter'
75
+ Requires-Dist: waldiez-jupyter==0.3.0; extra == 'jupyter'
72
76
  Provides-Extra: studio
73
- Requires-Dist: waldiez-studio==0.2.1; extra == 'studio'
77
+ Requires-Dist: waldiez-studio==0.3.0; extra == 'studio'
74
78
  Provides-Extra: test
79
+ Requires-Dist: pytest-asyncio==0.25.2; extra == 'test'
75
80
  Requires-Dist: pytest-cov==6.0.0; extra == 'test'
76
81
  Requires-Dist: pytest-html==4.1.1; extra == 'test'
77
82
  Requires-Dist: pytest-sugar==1.0.0; extra == 'test'
@@ -120,17 +125,17 @@ The repo for the js library is [here](https://github.com/waldiez/react).
120
125
  - You also can use the vscode extension:
121
126
  - [repo](https://github.com/waldiez/vscode)
122
127
  - [marketplace](https://marketplace.visualstudio.com/items?itemName=Waldiez.waldiez-vscode)
123
- - Finally, you can use [waldiez-studio](https://github.com/waldiez/studio)
128
+ - Finally, you can use [waldiez-studio](https://github.com/waldiez/studio), which includes a FastAPI app to handle the conversion and running of waldiez flows.
124
129
 
125
- <!--
126
- The jupyterlab extension and studio also provided as extras in the main package.
130
+ The jupyterlab extension and waldiez studio are also provided as extras in the main package.
127
131
 
128
132
  ```shell
129
133
  pip install waldiez[studio] # or pip install waldiez_studio
130
134
  pip install waldiez[jupyter] # or pip install waldiez_jupyter
131
135
  # or both
132
136
  pip install waldiez[studio,jupyter]
133
- ``` -->
137
+ ```
138
+
134
139
  ### CLI
135
140
 
136
141
  ```bash
@@ -202,6 +207,7 @@ runner.run(output_path=output_path)
202
207
  - [juptytext](https://github.com/mwouts/jupytext)
203
208
  - [pydantic](https://github.com/pydantic/pydantic)
204
209
  - [typer](https://github.com/fastapi/typer)
210
+ - [asyncer](https://github.com/fastapi/asyncer)
205
211
 
206
212
  ## Known Conflicts
207
213
 
@@ -219,4 +225,4 @@ runner.run(output_path=output_path)
219
225
 
220
226
  ## License
221
227
 
222
- This project is licensed under the MIT License - see the [LICENSE](https://github.com/waldiez/python/blob/main/LICENSE) file for details.
228
+ This project is licensed under the [Apache License, Version 2.0 (Apache-2.0)](https://github.com/waldiez/python/blob/main/LICENSE).
@@ -38,17 +38,17 @@ The repo for the js library is [here](https://github.com/waldiez/react).
38
38
  - You also can use the vscode extension:
39
39
  - [repo](https://github.com/waldiez/vscode)
40
40
  - [marketplace](https://marketplace.visualstudio.com/items?itemName=Waldiez.waldiez-vscode)
41
- - Finally, you can use [waldiez-studio](https://github.com/waldiez/studio)
41
+ - Finally, you can use [waldiez-studio](https://github.com/waldiez/studio), which includes a FastAPI app to handle the conversion and running of waldiez flows.
42
42
 
43
- <!--
44
- The jupyterlab extension and studio also provided as extras in the main package.
43
+ The jupyterlab extension and waldiez studio are also provided as extras in the main package.
45
44
 
46
45
  ```shell
47
46
  pip install waldiez[studio] # or pip install waldiez_studio
48
47
  pip install waldiez[jupyter] # or pip install waldiez_jupyter
49
48
  # or both
50
49
  pip install waldiez[studio,jupyter]
51
- ``` -->
50
+ ```
51
+
52
52
  ### CLI
53
53
 
54
54
  ```bash
@@ -120,6 +120,7 @@ runner.run(output_path=output_path)
120
120
  - [juptytext](https://github.com/mwouts/jupytext)
121
121
  - [pydantic](https://github.com/pydantic/pydantic)
122
122
  - [typer](https://github.com/fastapi/typer)
123
+ - [asyncer](https://github.com/fastapi/asyncer)
123
124
 
124
125
  ## Known Conflicts
125
126
 
@@ -137,4 +138,4 @@ runner.run(output_path=output_path)
137
138
 
138
139
  ## License
139
140
 
140
- This project is licensed under the MIT License - see the [LICENSE](https://github.com/waldiez/python/blob/main/LICENSE) file for details.
141
+ This project is licensed under the [Apache License, Version 2.0 (Apache-2.0)](https://github.com/waldiez/python/blob/main/LICENSE).
@@ -11,7 +11,7 @@ requires-python = '>=3.10,<3.13'
11
11
  dynamic = ["version"]
12
12
  classifiers = [
13
13
  "Development Status :: 3 - Alpha",
14
- "License :: OSI Approved :: MIT License",
14
+ "License :: OSI Approved :: Apache Software License",
15
15
  "Programming Language :: Python",
16
16
  "Programming Language :: Python :: 3",
17
17
  "Programming Language :: Python :: 3.10",
@@ -22,8 +22,11 @@ classifiers = [
22
22
  "Intended Audience :: Developers",
23
23
  ]
24
24
  dependencies =[
25
- "pyautogen==0.6.0",
25
+ "asyncer==0.0.8",
26
+ "pandas>=2",
27
+ "pyautogen==0.7.1",
26
28
  "jupytext",
29
+ "parso==0.8.4",
27
30
  "pydantic>=2.0",
28
31
  # together(ag2 extra) 1.2.0 depends on typer<0.13 and >=0.9
29
32
  "typer>=0.9,<0.13",
@@ -43,25 +46,26 @@ exclude = [ "**/example.py" ]
43
46
 
44
47
  [project.optional-dependencies]
45
48
  studio = [
46
- "waldiez_studio==0.2.1",
49
+ "waldiez_studio==0.3.0",
47
50
  ]
48
51
  jupyter = [
49
- "waldiez_jupyter==0.2.1",
52
+ "waldiez_jupyter==0.3.0",
50
53
  "jupyterlab>=4.3.0",
51
54
  ]
52
55
  dev = [
53
56
  'autoflake==2.3.1',
54
- 'bandit==1.8.0',
57
+ 'bandit==1.8.2',
55
58
  'black[jupyter]==24.10.0',
56
59
  'flake8==7.1.1',
57
60
  'isort==5.13.2',
58
- 'mypy==1.14.0',
61
+ 'mypy==1.14.1',
62
+ "pandas-stubs",
59
63
  'pre-commit==4.0.1',
60
64
  'pydocstyle==6.3.0',
61
65
  'pylint==3.3.3',
62
66
  'python-dotenv==1.0.1',
63
- 'ruff==0.8.4',
64
- 'types-PyYAML==6.0.12.20240917',
67
+ 'ruff==0.9.2',
68
+ 'types-PyYAML==6.0.12.20241230',
65
69
  'yamllint==1.35.1',
66
70
  'toml; python_version <= "3.10"',
67
71
  'types-toml== 0.10.8.20240310',
@@ -92,26 +96,27 @@ dev = [
92
96
  ag2_extras =[
93
97
  'pgvector>=0.3.6',
94
98
  'psycopg[binary]>=3.2.3',
95
- 'pyautogen[anthropic]==0.6.0',
96
- 'pyautogen[bedrock]==0.6.0',
97
- 'autogen[captainagent]==0.6.0; platform_system == "Linux"',
98
- 'pyautogen[gemini]==0.6.0',
99
- 'pyautogen[groq]==0.6.0',
100
- 'pyautogen[lmm]==0.6.0',
101
- 'pyautogen[mistral]==0.6.0',
102
- 'pyautogen[neo4j]==0.6.0',
103
- 'pyautogen[retrievechat-mongodb]==0.6.0',
104
- 'pyautogen[retrievechat-pgvector]==0.6.0',
105
- 'pyautogen[retrievechat-qdrant]==0.6.0; python_version < "3.13"',
99
+ 'pyautogen[anthropic]==0.7.1',
100
+ 'pyautogen[bedrock]==0.7.1',
101
+ 'autogen[captainagent]==0.7.1; platform_system == "Linux"',
102
+ 'pyautogen[gemini]==0.7.1',
103
+ 'pyautogen[groq]==0.7.1',
104
+ 'pyautogen[lmm]==0.7.1',
105
+ 'pyautogen[mistral]==0.7.1',
106
+ 'pyautogen[neo4j]==0.7.1',
107
+ 'pyautogen[retrievechat-mongodb]==0.7.1',
108
+ 'pyautogen[retrievechat-pgvector]==0.7.1',
109
+ 'pyautogen[retrievechat-qdrant]==0.7.1; python_version < "3.13"',
106
110
  'qdrant-client[fastembed]; python_version >= "3.13"',
107
- 'pyautogen[retrievechat]==0.6.0',
108
- 'pyautogen[together]==0.6.0',
109
- 'pyautogen[together]==0.6.0',
110
- 'pyautogen[websurfer]==0.6.0',
111
+ 'pyautogen[retrievechat]==0.7.1',
112
+ 'pyautogen[together]==0.7.1',
113
+ 'pyautogen[together]==0.7.1',
114
+ 'pyautogen[websurfer]==0.7.1',
111
115
  'pymongo==4.10.1',
112
116
  ]
113
117
  test = [
114
118
  'pytest==8.3.4',
119
+ 'pytest-asyncio==0.25.2',
115
120
  'pytest-cov==6.0.0',
116
121
  'pytest-html==4.1.1',
117
122
  'pytest-sugar==1.0.0',
@@ -124,10 +129,10 @@ docs = [
124
129
  'mkdocs==1.6.1',
125
130
  'mkdocs-jupyter==0.25.1',
126
131
  'mkdocs-macros-plugin==1.3.7',
127
- 'mkdocs-material==9.5.49',
132
+ 'mkdocs-material==9.5.50',
128
133
  'mkdocs-minify-html-plugin==0.2.3',
129
134
  'mkdocstrings[crystal,python]==0.27.0',
130
- 'mkdocstrings-python==1.12.2'
135
+ 'mkdocstrings-python==1.13.0'
131
136
  ]
132
137
 
133
138
  [project.scripts]
@@ -311,6 +316,8 @@ line-ending = "lf"
311
316
 
312
317
  # pytest
313
318
  [tool.pytest.ini_options]
319
+ asyncio_mode = 'auto'
320
+ asyncio_default_fixture_loop_scope='session'
314
321
  filterwarnings = [
315
322
  # DeprecationWarning:
316
323
  # Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new.
@@ -337,6 +344,7 @@ addopts = """
337
344
  [tool.coverage.run]
338
345
  omit = [
339
346
  "example.py",
347
+ "cli_extras.py"
340
348
  ]
341
349
  [tool.coverage.report]
342
350
  exclude_lines = [
@@ -1,3 +1,5 @@
1
+ # SPDX-License-Identifier: Apache-2.0.
2
+ # Copyright (c) 2024 - 2025 Waldiez and contributors.
1
3
  """Waldiez package."""
2
4
 
3
5
  import logging
@@ -1,3 +1,5 @@
1
+ # SPDX-License-Identifier: Apache-2.0.
2
+ # Copyright (c) 2024 - 2025 Waldiez and contributors.
1
3
  """Waldiez entrypoint when called as a module."""
2
4
 
3
5
  from .cli import app
@@ -0,0 +1,5 @@
1
+ # SPDX-License-Identifier: Apache-2.0.
2
+ # Copyright (c) 2024 - 2025 Waldiez and contributors.
3
+ """Version information for Waldiez."""
4
+
5
+ __version__ = "0.3.0"
@@ -1,6 +1,8 @@
1
+ # SPDX-License-Identifier: Apache-2.0.
2
+ # Copyright (c) 2024 - 2025 Waldiez and contributors.
3
+ # pylint: disable=missing-function-docstring,missing-param-doc,missing-raises-doc # noqa: E501
1
4
  """Command line interface to convert or run a waldiez file."""
2
5
 
3
- # pylint: disable=missing-function-docstring,missing-param-doc,missing-raises-doc # noqa: E501
4
6
  import json
5
7
  import logging
6
8
  import os
@@ -9,6 +11,7 @@ import warnings
9
11
  from pathlib import Path
10
12
  from typing import TYPE_CHECKING, Optional
11
13
 
14
+ import anyio
12
15
  import typer
13
16
  from typing_extensions import Annotated
14
17
 
@@ -87,6 +90,10 @@ def run(
87
90
  ),
88
91
  ) -> None:
89
92
  """Run a Waldiez flow."""
93
+ # swarm without a user,
94
+ # creates a new user (this has a default code execution with docker)
95
+ # temp (until we handle/detect docker setup)
96
+ os.environ["AUTOGEN_USE_DOCKER"] = "0"
90
97
  output_path = _get_output_path(output, force)
91
98
  with file.open("r", encoding="utf-8") as _file:
92
99
  try:
@@ -96,14 +103,17 @@ def run(
96
103
  raise typer.Exit(code=1) from error
97
104
  waldiez = Waldiez.from_dict(data)
98
105
  runner = WaldiezRunner(waldiez)
99
- results = runner.run(output_path=output_path)
106
+ if waldiez.is_async:
107
+ results = anyio.run(runner.a_run, output_path)
108
+ else:
109
+ results = runner.run(output_path=output_path)
100
110
  logger = _get_logger()
101
111
  if isinstance(results, list):
102
112
  logger.info("Results:")
103
113
  for result in results:
104
114
  _log_result(result, logger)
105
115
  sep = "-" * 80
106
- print(f"\n{sep}\n")
116
+ print("\n" + f"{sep}" + "\n")
107
117
  else:
108
118
  _log_result(results, logger)
109
119