waldiez 0.1.16__py3-none-any.whl → 0.1.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of waldiez might be problematic. Click here for more details.
- waldiez/_version.py +1 -1
- waldiez/exporting/flow/def_main.py +1 -6
- waldiez/exporting/flow/flow.py +2 -3
- waldiez/models/flow/flow.py +15 -1
- {waldiez-0.1.16.dist-info → waldiez-0.1.17.dist-info}/METADATA +18 -17
- {waldiez-0.1.16.dist-info → waldiez-0.1.17.dist-info}/RECORD +9 -9
- {waldiez-0.1.16.dist-info → waldiez-0.1.17.dist-info}/WHEEL +0 -0
- {waldiez-0.1.16.dist-info → waldiez-0.1.17.dist-info}/entry_points.txt +0 -0
- {waldiez-0.1.16.dist-info → waldiez-0.1.17.dist-info}/licenses/LICENSE +0 -0
waldiez/_version.py
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"""Get the main function (if exporting to python)."""
|
|
2
2
|
|
|
3
|
-
from ..utils import
|
|
4
|
-
get_logging_start_string,
|
|
5
|
-
get_logging_stop_string,
|
|
6
|
-
get_sqlite_to_csv_call_string,
|
|
7
|
-
)
|
|
3
|
+
from ..utils import get_logging_stop_string, get_sqlite_to_csv_call_string
|
|
8
4
|
|
|
9
5
|
|
|
10
6
|
def get_def_main(waldiez_chats: str) -> str:
|
|
@@ -29,7 +25,6 @@ def get_def_main(waldiez_chats: str) -> str:
|
|
|
29
25
|
# type: () -> Union[ChatResult, List[ChatResult]]
|
|
30
26
|
\"\"\"Start chatting.\"\"\"
|
|
31
27
|
"""
|
|
32
|
-
content += get_logging_start_string(1)
|
|
33
28
|
content += f" results = {waldiez_chats}" + "\n"
|
|
34
29
|
content += get_logging_stop_string(1) + "\n"
|
|
35
30
|
content += get_sqlite_to_csv_call_string(1) + "\n"
|
waldiez/exporting/flow/flow.py
CHANGED
|
@@ -159,8 +159,8 @@ def _combine_strings(
|
|
|
159
159
|
) -> str:
|
|
160
160
|
content = get_pylint_ignore_comment(notebook)
|
|
161
161
|
content += imports_string
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
content += get_comment("logging", notebook) + "\n"
|
|
163
|
+
content += get_logging_start_string(tabs=0) + "\n\n"
|
|
164
164
|
content += models_string
|
|
165
165
|
content += get_comment("agents", notebook) + "\n"
|
|
166
166
|
content += agents_string
|
|
@@ -182,7 +182,6 @@ def _combine_strings(
|
|
|
182
182
|
if not notebook:
|
|
183
183
|
content += get_def_main(chats_content)
|
|
184
184
|
else:
|
|
185
|
-
content += get_logging_start_string(tabs=0)
|
|
186
185
|
content += "\n" + chats_content + "\n"
|
|
187
186
|
content += get_logging_stop_string(tabs=0) + "\n"
|
|
188
187
|
content += get_sqlite_to_csv_call_string(tabs=0) + "\n"
|
waldiez/models/flow/flow.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Waldiez flow model."""
|
|
2
2
|
|
|
3
3
|
import uuid
|
|
4
|
+
from datetime import datetime, timezone
|
|
4
5
|
from typing import List, Optional, Tuple
|
|
5
6
|
|
|
6
7
|
from pydantic import Field, model_validator
|
|
@@ -12,6 +13,19 @@ from ..common import WaldiezBase, now
|
|
|
12
13
|
from .flow_data import WaldiezFlowData
|
|
13
14
|
|
|
14
15
|
|
|
16
|
+
def id_factory() -> str:
|
|
17
|
+
"""Generate a unique ID.
|
|
18
|
+
|
|
19
|
+
Returns
|
|
20
|
+
-------
|
|
21
|
+
str
|
|
22
|
+
The unique ID.
|
|
23
|
+
"""
|
|
24
|
+
now_td = datetime.now(timezone.utc)
|
|
25
|
+
now_str = now_td.strftime("%Y%m%d%H%M%S%f")
|
|
26
|
+
return f"{now_str}-{uuid.uuid4().hex}"
|
|
27
|
+
|
|
28
|
+
|
|
15
29
|
class WaldiezFlow(WaldiezBase):
|
|
16
30
|
"""Flow data class.
|
|
17
31
|
|
|
@@ -44,7 +58,7 @@ class WaldiezFlow(WaldiezBase):
|
|
|
44
58
|
Field(
|
|
45
59
|
description="The ID of the flow",
|
|
46
60
|
title="ID",
|
|
47
|
-
default_factory=
|
|
61
|
+
default_factory=id_factory,
|
|
48
62
|
),
|
|
49
63
|
]
|
|
50
64
|
type: Annotated[
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: waldiez
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.17
|
|
4
4
|
Summary: waldiez
|
|
5
5
|
Project-URL: homepage, https://waldiez.github.io/waldiez/
|
|
6
6
|
Project-URL: repository, https://github.com/waldiez/waldiez.git
|
|
@@ -17,25 +17,26 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
18
|
Requires-Python: <3.13,>=3.10
|
|
19
19
|
Requires-Dist: jupytext
|
|
20
|
-
Requires-Dist: pyautogen==0.5.
|
|
20
|
+
Requires-Dist: pyautogen==0.5.3
|
|
21
21
|
Requires-Dist: pydantic>=2.0
|
|
22
22
|
Requires-Dist: typer<0.13,>=0.9
|
|
23
23
|
Provides-Extra: ag2-extras
|
|
24
24
|
Requires-Dist: pgvector>=0.3.6; extra == 'ag2-extras'
|
|
25
25
|
Requires-Dist: psycopg[binary]>=3.2.3; extra == 'ag2-extras'
|
|
26
|
-
Requires-Dist: pyautogen[anthropic]==0.5.
|
|
27
|
-
Requires-Dist: pyautogen[bedrock]==0.5.
|
|
28
|
-
Requires-Dist: pyautogen[captainagent]==0.5.
|
|
29
|
-
Requires-Dist: pyautogen[gemini]==0.5.
|
|
30
|
-
Requires-Dist: pyautogen[groq]==0.5.
|
|
31
|
-
Requires-Dist: pyautogen[lmm]==0.5.
|
|
32
|
-
Requires-Dist: pyautogen[mistral]==0.5.
|
|
33
|
-
Requires-Dist: pyautogen[
|
|
34
|
-
Requires-Dist: pyautogen[retrievechat-
|
|
35
|
-
Requires-Dist: pyautogen[retrievechat-
|
|
36
|
-
Requires-Dist: pyautogen[retrievechat]==0.5.
|
|
37
|
-
Requires-Dist: pyautogen[
|
|
38
|
-
Requires-Dist: pyautogen[
|
|
26
|
+
Requires-Dist: pyautogen[anthropic]==0.5.3; extra == 'ag2-extras'
|
|
27
|
+
Requires-Dist: pyautogen[bedrock]==0.5.3; extra == 'ag2-extras'
|
|
28
|
+
Requires-Dist: pyautogen[captainagent]==0.5.3; extra == 'ag2-extras'
|
|
29
|
+
Requires-Dist: pyautogen[gemini]==0.5.3; extra == 'ag2-extras'
|
|
30
|
+
Requires-Dist: pyautogen[groq]==0.5.3; extra == 'ag2-extras'
|
|
31
|
+
Requires-Dist: pyautogen[lmm]==0.5.3; extra == 'ag2-extras'
|
|
32
|
+
Requires-Dist: pyautogen[mistral]==0.5.3; extra == 'ag2-extras'
|
|
33
|
+
Requires-Dist: pyautogen[neo4j]==0.5.3; extra == 'ag2-extras'
|
|
34
|
+
Requires-Dist: pyautogen[retrievechat-mongodb]==0.5.3; extra == 'ag2-extras'
|
|
35
|
+
Requires-Dist: pyautogen[retrievechat-pgvector]==0.5.3; extra == 'ag2-extras'
|
|
36
|
+
Requires-Dist: pyautogen[retrievechat-qdrant]==0.5.3; (python_version < '3.13') and extra == 'ag2-extras'
|
|
37
|
+
Requires-Dist: pyautogen[retrievechat]==0.5.3; extra == 'ag2-extras'
|
|
38
|
+
Requires-Dist: pyautogen[together]==0.5.3; extra == 'ag2-extras'
|
|
39
|
+
Requires-Dist: pyautogen[websurfer]==0.5.3; extra == 'ag2-extras'
|
|
39
40
|
Requires-Dist: pymongo==4.10.1; extra == 'ag2-extras'
|
|
40
41
|
Requires-Dist: qdrant-client[fastembed]; (python_version >= '3.13') and extra == 'ag2-extras'
|
|
41
42
|
Provides-Extra: dev
|
|
@@ -49,7 +50,7 @@ Requires-Dist: pre-commit==4.0.1; extra == 'dev'
|
|
|
49
50
|
Requires-Dist: pydocstyle==6.3.0; extra == 'dev'
|
|
50
51
|
Requires-Dist: pylint==3.3.2; extra == 'dev'
|
|
51
52
|
Requires-Dist: python-dotenv==1.0.1; extra == 'dev'
|
|
52
|
-
Requires-Dist: ruff==0.8.
|
|
53
|
+
Requires-Dist: ruff==0.8.3; extra == 'dev'
|
|
53
54
|
Requires-Dist: toml; (python_version <= '3.10') and extra == 'dev'
|
|
54
55
|
Requires-Dist: types-pyyaml==6.0.12.20240917; extra == 'dev'
|
|
55
56
|
Requires-Dist: types-toml==0.10.8.20240310; extra == 'dev'
|
|
@@ -59,7 +60,7 @@ Requires-Dist: mdx-include==1.4.2; extra == 'docs'
|
|
|
59
60
|
Requires-Dist: mdx-truly-sane-lists==1.3; extra == 'docs'
|
|
60
61
|
Requires-Dist: mkdocs-jupyter==0.25.1; extra == 'docs'
|
|
61
62
|
Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == 'docs'
|
|
62
|
-
Requires-Dist: mkdocs-material==9.5.
|
|
63
|
+
Requires-Dist: mkdocs-material==9.5.48; extra == 'docs'
|
|
63
64
|
Requires-Dist: mkdocs-minify-html-plugin==0.2.3; extra == 'docs'
|
|
64
65
|
Requires-Dist: mkdocs==1.6.1; extra == 'docs'
|
|
65
66
|
Requires-Dist: mkdocstrings-python==1.12.2; extra == 'docs'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
waldiez/__init__.py,sha256=ASGmxP3JcASIv89_tMYhYxvW0FlHK1jM0Nfb1hMN-z0,722
|
|
2
2
|
waldiez/__main__.py,sha256=mUQWu4CF03Jbbscvcfb_9EFTnIMliJJJmAuWf0sRRZU,110
|
|
3
|
-
waldiez/_version.py,sha256=
|
|
3
|
+
waldiez/_version.py,sha256=JZiuUXn7Efmws1BQsY7xqwPgrly1krkrpN-yh6tNz8s,63
|
|
4
4
|
waldiez/cli.py,sha256=Ayp6Xu2HSBBFIouYh8cArjOjgXv5kbtZd_PYewcDklU,6347
|
|
5
5
|
waldiez/conflict_checker.py,sha256=E-w0TfTivDAVpNvjd_NSBeaaFsWtWAyxKoSz0-g6x2U,880
|
|
6
6
|
waldiez/exporter.py,sha256=iKe-l_Me8NRWsXHIdBcrOrnLT9XIyp4iYi4HLuuj2jA,9342
|
|
@@ -27,8 +27,8 @@ waldiez/exporting/chats/chats.py,sha256=xI5ZzWpcqYz8Kuu7B9pU6iHN16wUwHxOvYFhH5vx
|
|
|
27
27
|
waldiez/exporting/chats/helpers.py,sha256=K-IwBAG4-t7NLBP8Qs8_a2AEoKyoLw_B6eHzgXpOshA,13352
|
|
28
28
|
waldiez/exporting/chats/nested.py,sha256=nYzxOTHSBpyFdqvX_NtZUvUgTdmoTZcCRaGTFzdnmII,7916
|
|
29
29
|
waldiez/exporting/flow/__init__.py,sha256=WhdPrjXQAcihrS1KUtPNgbx0y1tqD5HtGykzpEAcsBM,98
|
|
30
|
-
waldiez/exporting/flow/def_main.py,sha256=
|
|
31
|
-
waldiez/exporting/flow/flow.py,sha256=
|
|
30
|
+
waldiez/exporting/flow/def_main.py,sha256=UWNw3xrXLelx39FF5CNIBGMqUiFRfV-T_VdIHs6FQ4o,966
|
|
31
|
+
waldiez/exporting/flow/flow.py,sha256=ewSyWMoAuHekGkh5KnMAN10_cYv9mmlxzQGzRVQdYpE,6150
|
|
32
32
|
waldiez/exporting/models/__init__.py,sha256=_Yt6sBAyRrN3LSAg4Nrh4dP7pmtIzGzWu4G1AutxK-Q,7078
|
|
33
33
|
waldiez/exporting/skills/__init__.py,sha256=RQUDX77TQR8zI0mSXpCiK6wjx6Db3MapI_BEGQWV61A,4638
|
|
34
34
|
waldiez/exporting/utils/__init__.py,sha256=tP1V4g9-MyARlfOEL_1YWMJNW7UivUrrukq7DIwdq6k,1018
|
|
@@ -77,7 +77,7 @@ waldiez/models/common/__init__.py,sha256=1WhzhGYYUWMuHgxjiT1UralMClutO3_5BhFtnkh
|
|
|
77
77
|
waldiez/models/common/base.py,sha256=Aef91uGtbDfpUBGpY0m49L0tBHSaX23xvHDekIq-3H0,1687
|
|
78
78
|
waldiez/models/common/method_utils.py,sha256=K7dNyvqHwvwuULLgn1_uK72Bfnm9d0CYHP3rYW5IgjM,5502
|
|
79
79
|
waldiez/models/flow/__init__.py,sha256=oy_G58xDkZk_LZEvqmr-0MJrpYy1JRf-U-F5-bI1944,162
|
|
80
|
-
waldiez/models/flow/flow.py,sha256=
|
|
80
|
+
waldiez/models/flow/flow.py,sha256=1r0g_vBMd2PKcRC8P1ylWOUW3zwb529oOglf91SkILI,9663
|
|
81
81
|
waldiez/models/flow/flow_data.py,sha256=m-RYaqlWjVpjyUzX9iAtXn1GOH0pFGKd2QD3e_e7yrk,2694
|
|
82
82
|
waldiez/models/model/__init__.py,sha256=32Xox2Qw1jsf7ZCcoi0vMgZ5yxulLmtBrRRxq3FBAks,246
|
|
83
83
|
waldiez/models/model/model.py,sha256=aG-9YAyLDYPqF-GWRTfuI7hP1Z7tfWWfj7Dhy1Y2GSc,4997
|
|
@@ -85,8 +85,8 @@ waldiez/models/model/model_data.py,sha256=VLPb60rJeZEgVZCjjkQGiwTrKz7OddVLrXCrEu
|
|
|
85
85
|
waldiez/models/skill/__init__.py,sha256=rU88bajKOGMYoHFcE8MP0jW9H0MswbQmvz5wxS35BYE,169
|
|
86
86
|
waldiez/models/skill/skill.py,sha256=fhsAI413an2_d4DBIkf7dzEuWk6rGs2t4sl97a4dj20,3473
|
|
87
87
|
waldiez/models/skill/skill_data.py,sha256=RTWn8Od6w7g-nRIpsS29sqZ8sPm5dCPiK7-qXmU-KD4,815
|
|
88
|
-
waldiez-0.1.
|
|
89
|
-
waldiez-0.1.
|
|
90
|
-
waldiez-0.1.
|
|
91
|
-
waldiez-0.1.
|
|
92
|
-
waldiez-0.1.
|
|
88
|
+
waldiez-0.1.17.dist-info/METADATA,sha256=xfStnh_3pvXf9OU87UM3VMr3l8mchce7g2-OnfCI3mg,10262
|
|
89
|
+
waldiez-0.1.17.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
90
|
+
waldiez-0.1.17.dist-info/entry_points.txt,sha256=9MQ8Y1rD19CU7UwjNPwoyTRpQsPs2QimjrtwTD0bD6k,44
|
|
91
|
+
waldiez-0.1.17.dist-info/licenses/LICENSE,sha256=VQEHM6WMQLRu1qaGl3GWsoOknDwro-69eGo4NLIJPIM,1064
|
|
92
|
+
waldiez-0.1.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|