waldiez 0.4.1__tar.gz → 0.4.3__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.
- {waldiez-0.4.1 → waldiez-0.4.3}/PKG-INFO +53 -47
- {waldiez-0.4.1 → waldiez-0.4.3}/pyproject.toml +61 -49
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/_version.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/captain_agent.py +17 -8
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/rag_user/vector_db.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/base_exporter.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/chats/chats_exporter.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/chats/utils/single_chat.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/chats/utils/swarm.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/flow_exporter.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/utils/flow_content.py +6 -6
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/models/utils.py +4 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/skills/utils.py +2 -2
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/agent.py +1 -2
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/rag_user/vector_db_config.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/model/model.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/model/model_data.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/waldiez.py +1 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/runner.py +9 -4
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/utils/cli_extras/studio.py +2 -1
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/utils/pysqlite3_checker.py +6 -2
- {waldiez-0.4.1 → waldiez-0.4.3}/.gitignore +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/LICENSE +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/NOTICE.md +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/README.md +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/__main__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/cli.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporter.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/agent_exporter.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/code_execution.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/group_manager.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/rag_user/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/rag_user/chroma_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/rag_user/mongo_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/rag_user/pgvector_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/rag_user/qdrant_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/rag_user/rag_user.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/reasoning.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/swarm_agent.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/teachability.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/agent/utils/termination_message.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/agent_position.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/export_position.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/import_position.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/mixin.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/utils/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/utils/comments.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/utils/naming.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/utils/path_check.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/base/utils/to_string.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/chats/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/chats/utils/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/chats/utils/common.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/chats/utils/nested.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/chats/utils/sequential.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/utils/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/utils/agent_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/utils/chat_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/utils/def_main.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/utils/flow_names.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/utils/importing_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/flow/utils/logging_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/models/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/models/models_exporter.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/skills/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/exporting/skills/skills_exporter.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/agent_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/agent_type.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/code_execution.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/linked_skill.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/nested_chat.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/teachability.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agent/termination_message.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/agents.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/assistant/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/assistant/assistant.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/assistant/assistant_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/captain_agent/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/captain_agent/captain_agent.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/captain_agent/captain_agent_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/captain_agent/captain_agent_lib_entry.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/extra_requirements.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/group_manager/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/group_manager/group_manager.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/group_manager/group_manager_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/group_manager/speakers.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/rag_user/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/rag_user/rag_user.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/rag_user/rag_user_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/rag_user/retrieve_config.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/reasoning/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/reasoning/reasoning_agent.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/reasoning/reasoning_agent_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/reasoning/reasoning_agent_reason_config.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/swarm_agent/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/swarm_agent/after_work.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/swarm_agent/on_condition.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/swarm_agent/on_condition_available.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/swarm_agent/on_condition_target.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/swarm_agent/swarm_agent.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/swarm_agent/swarm_agent_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/swarm_agent/update_system_message.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/user_proxy/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/user_proxy/user_proxy.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/agents/user_proxy/user_proxy_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/chat/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/chat/chat.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/chat/chat_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/chat/chat_message.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/chat/chat_nested.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/chat/chat_summary.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/common/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/common/ag2_version.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/common/base.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/common/date_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/common/dict_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/common/method_utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/flow/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/flow/flow.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/flow/flow_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/flow/utils.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/model/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/model/extra_requirements.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/skill/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/skill/extra_requirements.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/skill/skill.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/skill/skill_data.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/models/skill/skill_type.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/py.typed +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/running/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/running/environment.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/running/gen_seq_diagram.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/running/running.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/utils/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/utils/cli_extras/__init__.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/utils/cli_extras/jupyter.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/utils/conflict_checker.py +0 -0
- {waldiez-0.4.1 → waldiez-0.4.3}/waldiez/utils/flaml_warnings.py +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: waldiez
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: waldiez
|
|
5
|
-
Project-URL: homepage, https://waldiez.
|
|
5
|
+
Project-URL: homepage, https://waldiez.io
|
|
6
6
|
Project-URL: repository, https://github.com/waldiez/python.git
|
|
7
|
+
Project-URL: documentation, https://waldiez.github.io/python/
|
|
8
|
+
Project-URL: issues, https://github.com/waldiez/python/issues
|
|
7
9
|
Author-email: Panagiotis Kasnesis <pkasnesis@waldiez.io>, Lazaros Toumanidis <laztoum@waldiez.io>, Stella Ioannidou <stella@humancentered.gr>
|
|
8
10
|
License-File: LICENSE
|
|
9
11
|
License-File: NOTICE.md
|
|
@@ -17,7 +19,8 @@ Classifier: Programming Language :: Python :: 3
|
|
|
17
19
|
Classifier: Programming Language :: Python :: 3.10
|
|
18
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
-
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Requires-Python: <3.14,>=3.10
|
|
21
24
|
Requires-Dist: aiocsv==1.3.2
|
|
22
25
|
Requires-Dist: aiofiles==24.1.0
|
|
23
26
|
Requires-Dist: aiosqlite==0.21.0
|
|
@@ -25,85 +28,88 @@ Requires-Dist: asyncer==0.0.8
|
|
|
25
28
|
Requires-Dist: graphviz==0.20.3
|
|
26
29
|
Requires-Dist: httpx<1
|
|
27
30
|
Requires-Dist: jupytext
|
|
28
|
-
Requires-Dist: numpy
|
|
31
|
+
Requires-Dist: numpy<=2.2.4
|
|
29
32
|
Requires-Dist: pandas>=2
|
|
30
33
|
Requires-Dist: parso==0.8.4
|
|
31
|
-
Requires-Dist: pyautogen==0.
|
|
32
|
-
Requires-Dist: pydantic<3,>=2.
|
|
34
|
+
Requires-Dist: pyautogen[openai]==0.8.6
|
|
35
|
+
Requires-Dist: pydantic<3,>=2.10.2
|
|
33
36
|
Requires-Dist: typer<0.16,>=0.9
|
|
34
37
|
Provides-Extra: ag2-extras
|
|
35
38
|
Requires-Dist: beautifulsoup4; extra == 'ag2-extras'
|
|
36
|
-
Requires-Dist: chromadb>=0.5.
|
|
37
|
-
Requires-Dist:
|
|
38
|
-
Requires-Dist: crewai>0.98.0; extra == 'ag2-extras'
|
|
39
|
-
Requires-Dist: embedchain==0.1.126; extra == 'ag2-extras'
|
|
39
|
+
Requires-Dist: chromadb>=0.5.10; extra == 'ag2-extras'
|
|
40
|
+
Requires-Dist: embedchain; extra == 'ag2-extras'
|
|
40
41
|
Requires-Dist: huggingface-hub; extra == 'ag2-extras'
|
|
41
42
|
Requires-Dist: ipython; extra == 'ag2-extras'
|
|
42
43
|
Requires-Dist: langchain-community<1,>=0.3.12; extra == 'ag2-extras'
|
|
43
44
|
Requires-Dist: markdownify; extra == 'ag2-extras'
|
|
44
|
-
Requires-Dist: pgvector>=0.
|
|
45
|
+
Requires-Dist: pgvector>=0.4.0; extra == 'ag2-extras'
|
|
45
46
|
Requires-Dist: protobuf>=4.25.3; extra == 'ag2-extras'
|
|
46
|
-
Requires-Dist: psycopg
|
|
47
|
-
Requires-Dist: psycopg
|
|
48
|
-
Requires-Dist:
|
|
49
|
-
Requires-Dist:
|
|
50
|
-
Requires-Dist:
|
|
51
|
-
Requires-Dist:
|
|
52
|
-
Requires-Dist:
|
|
53
|
-
Requires-Dist: pyautogen[
|
|
54
|
-
Requires-Dist: pyautogen[
|
|
55
|
-
Requires-Dist: pyautogen[
|
|
56
|
-
Requires-Dist: pyautogen[
|
|
57
|
-
Requires-Dist: pyautogen[
|
|
58
|
-
Requires-Dist: pyautogen[
|
|
59
|
-
Requires-Dist: pyautogen[
|
|
60
|
-
Requires-Dist: pyautogen[
|
|
47
|
+
Requires-Dist: psycopg==3.2.6; (sys_platform == 'linux') and extra == 'ag2-extras'
|
|
48
|
+
Requires-Dist: psycopg==3.2.6; (sys_platform == 'win32' and platform_machine == 'AARCH64') and extra == 'ag2-extras'
|
|
49
|
+
Requires-Dist: psycopg==3.2.6; (sys_platform == 'win32' and platform_machine == 'ARM64') and extra == 'ag2-extras'
|
|
50
|
+
Requires-Dist: psycopg==3.2.6; (sys_platform == 'win32' and platform_machine == 'aarch64') and extra == 'ag2-extras'
|
|
51
|
+
Requires-Dist: psycopg==3.2.6; (sys_platform == 'win32' and platform_machine == 'arm64') and extra == 'ag2-extras'
|
|
52
|
+
Requires-Dist: psycopg[binary]==3.2.6; (sys_platform != 'linux' and platform_machine != 'arm64' and platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'AARCH64') and extra == 'ag2-extras'
|
|
53
|
+
Requires-Dist: psycopg[binary]>=3.2.6; extra == 'ag2-extras'
|
|
54
|
+
Requires-Dist: pyautogen[anthropic]==0.8.6; extra == 'ag2-extras'
|
|
55
|
+
Requires-Dist: pyautogen[bedrock]==0.8.6; extra == 'ag2-extras'
|
|
56
|
+
Requires-Dist: pyautogen[cohere]==0.8.6; extra == 'ag2-extras'
|
|
57
|
+
Requires-Dist: pyautogen[gemini]==0.8.6; extra == 'ag2-extras'
|
|
58
|
+
Requires-Dist: pyautogen[groq]==0.8.6; extra == 'ag2-extras'
|
|
59
|
+
Requires-Dist: pyautogen[interop-crewai]==0.8.6; extra == 'ag2-extras'
|
|
60
|
+
Requires-Dist: pyautogen[interop-langchain]==0.8.6; extra == 'ag2-extras'
|
|
61
|
+
Requires-Dist: pyautogen[lmm]==0.8.6; extra == 'ag2-extras'
|
|
62
|
+
Requires-Dist: pyautogen[mistral]==0.8.6; extra == 'ag2-extras'
|
|
63
|
+
Requires-Dist: pyautogen[neo4j]==0.8.6; extra == 'ag2-extras'
|
|
64
|
+
Requires-Dist: pyautogen[ollama]==0.8.6; extra == 'ag2-extras'
|
|
65
|
+
Requires-Dist: pyautogen[together]==0.8.6; extra == 'ag2-extras'
|
|
66
|
+
Requires-Dist: pyautogen[websurfer]==0.8.6; extra == 'ag2-extras'
|
|
61
67
|
Requires-Dist: pydantic-ai>=0.0.21; extra == 'ag2-extras'
|
|
62
68
|
Requires-Dist: pymongo>=4.11; extra == 'ag2-extras'
|
|
63
69
|
Requires-Dist: pypdf; extra == 'ag2-extras'
|
|
70
|
+
Requires-Dist: pysqlite3-binary==0.5.4; (sys_platform == 'linux' and platform_machine != 'arm64' and platform_machine != 'aarch64' and platform_machine != 'ARM64' and platform_machine != 'AARCH64') and extra == 'ag2-extras'
|
|
64
71
|
Requires-Dist: qdrant-client[fastembed]; extra == 'ag2-extras'
|
|
65
72
|
Requires-Dist: sentence-transformers; extra == 'ag2-extras'
|
|
66
|
-
Requires-Dist: weaviate-client>=4.10.2; extra == 'ag2-extras'
|
|
67
73
|
Provides-Extra: dev
|
|
68
74
|
Requires-Dist: autoflake==2.3.1; extra == 'dev'
|
|
69
|
-
Requires-Dist: bandit==1.8.
|
|
75
|
+
Requires-Dist: bandit==1.8.3; extra == 'dev'
|
|
70
76
|
Requires-Dist: black[jupyter]==25.1.0; extra == 'dev'
|
|
71
|
-
Requires-Dist: flake8==7.
|
|
72
|
-
Requires-Dist: isort==6.0.
|
|
77
|
+
Requires-Dist: flake8==7.2.0; extra == 'dev'
|
|
78
|
+
Requires-Dist: isort==6.0.1; extra == 'dev'
|
|
73
79
|
Requires-Dist: mypy==1.15.0; extra == 'dev'
|
|
74
|
-
Requires-Dist: pandas-stubs; extra == 'dev'
|
|
75
|
-
Requires-Dist: pre-commit==4.
|
|
80
|
+
Requires-Dist: pandas-stubs==2.2.3.250308; extra == 'dev'
|
|
81
|
+
Requires-Dist: pre-commit==4.2.0; extra == 'dev'
|
|
76
82
|
Requires-Dist: pydocstyle==6.3.0; extra == 'dev'
|
|
77
|
-
Requires-Dist: pylint==3.3.
|
|
78
|
-
Requires-Dist: python-dotenv==1.0
|
|
79
|
-
Requires-Dist: ruff==0.
|
|
80
|
-
Requires-Dist: toml; (python_version <= '3.10') and extra == 'dev'
|
|
81
|
-
Requires-Dist: types-pyyaml==6.0.12.
|
|
83
|
+
Requires-Dist: pylint==3.3.6; extra == 'dev'
|
|
84
|
+
Requires-Dist: python-dotenv==1.1.0; extra == 'dev'
|
|
85
|
+
Requires-Dist: ruff==0.11.5; extra == 'dev'
|
|
86
|
+
Requires-Dist: toml==0.10.2; (python_version <= '3.10') and extra == 'dev'
|
|
87
|
+
Requires-Dist: types-pyyaml==6.0.12.20250402; extra == 'dev'
|
|
82
88
|
Requires-Dist: types-toml==0.10.8.20240310; extra == 'dev'
|
|
83
|
-
Requires-Dist: yamllint==1.
|
|
89
|
+
Requires-Dist: yamllint==1.37.0; extra == 'dev'
|
|
84
90
|
Provides-Extra: docs
|
|
85
91
|
Requires-Dist: mdx-include==1.4.2; extra == 'docs'
|
|
86
92
|
Requires-Dist: mdx-truly-sane-lists==1.3; extra == 'docs'
|
|
87
93
|
Requires-Dist: mkdocs-jupyter==0.25.1; extra == 'docs'
|
|
88
94
|
Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == 'docs'
|
|
89
|
-
Requires-Dist: mkdocs-material==9.6.
|
|
90
|
-
Requires-Dist: mkdocs-minify-html-plugin==0.
|
|
95
|
+
Requires-Dist: mkdocs-material==9.6.11; extra == 'docs'
|
|
96
|
+
Requires-Dist: mkdocs-minify-html-plugin==0.3.1; extra == 'docs'
|
|
91
97
|
Requires-Dist: mkdocs==1.6.1; extra == 'docs'
|
|
92
|
-
Requires-Dist: mkdocstrings-python==1.
|
|
93
|
-
Requires-Dist: mkdocstrings[crystal,python]==0.
|
|
98
|
+
Requires-Dist: mkdocstrings-python==1.16.10; extra == 'docs'
|
|
99
|
+
Requires-Dist: mkdocstrings[crystal,python]==0.29.1; extra == 'docs'
|
|
94
100
|
Provides-Extra: jupyter
|
|
95
101
|
Requires-Dist: jupyterlab>=4.3.0; extra == 'jupyter'
|
|
96
|
-
Requires-Dist: waldiez-jupyter==0.4.
|
|
102
|
+
Requires-Dist: waldiez-jupyter==0.4.3; extra == 'jupyter'
|
|
97
103
|
Provides-Extra: studio
|
|
98
|
-
Requires-Dist: waldiez-studio==0.4.
|
|
104
|
+
Requires-Dist: waldiez-studio==0.4.3; extra == 'studio'
|
|
99
105
|
Provides-Extra: test
|
|
100
|
-
Requires-Dist: pytest-asyncio==0.
|
|
101
|
-
Requires-Dist: pytest-cov==6.
|
|
106
|
+
Requires-Dist: pytest-asyncio==0.26.0; extra == 'test'
|
|
107
|
+
Requires-Dist: pytest-cov==6.1.1; extra == 'test'
|
|
102
108
|
Requires-Dist: pytest-html==4.1.1; extra == 'test'
|
|
103
109
|
Requires-Dist: pytest-sugar==1.0.0; extra == 'test'
|
|
104
110
|
Requires-Dist: pytest-timeout==2.3.1; extra == 'test'
|
|
105
111
|
Requires-Dist: pytest-xdist==3.6.1; extra == 'test'
|
|
106
|
-
Requires-Dist: pytest==8.3.
|
|
112
|
+
Requires-Dist: pytest==8.3.5; extra == 'test'
|
|
107
113
|
Description-Content-Type: text/markdown
|
|
108
114
|
|
|
109
115
|
# Waldiez
|
|
@@ -7,7 +7,7 @@ authors = [
|
|
|
7
7
|
{ name = 'Stella Ioannidou', email = 'stella@humancentered.gr'}
|
|
8
8
|
]
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = '>=3.10,<3.
|
|
10
|
+
requires-python = '>=3.10,<3.14'
|
|
11
11
|
dynamic = ["version"]
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Development Status :: 3 - Alpha",
|
|
@@ -17,6 +17,7 @@ classifiers = [
|
|
|
17
17
|
"Programming Language :: Python :: 3.10",
|
|
18
18
|
"Programming Language :: Python :: 3.11",
|
|
19
19
|
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
20
21
|
"Operating System :: OS Independent",
|
|
21
22
|
"Intended Audience :: Science/Research",
|
|
22
23
|
"Intended Audience :: Developers",
|
|
@@ -26,20 +27,22 @@ dependencies =[
|
|
|
26
27
|
"aiofiles==24.1.0",
|
|
27
28
|
"aiosqlite==0.21.0",
|
|
28
29
|
"asyncer==0.0.8",
|
|
29
|
-
"numpy
|
|
30
|
+
"numpy<=2.2.4",
|
|
30
31
|
"graphviz==0.20.3",
|
|
31
32
|
"pandas>=2",
|
|
32
|
-
"pyautogen==0.
|
|
33
|
+
"pyautogen[openai]==0.8.6",
|
|
33
34
|
"jupytext",
|
|
34
35
|
"parso==0.8.4",
|
|
35
|
-
"pydantic>=2.
|
|
36
|
+
"pydantic>=2.10.2,<3",
|
|
36
37
|
"typer>=0.9,<0.16",
|
|
37
38
|
"httpx<1",
|
|
38
39
|
]
|
|
39
40
|
|
|
40
41
|
[project.urls]
|
|
41
|
-
homepage = 'https://waldiez.
|
|
42
|
+
homepage = 'https://waldiez.io'
|
|
42
43
|
repository = 'https://github.com/waldiez/python.git'
|
|
44
|
+
documentation = "https://waldiez.github.io/python/"
|
|
45
|
+
issues = "https://github.com/waldiez/python/issues"
|
|
43
46
|
|
|
44
47
|
[tool.hatch.build.targets.sdist]
|
|
45
48
|
packages = ["waldiez", "waldiez.*"]
|
|
@@ -51,71 +54,74 @@ exclude = [ "**/example.py" ]
|
|
|
51
54
|
|
|
52
55
|
[project.optional-dependencies]
|
|
53
56
|
studio = [
|
|
54
|
-
"waldiez_studio==0.4.
|
|
57
|
+
"waldiez_studio==0.4.3",
|
|
55
58
|
]
|
|
56
59
|
jupyter = [
|
|
57
|
-
"waldiez_jupyter==0.4.
|
|
58
|
-
|
|
60
|
+
"waldiez_jupyter==0.4.3",
|
|
61
|
+
'jupyterlab>=4.3.0',
|
|
59
62
|
]
|
|
60
63
|
dev = [
|
|
61
64
|
'autoflake==2.3.1',
|
|
62
|
-
'bandit==1.8.
|
|
65
|
+
'bandit==1.8.3',
|
|
63
66
|
'black[jupyter]==25.1.0',
|
|
64
|
-
'flake8==7.
|
|
65
|
-
'isort==6.0.
|
|
67
|
+
'flake8==7.2.0',
|
|
68
|
+
'isort==6.0.1',
|
|
66
69
|
'mypy==1.15.0',
|
|
67
|
-
|
|
68
|
-
'pre-commit==4.
|
|
70
|
+
'pandas-stubs==2.2.3.250308',
|
|
71
|
+
'pre-commit==4.2.0',
|
|
69
72
|
'pydocstyle==6.3.0',
|
|
70
|
-
'pylint==3.3.
|
|
71
|
-
'python-dotenv==1.0
|
|
72
|
-
'ruff==0.
|
|
73
|
-
'types-
|
|
74
|
-
'yamllint==1.
|
|
75
|
-
'toml; python_version <= "3.10"',
|
|
76
|
-
'types-toml==
|
|
73
|
+
'pylint==3.3.6',
|
|
74
|
+
'python-dotenv==1.1.0',
|
|
75
|
+
'ruff==0.11.5',
|
|
76
|
+
'types-pyyaml==6.0.12.20250402',
|
|
77
|
+
'yamllint==1.37.0',
|
|
78
|
+
'toml==0.10.2; python_version <= "3.10"',
|
|
79
|
+
'types-toml==0.10.8.20240310',
|
|
77
80
|
]
|
|
78
81
|
ag2_extras =[
|
|
79
82
|
# models
|
|
80
|
-
'pyautogen[anthropic]==0.
|
|
81
|
-
'pyautogen[bedrock]==0.
|
|
82
|
-
'pyautogen[cohere]==0.
|
|
83
|
-
'pyautogen[gemini]==0.
|
|
84
|
-
'pyautogen[groq]==0.
|
|
85
|
-
'pyautogen[lmm]==0.
|
|
86
|
-
'pyautogen[mistral]==0.
|
|
87
|
-
'pyautogen[ollama]==0.
|
|
88
|
-
'pyautogen[together]==0.
|
|
83
|
+
'pyautogen[anthropic]==0.8.6',
|
|
84
|
+
'pyautogen[bedrock]==0.8.6',
|
|
85
|
+
'pyautogen[cohere]==0.8.6',
|
|
86
|
+
'pyautogen[gemini]==0.8.6',
|
|
87
|
+
'pyautogen[groq]==0.8.6',
|
|
88
|
+
'pyautogen[lmm]==0.8.6',
|
|
89
|
+
'pyautogen[mistral]==0.8.6',
|
|
90
|
+
'pyautogen[ollama]==0.8.6',
|
|
91
|
+
'pyautogen[together]==0.8.6',
|
|
89
92
|
# utils
|
|
90
|
-
'pyautogen[interop-crewai]==0.
|
|
91
|
-
'pyautogen[interop-langchain]==0.
|
|
92
|
-
'pyautogen[neo4j]==0.
|
|
93
|
-
'pyautogen[websurfer]==0.
|
|
94
|
-
'chromadb>=0.5.
|
|
95
|
-
'pgvector>=0.
|
|
96
|
-
|
|
93
|
+
'pyautogen[interop-crewai]==0.8.6',
|
|
94
|
+
'pyautogen[interop-langchain]==0.8.6',
|
|
95
|
+
'pyautogen[neo4j]==0.8.6',
|
|
96
|
+
'pyautogen[websurfer]==0.8.6',
|
|
97
|
+
'chromadb>=0.5.10',
|
|
98
|
+
'pgvector>=0.4.0',
|
|
99
|
+
"psycopg==3.2.6; sys_platform == 'linux'",
|
|
100
|
+
"psycopg==3.2.6; sys_platform == 'win32' and platform_machine == 'arm64'",
|
|
101
|
+
"psycopg==3.2.6; sys_platform == 'win32' and platform_machine == 'ARM64'",
|
|
102
|
+
"psycopg==3.2.6; sys_platform == 'win32' and platform_machine == 'aarch64'",
|
|
103
|
+
"psycopg==3.2.6; sys_platform == 'win32' and platform_machine == 'AARCH64'",
|
|
104
|
+
"psycopg[binary]==3.2.6; sys_platform != 'linux' and platform_machine != 'arm64' and platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'AARCH64'",
|
|
97
105
|
'protobuf>=4.25.3',
|
|
98
106
|
'pypdf',
|
|
107
|
+
"pysqlite3-binary==0.5.4; sys_platform == 'linux' and platform_machine != 'arm64' and platform_machine != 'aarch64' and platform_machine != 'ARM64' and platform_machine != 'AARCH64'",
|
|
99
108
|
'ipython',
|
|
100
109
|
'markdownify',
|
|
101
110
|
'beautifulsoup4',
|
|
102
111
|
'sentence-transformers',
|
|
103
112
|
'huggingface-hub',
|
|
104
113
|
'qdrant-client[fastembed]',
|
|
105
|
-
'pgvector>=0.
|
|
106
|
-
'psycopg[binary]>=3.2.
|
|
107
|
-
'
|
|
108
|
-
'embedchain==0.1.126',
|
|
109
|
-
'crewai>0.98.0',
|
|
110
|
-
'weaviate-client>=4.10.2',
|
|
114
|
+
'pgvector>=0.4.0',
|
|
115
|
+
'psycopg[binary]>=3.2.6',
|
|
116
|
+
'embedchain',
|
|
111
117
|
'langchain-community>=0.3.12,<1',
|
|
112
118
|
'pydantic-ai>=0.0.21',
|
|
113
119
|
'pymongo>=4.11',
|
|
114
120
|
]
|
|
115
121
|
test = [
|
|
116
|
-
'pytest==8.3.
|
|
117
|
-
'pytest-asyncio==0.
|
|
118
|
-
'pytest-cov==6.
|
|
122
|
+
'pytest==8.3.5',
|
|
123
|
+
'pytest-asyncio==0.26.0',
|
|
124
|
+
'pytest-cov==6.1.1',
|
|
119
125
|
'pytest-html==4.1.1',
|
|
120
126
|
'pytest-sugar==1.0.0',
|
|
121
127
|
'pytest-timeout==2.3.1',
|
|
@@ -127,10 +133,10 @@ docs = [
|
|
|
127
133
|
'mkdocs==1.6.1',
|
|
128
134
|
'mkdocs-jupyter==0.25.1',
|
|
129
135
|
'mkdocs-macros-plugin==1.3.7',
|
|
130
|
-
'mkdocs-material==9.6.
|
|
131
|
-
'mkdocs-minify-html-plugin==0.
|
|
132
|
-
'mkdocstrings[crystal,python]==0.
|
|
133
|
-
'mkdocstrings-python==1.
|
|
136
|
+
'mkdocs-material==9.6.11',
|
|
137
|
+
'mkdocs-minify-html-plugin==0.3.1',
|
|
138
|
+
'mkdocstrings[crystal,python]==0.29.1',
|
|
139
|
+
'mkdocstrings-python==1.16.10'
|
|
134
140
|
]
|
|
135
141
|
|
|
136
142
|
[project.scripts]
|
|
@@ -194,6 +200,12 @@ exclude = [
|
|
|
194
200
|
'waldiez_out',
|
|
195
201
|
]
|
|
196
202
|
|
|
203
|
+
[[tool.mypy.overrides]]
|
|
204
|
+
module = "tests.*"
|
|
205
|
+
# with python < 3.13 we get seem to get 'call-arg' errors :(
|
|
206
|
+
# and with python>=3.13 'unused-ignore' : (
|
|
207
|
+
disable_error_code = ["call-arg"]
|
|
208
|
+
|
|
197
209
|
[tool.pydantic-mypy]
|
|
198
210
|
init_forbid_extra = true
|
|
199
211
|
init_typed = true
|
|
@@ -102,12 +102,12 @@ def generate_nested_config(
|
|
|
102
102
|
with open(
|
|
103
103
|
config_file_or_env_path, "w", encoding="utf-8", newline="\n"
|
|
104
104
|
) as f:
|
|
105
|
-
json.dump(
|
|
105
|
+
json.dump(llm_config, f, ensure_ascii=False, indent=4)
|
|
106
106
|
nested_config = {
|
|
107
107
|
"autobuild_init_config": {
|
|
108
108
|
"config_file_or_env": config_file_or_env_name,
|
|
109
|
-
"builder_model": llm_config["model"],
|
|
110
|
-
"agent_model": llm_config["model"],
|
|
109
|
+
"builder_model": llm_config["config_list"][0]["model"],
|
|
110
|
+
"agent_model": llm_config["config_list"][0]["model"],
|
|
111
111
|
},
|
|
112
112
|
"autobuild_build_config": get_auto_build_build_config(
|
|
113
113
|
agent, llm_config
|
|
@@ -140,20 +140,29 @@ def get_llm_config(
|
|
|
140
140
|
temperature: Optional[float] = 1
|
|
141
141
|
top_p: Optional[float] = 0.95
|
|
142
142
|
max_tokens: Optional[int] = 2048
|
|
143
|
+
config_dict: Dict[str, Any] = {}
|
|
143
144
|
if agent.data.model_ids:
|
|
144
145
|
waldiez_model = get_waldiez_model(agent.data.model_ids[0], all_models)
|
|
145
146
|
llm_config = waldiez_model.get_llm_config(skip_price=True)
|
|
146
147
|
for key in ["temperature", "top_p", "max_tokens"]:
|
|
147
148
|
if key not in llm_config:
|
|
148
149
|
llm_config[key] = None
|
|
149
|
-
|
|
150
|
+
temp = llm_config.pop("temperature", None)
|
|
151
|
+
config_dict = {
|
|
152
|
+
"config_list": [llm_config],
|
|
153
|
+
}
|
|
154
|
+
if temp is not None:
|
|
155
|
+
config_dict["temperature"] = temp
|
|
156
|
+
return config_dict
|
|
150
157
|
config_dict = {
|
|
151
158
|
"model": model_name,
|
|
152
|
-
"temperature": temperature,
|
|
153
159
|
"top_p": top_p,
|
|
154
160
|
"max_tokens": max_tokens,
|
|
155
161
|
}
|
|
156
|
-
return
|
|
162
|
+
return {
|
|
163
|
+
"config_list": [config_dict],
|
|
164
|
+
"temperature": temperature,
|
|
165
|
+
}
|
|
157
166
|
|
|
158
167
|
|
|
159
168
|
def get_auto_build_build_config(
|
|
@@ -195,8 +204,8 @@ def get_auto_build_build_config(
|
|
|
195
204
|
return {
|
|
196
205
|
"default_llm_config": {
|
|
197
206
|
"temperature": llm_config["temperature"],
|
|
198
|
-
"top_p": llm_config["top_p"],
|
|
199
|
-
"max_tokens": llm_config["max_tokens"],
|
|
207
|
+
"top_p": llm_config["config_list"][0]["top_p"],
|
|
208
|
+
"max_tokens": llm_config["config_list"][0]["max_tokens"],
|
|
200
209
|
},
|
|
201
210
|
"code_execution_config": code_execution_config,
|
|
202
211
|
"coding": coding,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SPDX-License-Identifier: Apache-2.0.
|
|
2
2
|
# Copyright (c) 2024 - 2025 Waldiez and contributors.
|
|
3
|
-
# flake8: noqa E501
|
|
3
|
+
# flake8: noqa: E501
|
|
4
4
|
# pylint: disable=line-too-long
|
|
5
5
|
"""Utils to generate the content of a flow."""
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ def get_py_content_start(waldiez: Waldiez) -> str:
|
|
|
22
22
|
The first part of the python script.
|
|
23
23
|
"""
|
|
24
24
|
content = "#!/usr/bin/env python\n"
|
|
25
|
-
content += "# flake8: noqa E501\n"
|
|
25
|
+
content += "# flake8: noqa: E501\n"
|
|
26
26
|
content += get_pylint_ignore_comment(False)
|
|
27
27
|
content += "# cspell: disable\n"
|
|
28
28
|
content += f'"""{waldiez.name}.' + "\n\n"
|
|
@@ -60,7 +60,7 @@ def get_ipynb_content_start(
|
|
|
60
60
|
# fmt: off
|
|
61
61
|
content += "# " + f"!{{sys.executable}} -m pip install -q {requirements}" + "\n"
|
|
62
62
|
# fmt: on
|
|
63
|
-
content += "# flake8: noqa E501"
|
|
63
|
+
content += "# flake8: noqa: E501"
|
|
64
64
|
content += get_pylint_ignore_comment(True)
|
|
65
65
|
content += "# cspell: disable\n"
|
|
66
66
|
return content
|
|
@@ -135,8 +135,8 @@ def get_after_run_content(
|
|
|
135
135
|
str
|
|
136
136
|
The content to add after the flow is run.
|
|
137
137
|
"""
|
|
138
|
-
# if
|
|
139
|
-
# visualize_tree(
|
|
138
|
+
# if the flow has a reasoning agents, we add
|
|
139
|
+
# agent.visualize_tree() for each agent
|
|
140
140
|
content = ""
|
|
141
141
|
tab = " "
|
|
142
142
|
space = tab * tabs
|
|
@@ -146,7 +146,7 @@ def get_after_run_content(
|
|
|
146
146
|
content += f"""
|
|
147
147
|
{space}# pylint: disable=broad-except,too-many-try-statements
|
|
148
148
|
{space}try:
|
|
149
|
-
{space}{tab}
|
|
149
|
+
{space}{tab}{agent_name}.visualize_tree()
|
|
150
150
|
{space}{tab}if os.path.exists("tree_of_thoughts.png"):
|
|
151
151
|
{space}{tab}{tab}new_name = "{agent_name}_tree_of_thoughts.png"
|
|
152
152
|
{space}{tab}{tab}os.rename("tree_of_thoughts.png", new_name)
|
|
@@ -92,9 +92,11 @@ def get_agent_llm_config_arg(
|
|
|
92
92
|
content = f"{tab}llm_config=" + "{\n"
|
|
93
93
|
content += f'{tab} "config_list": ['
|
|
94
94
|
got_at_least_one_model = False
|
|
95
|
+
temperature: Optional[float] = None
|
|
95
96
|
for model_id in agent.data.model_ids:
|
|
96
97
|
model = next((m for m in all_models if m.id == model_id), None)
|
|
97
98
|
if model is not None:
|
|
99
|
+
temperature = model.data.temperature
|
|
98
100
|
model_name = model_names[model_id]
|
|
99
101
|
content += "\n" + f"{tab} {model_name}_llm_config,"
|
|
100
102
|
got_at_least_one_model = True
|
|
@@ -102,6 +104,8 @@ def get_agent_llm_config_arg(
|
|
|
102
104
|
return f"{tab}llm_config=False," + "\n"
|
|
103
105
|
content += "\n" + f"{tab} ]," + "\n"
|
|
104
106
|
content += f'{tab} "cache_seed": {cache_seed},' + "\n"
|
|
107
|
+
if temperature is not None:
|
|
108
|
+
content += f'{tab} "temperature": {temperature},' + "\n"
|
|
105
109
|
content += tab + "},\n"
|
|
106
110
|
return content
|
|
107
111
|
|
|
@@ -263,8 +263,8 @@ def get_skill_secrets_import(flow_name: str, skill: WaldiezSkill) -> str:
|
|
|
263
263
|
return ""
|
|
264
264
|
# fmt: on
|
|
265
265
|
module_name = f"{flow_name}_{skill.name}"
|
|
266
|
-
|
|
267
|
-
return f"import {module_name}_secrets{
|
|
266
|
+
type_ignore_noqa = " # type: ignore # noqa"
|
|
267
|
+
return f"import {module_name}_secrets{type_ignore_noqa}" + "\n"
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
def get_agent_skill_registrations(
|
|
@@ -177,8 +177,7 @@ class WaldiezAgent(WaldiezBase):
|
|
|
177
177
|
)
|
|
178
178
|
elif agent_class == "ReasoningAgent":
|
|
179
179
|
imports.add(
|
|
180
|
-
"from autogen.
|
|
181
|
-
"import ReasoningAgent, visualize_tree"
|
|
180
|
+
"from autogen.agents.experimental import ReasoningAgent"
|
|
182
181
|
)
|
|
183
182
|
elif agent_class == "CaptainAgent":
|
|
184
183
|
imports.add(
|
|
@@ -239,7 +239,7 @@ class Waldiez:
|
|
|
239
239
|
self.flow.requirements,
|
|
240
240
|
)
|
|
241
241
|
requirements = set(requirements_list)
|
|
242
|
-
requirements.add(f"pyautogen=={autogen_version}")
|
|
242
|
+
requirements.add(f"pyautogen[openai]=={autogen_version}")
|
|
243
243
|
if self.has_rag_agents:
|
|
244
244
|
rag_extras = get_retrievechat_extra_requirements(self.agents)
|
|
245
245
|
requirements.update(rag_extras)
|
|
@@ -203,7 +203,9 @@ class WaldiezRunner:
|
|
|
203
203
|
"NOTE: If new packages were added and you are using Jupyter, "
|
|
204
204
|
"you might need to restart the kernel."
|
|
205
205
|
)
|
|
206
|
-
results: Union[
|
|
206
|
+
results: Union[
|
|
207
|
+
"ChatResult", List["ChatResult"], Dict[int, "ChatResult"]
|
|
208
|
+
] = []
|
|
207
209
|
with chdir(to=temp_dir):
|
|
208
210
|
self._exporter.export(Path(file_name))
|
|
209
211
|
spec = importlib.util.spec_from_file_location(
|
|
@@ -217,6 +219,7 @@ class WaldiezRunner:
|
|
|
217
219
|
spec.loader.exec_module(module)
|
|
218
220
|
printer("<Waldiez> - Starting workflow...")
|
|
219
221
|
results = module.main()
|
|
222
|
+
printer("<Waldiez> - Workflow finished")
|
|
220
223
|
sys.path.pop(0)
|
|
221
224
|
reset_env_vars(old_vars)
|
|
222
225
|
after_run(
|
|
@@ -248,7 +251,9 @@ class WaldiezRunner:
|
|
|
248
251
|
"NOTE: If new packages were added and you are using Jupyter, "
|
|
249
252
|
"you might need to restart the kernel."
|
|
250
253
|
)
|
|
251
|
-
results: Union[
|
|
254
|
+
results: Union[
|
|
255
|
+
"ChatResult", List["ChatResult"], Dict[int, "ChatResult"]
|
|
256
|
+
] = []
|
|
252
257
|
async with a_chdir(to=temp_dir):
|
|
253
258
|
self._exporter.export(Path(file_name))
|
|
254
259
|
spec = importlib.util.spec_from_file_location(
|
|
@@ -278,7 +283,7 @@ class WaldiezRunner:
|
|
|
278
283
|
output_path: Optional[Union[str, Path]] = None,
|
|
279
284
|
uploads_root: Optional[Union[str, Path]] = None,
|
|
280
285
|
skip_mmd: bool = False,
|
|
281
|
-
) -> Union["ChatResult", List["ChatResult"]]:
|
|
286
|
+
) -> Union["ChatResult", List["ChatResult"], Dict[int, "ChatResult"]]:
|
|
282
287
|
"""Run the Waldiez workflow.
|
|
283
288
|
|
|
284
289
|
Parameters
|
|
@@ -292,7 +297,7 @@ class WaldiezRunner:
|
|
|
292
297
|
|
|
293
298
|
Returns
|
|
294
299
|
-------
|
|
295
|
-
Union[ChatResult, List[ChatResult]]
|
|
300
|
+
Union["ChatResult", List["ChatResult"], Dict[int, "ChatResult"]]
|
|
296
301
|
The result(s) of the chat(s).
|
|
297
302
|
|
|
298
303
|
Raises
|