waldiez 0.3.8__tar.gz → 0.3.10__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.3.8 → waldiez-0.3.10}/PKG-INFO +10 -10
- {waldiez-0.3.8 → waldiez-0.3.10}/pyproject.toml +9 -11
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/_version.py +1 -1
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/utils/naming.py +7 -3
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/utils/flow_names.py +1 -1
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/utils/importing_utils.py +3 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/common/method_utils.py +4 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/flow/flow_data.py +3 -1
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/runner.py +10 -5
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/utils/cli_extras/jupyter.py +0 -1
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/utils/cli_extras/studio.py +1 -1
- {waldiez-0.3.8 → waldiez-0.3.10}/.gitignore +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/LICENSE +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/NOTICE.md +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/README.md +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/__main__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/cli.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporter.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/agent_exporter.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/agent_class_name.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/agent_imports.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/code_execution.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/group_manager.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/rag_user/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/rag_user/chroma_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/rag_user/mongo_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/rag_user/pgvector_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/rag_user/qdrant_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/rag_user/rag_user.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/rag_user/vector_db.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/reasoning.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/swarm_agent.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/teachability.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/agent/utils/termination_message.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/agent_position.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/base_exporter.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/export_position.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/import_position.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/mixin.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/utils/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/utils/comments.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/utils/path_check.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/base/utils/to_string.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/chats/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/chats/chats_exporter.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/chats/utils/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/chats/utils/common.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/chats/utils/nested.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/chats/utils/sequential.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/chats/utils/single_chat.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/chats/utils/swarm.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/flow_exporter.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/utils/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/utils/agent_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/utils/chat_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/utils/def_main.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/utils/flow_content.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/flow/utils/logging_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/models/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/models/models_exporter.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/models/utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/skills/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/skills/skills_exporter.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/exporting/skills/utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agent/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agent/agent.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agent/agent_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agent/code_execution.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agent/linked_skill.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agent/nested_chat.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agent/teachability.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agent/termination_message.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/agents.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/assistant/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/assistant/assistant.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/assistant/assistant_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/group_manager/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/group_manager/group_manager.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/group_manager/group_manager_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/group_manager/speakers.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/rag_user/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/rag_user/rag_user.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/rag_user/rag_user_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/rag_user/retrieve_config.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/rag_user/vector_db_config.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/reasoning/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/reasoning/reasoning_agent.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/reasoning/reasoning_agent_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/reasoning/reasoning_agent_reason_config.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/after_work.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/on_condition.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/on_condition_available.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/on_condition_target.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/swarm_agent.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/swarm_agent_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/update_system_message.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/user_proxy/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/user_proxy/user_proxy.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/user_proxy/user_proxy_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/chat/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/chat/chat.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/chat/chat_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/chat/chat_message.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/chat/chat_nested.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/chat/chat_summary.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/common/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/common/base.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/common/date_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/common/dict_utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/flow/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/flow/flow.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/flow/utils.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/model/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/model/model.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/model/model_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/skill/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/skill/skill.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/skill/skill_data.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/waldiez.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/py.typed +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/running/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/running/environment.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/running/gen_seq_diagram.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/running/running.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/utils/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/utils/cli_extras/__init__.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/utils/conflict_checker.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/utils/flaml_warnings.py +0 -0
- {waldiez-0.3.8 → waldiez-0.3.10}/waldiez/utils/pysqlite3_checker.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: waldiez
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.10
|
|
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
|
|
@@ -23,13 +23,13 @@ Requires-Dist: aiofiles==24.1.0
|
|
|
23
23
|
Requires-Dist: aiosqlite==0.20.0
|
|
24
24
|
Requires-Dist: asyncer==0.0.8
|
|
25
25
|
Requires-Dist: graphviz==0.20.3
|
|
26
|
-
Requires-Dist: httpx<
|
|
26
|
+
Requires-Dist: httpx<1
|
|
27
27
|
Requires-Dist: jupytext
|
|
28
28
|
Requires-Dist: pandas>=2
|
|
29
29
|
Requires-Dist: parso==0.8.4
|
|
30
30
|
Requires-Dist: pyautogen==0.7.2
|
|
31
31
|
Requires-Dist: pydantic<3,>=2.6.1
|
|
32
|
-
Requires-Dist: typer<0.
|
|
32
|
+
Requires-Dist: typer<0.16,>=0.9
|
|
33
33
|
Provides-Extra: ag2-extras
|
|
34
34
|
Requires-Dist: autogen[captainagent]==0.7.2; (platform_system == 'Linux') and extra == 'ag2-extras'
|
|
35
35
|
Requires-Dist: chromadb; (platform_system != 'Linux') and extra == 'ag2-extras'
|
|
@@ -49,20 +49,20 @@ Requires-Dist: pyautogen[retrievechat-qdrant]==0.7.2; (python_version < '3.13')
|
|
|
49
49
|
Requires-Dist: pyautogen[retrievechat]==0.7.2; extra == 'ag2-extras'
|
|
50
50
|
Requires-Dist: pyautogen[together]==0.7.2; extra == 'ag2-extras'
|
|
51
51
|
Requires-Dist: pyautogen[websurfer]==0.7.2; extra == 'ag2-extras'
|
|
52
|
-
Requires-Dist: pymongo
|
|
52
|
+
Requires-Dist: pymongo>=4.10.1; extra == 'ag2-extras'
|
|
53
53
|
Requires-Dist: qdrant-client[fastembed]; (python_version >= '3.13') and extra == 'ag2-extras'
|
|
54
54
|
Requires-Dist: sentence-transformers>=2.0.0; (platform_system != 'Linux') and extra == 'ag2-extras'
|
|
55
55
|
Provides-Extra: dev
|
|
56
56
|
Requires-Dist: autoflake==2.3.1; extra == 'dev'
|
|
57
57
|
Requires-Dist: bandit==1.8.2; extra == 'dev'
|
|
58
|
-
Requires-Dist: black[jupyter]==
|
|
58
|
+
Requires-Dist: black[jupyter]==25.1.0; extra == 'dev'
|
|
59
59
|
Requires-Dist: flake8==7.1.1; extra == 'dev'
|
|
60
|
-
Requires-Dist: isort==
|
|
60
|
+
Requires-Dist: isort==6.0.0; extra == 'dev'
|
|
61
61
|
Requires-Dist: mypy==1.14.1; extra == 'dev'
|
|
62
62
|
Requires-Dist: pandas-stubs; extra == 'dev'
|
|
63
63
|
Requires-Dist: pre-commit==4.1.0; extra == 'dev'
|
|
64
64
|
Requires-Dist: pydocstyle==6.3.0; extra == 'dev'
|
|
65
|
-
Requires-Dist: pylint==3.3.
|
|
65
|
+
Requires-Dist: pylint==3.3.4; extra == 'dev'
|
|
66
66
|
Requires-Dist: python-dotenv==1.0.1; extra == 'dev'
|
|
67
67
|
Requires-Dist: ruff==0.9.3; extra == 'dev'
|
|
68
68
|
Requires-Dist: toml; (python_version <= '3.10') and extra == 'dev'
|
|
@@ -81,11 +81,11 @@ Requires-Dist: mkdocstrings-python==1.13.0; extra == 'docs'
|
|
|
81
81
|
Requires-Dist: mkdocstrings[crystal,python]==0.27.0; extra == 'docs'
|
|
82
82
|
Provides-Extra: jupyter
|
|
83
83
|
Requires-Dist: jupyterlab>=4.3.0; extra == 'jupyter'
|
|
84
|
-
Requires-Dist: waldiez-jupyter==0.3.
|
|
84
|
+
Requires-Dist: waldiez-jupyter==0.3.10; extra == 'jupyter'
|
|
85
85
|
Provides-Extra: studio
|
|
86
|
-
Requires-Dist: waldiez-studio==0.3.
|
|
86
|
+
Requires-Dist: waldiez-studio==0.3.10; extra == 'studio'
|
|
87
87
|
Provides-Extra: test
|
|
88
|
-
Requires-Dist: pytest-asyncio==0.25.
|
|
88
|
+
Requires-Dist: pytest-asyncio==0.25.3; extra == 'test'
|
|
89
89
|
Requires-Dist: pytest-cov==6.0.0; extra == 'test'
|
|
90
90
|
Requires-Dist: pytest-html==4.1.1; extra == 'test'
|
|
91
91
|
Requires-Dist: pytest-sugar==1.0.0; extra == 'test'
|
|
@@ -33,10 +33,8 @@ dependencies =[
|
|
|
33
33
|
"parso==0.8.4",
|
|
34
34
|
"pydantic>=2.6.1,<3",
|
|
35
35
|
# together(ag2 extra) 1.2.0 depends on typer<0.13 and >=0.9
|
|
36
|
-
"typer>=0.9,<0.
|
|
37
|
-
|
|
38
|
-
# TypeError: Client.__init__() got an unexpected keyword argument 'proxies'
|
|
39
|
-
"httpx<0.28.0,>=0.27.0",
|
|
36
|
+
"typer>=0.9,<0.16",
|
|
37
|
+
"httpx<1",
|
|
40
38
|
]
|
|
41
39
|
|
|
42
40
|
[project.urls]
|
|
@@ -53,23 +51,23 @@ exclude = [ "**/example.py" ]
|
|
|
53
51
|
|
|
54
52
|
[project.optional-dependencies]
|
|
55
53
|
studio = [
|
|
56
|
-
"waldiez_studio==0.3.
|
|
54
|
+
"waldiez_studio==0.3.10",
|
|
57
55
|
]
|
|
58
56
|
jupyter = [
|
|
59
|
-
"waldiez_jupyter==0.3.
|
|
57
|
+
"waldiez_jupyter==0.3.10",
|
|
60
58
|
"jupyterlab>=4.3.0",
|
|
61
59
|
]
|
|
62
60
|
dev = [
|
|
63
61
|
'autoflake==2.3.1',
|
|
64
62
|
'bandit==1.8.2',
|
|
65
|
-
'black[jupyter]==
|
|
63
|
+
'black[jupyter]==25.1.0',
|
|
66
64
|
'flake8==7.1.1',
|
|
67
|
-
'isort==
|
|
65
|
+
'isort==6.0.0',
|
|
68
66
|
'mypy==1.14.1',
|
|
69
67
|
"pandas-stubs",
|
|
70
68
|
'pre-commit==4.1.0',
|
|
71
69
|
'pydocstyle==6.3.0',
|
|
72
|
-
'pylint==3.3.
|
|
70
|
+
'pylint==3.3.4',
|
|
73
71
|
'python-dotenv==1.0.1',
|
|
74
72
|
'ruff==0.9.3',
|
|
75
73
|
'types-PyYAML==6.0.12.20241230',
|
|
@@ -122,11 +120,11 @@ ag2_extras =[
|
|
|
122
120
|
'pyautogen[together]==0.7.2',
|
|
123
121
|
'pyautogen[together]==0.7.2',
|
|
124
122
|
'pyautogen[websurfer]==0.7.2',
|
|
125
|
-
'pymongo
|
|
123
|
+
'pymongo>=4.10.1',
|
|
126
124
|
]
|
|
127
125
|
test = [
|
|
128
126
|
'pytest==8.3.4',
|
|
129
|
-
'pytest-asyncio==0.25.
|
|
127
|
+
'pytest-asyncio==0.25.3',
|
|
130
128
|
'pytest-cov==6.0.0',
|
|
131
129
|
'pytest-html==4.1.1',
|
|
132
130
|
'pytest-sugar==1.0.0',
|
|
@@ -15,11 +15,13 @@ get_escaped_string
|
|
|
15
15
|
import re
|
|
16
16
|
from typing import Dict, Tuple
|
|
17
17
|
|
|
18
|
+
MAX_VARIABLE_LENGTH = 46
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
def get_valid_python_variable_name(
|
|
20
22
|
possible: str,
|
|
21
23
|
prefix: str = "w",
|
|
22
|
-
max_length: int =
|
|
24
|
+
max_length: int = MAX_VARIABLE_LENGTH,
|
|
23
25
|
) -> str:
|
|
24
26
|
"""Get a valid Python variable name from a possible name.
|
|
25
27
|
|
|
@@ -78,7 +80,7 @@ def get_valid_instance_name(
|
|
|
78
80
|
instance: Tuple[str, str],
|
|
79
81
|
current_names: Dict[str, str],
|
|
80
82
|
prefix: str = "w",
|
|
81
|
-
max_length: int =
|
|
83
|
+
max_length: int = MAX_VARIABLE_LENGTH,
|
|
82
84
|
) -> Dict[str, str]:
|
|
83
85
|
"""Get a valid instance name.
|
|
84
86
|
|
|
@@ -109,7 +111,9 @@ def get_valid_instance_name(
|
|
|
109
111
|
# already in the current names (it's id)
|
|
110
112
|
return current_names
|
|
111
113
|
new_names = current_names.copy()
|
|
112
|
-
name = get_valid_python_variable_name(
|
|
114
|
+
name = get_valid_python_variable_name(
|
|
115
|
+
possible_name, prefix=prefix, max_length=max_length
|
|
116
|
+
)
|
|
113
117
|
if name in current_names.values():
|
|
114
118
|
name = f"{prefix}_{name}"
|
|
115
119
|
if name in current_names.values():
|
|
@@ -31,7 +31,7 @@ class ResultType(TypedDict):
|
|
|
31
31
|
def ensure_unique_names(
|
|
32
32
|
waldiez: Waldiez,
|
|
33
33
|
get_valid_instance_name: Callable[..., Dict[str, str]],
|
|
34
|
-
max_length: int =
|
|
34
|
+
max_length: int = 46,
|
|
35
35
|
flow_name_max_length: int = 20,
|
|
36
36
|
) -> ResultType:
|
|
37
37
|
"""Ensure unique names for agents, models, skills, and chats and flow.
|
|
@@ -128,6 +128,7 @@ def get_the_imports_string(
|
|
|
128
128
|
"\nimport aiofiles"
|
|
129
129
|
"\nimport aiosqlite"
|
|
130
130
|
"\nimport anyio"
|
|
131
|
+
"\nimport nest_asyncio"
|
|
131
132
|
"\nfrom aiocsv import AsyncDictWriter"
|
|
132
133
|
"\nfrom asyncer import asyncify"
|
|
133
134
|
)
|
|
@@ -143,6 +144,8 @@ def get_the_imports_string(
|
|
|
143
144
|
final_string += "\n".join(local_imports) + "\n"
|
|
144
145
|
while not final_string.endswith("\n\n"):
|
|
145
146
|
final_string += "\n"
|
|
147
|
+
if is_async:
|
|
148
|
+
final_string += "\nnest_asyncio.apply()\n"
|
|
146
149
|
return final_string.replace("\n\n\n", "\n\n") # avoid too many newlines
|
|
147
150
|
|
|
148
151
|
|
|
@@ -9,6 +9,8 @@ import parso
|
|
|
9
9
|
import parso.python
|
|
10
10
|
import parso.tree
|
|
11
11
|
|
|
12
|
+
MAX_VAR_NAME_LENGTH = 64
|
|
13
|
+
|
|
12
14
|
|
|
13
15
|
def parse_code_string(
|
|
14
16
|
code_string: str,
|
|
@@ -220,6 +222,8 @@ def generate_function(
|
|
|
220
222
|
str
|
|
221
223
|
The generated function.
|
|
222
224
|
"""
|
|
225
|
+
if len(function_name) > MAX_VAR_NAME_LENGTH:
|
|
226
|
+
function_name = function_name[:MAX_VAR_NAME_LENGTH]
|
|
223
227
|
function_string = f"def {function_name}("
|
|
224
228
|
if not function_args:
|
|
225
229
|
function_string += ")"
|
|
@@ -146,7 +146,9 @@ class WaldiezFlowData(WaldiezBase):
|
|
|
146
146
|
for index, chat in enumerate(self.chats):
|
|
147
147
|
id_to_chat_id[chat.id] = index
|
|
148
148
|
chat.set_chat_id(index)
|
|
149
|
-
|
|
149
|
+
if not self.is_async:
|
|
150
|
+
return self
|
|
151
|
+
# also update the chat prerequisites (if async)
|
|
150
152
|
# we have ids(str), not chat_ids(int)
|
|
151
153
|
for chat in self.chats:
|
|
152
154
|
chat_prerequisites = []
|
|
@@ -16,8 +16,6 @@ from pathlib import Path
|
|
|
16
16
|
from types import TracebackType
|
|
17
17
|
from typing import TYPE_CHECKING, Dict, List, Optional, Type, Union
|
|
18
18
|
|
|
19
|
-
from asyncer import syncify
|
|
20
|
-
|
|
21
19
|
from .exporter import WaldiezExporter
|
|
22
20
|
from .models.waldiez import Waldiez
|
|
23
21
|
from .running import (
|
|
@@ -291,9 +289,16 @@ class WaldiezRunner:
|
|
|
291
289
|
If the workflow is already running.
|
|
292
290
|
"""
|
|
293
291
|
if self.waldiez.is_async:
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
292
|
+
# pylint: disable=import-outside-toplevel
|
|
293
|
+
from anyio.from_thread import start_blocking_portal
|
|
294
|
+
|
|
295
|
+
with start_blocking_portal(backend="asyncio") as portal:
|
|
296
|
+
return portal.call(
|
|
297
|
+
self._a_run,
|
|
298
|
+
output_path,
|
|
299
|
+
uploads_root,
|
|
300
|
+
skip_mmd,
|
|
301
|
+
)
|
|
297
302
|
if self._running is True:
|
|
298
303
|
raise RuntimeError("Workflow already running")
|
|
299
304
|
self._running = True
|
|
@@ -13,7 +13,7 @@ HAVE_STUDIO = False
|
|
|
13
13
|
studio_app: Callable[..., Any] | None = None
|
|
14
14
|
|
|
15
15
|
try:
|
|
16
|
-
from waldiez_studio.cli import run # type: ignore[
|
|
16
|
+
from waldiez_studio.cli import run # type: ignore[unused-ignore, import-not-found, import-untyped] # noqa # flake8: noqa
|
|
17
17
|
|
|
18
18
|
studio_app = run
|
|
19
19
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/reasoning/reasoning_agent_reason_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{waldiez-0.3.8 → waldiez-0.3.10}/waldiez/models/agents/swarm_agent/on_condition_available.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|