waldiez 0.1.8__py3-none-any.whl → 0.1.9__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 CHANGED
@@ -1,3 +1,3 @@
1
1
  """Version information for Waldiez."""
2
2
 
3
- __version__ = "0.1.8"
3
+ __version__ = "0.1.9"
@@ -32,9 +32,9 @@ def _get_chroma_client_string(agent: WaldiezRagUser) -> Tuple[str, str]:
32
32
  # SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes
33
33
  # in position 2-3: truncated \UXXXXXXXX escape
34
34
  local_path = Path(agent.retrieve_config.db_config.local_storage_path)
35
- client_str += f'PersistentClient(path=r"{local_path}")'
35
+ client_str += f'PersistentClient(path=r"{local_path}", settings=Settings(anonymized_telemetry=False))'
36
36
  else:
37
- client_str += "Client()"
37
+ client_str += "Client(Settings(anonymized_telemetry=False))"
38
38
  return client_str, to_import
39
39
 
40
40
 
@@ -97,11 +97,11 @@ def get_chroma_db_args(
97
97
  - The custom embedding function.
98
98
  - Any additional content to be used before the `kwargs` string.
99
99
  """
100
- client_str, to_import_client = _get_chroma_client_string(agent)
100
+ client_str, client_to_import = _get_chroma_client_string(agent)
101
101
  embedding_function_arg, to_import_embedding, embedding_function_body = (
102
102
  _get_chroma_embedding_function_string(agent, agent_name)
103
103
  )
104
- to_import = {to_import_client}
104
+ to_import = {client_to_import, "from chromadb.config import Settings"}
105
105
  if to_import_embedding:
106
106
  to_import.add(to_import_embedding)
107
107
  kwarg_string = (
@@ -2,11 +2,12 @@
2
2
 
3
3
  import os
4
4
  from pathlib import Path
5
+ from typing import Optional
5
6
 
6
7
  # pylint: disable=broad-except
7
8
 
8
9
 
9
- def _is_local_path(string: str) -> bool:
10
+ def _check_local_path(string: str) -> Optional[Path]:
10
11
  """Check if a string is a local path.
11
12
 
12
13
  Parameters
@@ -21,9 +22,11 @@ def _is_local_path(string: str) -> bool:
21
22
  """
22
23
  try:
23
24
  path = Path(string).resolve()
24
- return path.exists()
25
25
  except Exception: # pragma: no cover
26
- return False
26
+ return None
27
+ if path.exists():
28
+ return path
29
+ return None
27
30
 
28
31
 
29
32
  def get_path_string(string: str) -> str:
@@ -41,8 +44,8 @@ def get_path_string(string: str) -> str:
41
44
  """
42
45
  # On windows, we get paths like "C:\path\to\file"
43
46
  # if so, let's try to avoid invalid escape sequences
44
- if not _is_local_path(string):
47
+ if not _check_local_path(string):
45
48
  return string
46
49
  if os.name == "nt": # pragma: no cover
47
50
  return f"r'{string}'"
48
- return f"'{string}'"
51
+ return f"{Path(string).resolve()}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: waldiez
3
- Version: 0.1.8
3
+ Version: 0.1.9
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
@@ -55,7 +55,7 @@ Requires-Dist: mdx-include==1.4.2; extra == 'docs'
55
55
  Requires-Dist: mdx-truly-sane-lists==1.3; extra == 'docs'
56
56
  Requires-Dist: mkdocs-jupyter==0.25.1; extra == 'docs'
57
57
  Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == 'docs'
58
- Requires-Dist: mkdocs-material==9.5.44; extra == 'docs'
58
+ Requires-Dist: mkdocs-material==9.5.45; extra == 'docs'
59
59
  Requires-Dist: mkdocs-minify-html-plugin==0.2.3; extra == 'docs'
60
60
  Requires-Dist: mkdocs==1.6.1; extra == 'docs'
61
61
  Requires-Dist: mkdocstrings-python==1.12.2; extra == 'docs'
@@ -1,6 +1,6 @@
1
1
  waldiez/__init__.py,sha256=AuVJ8ZOPmJoTeKQ_ryezU14tG-DFRb7djvr72a5G63Y,251
2
2
  waldiez/__main__.py,sha256=9xR-F2ohZcRPDG6KrM7cJpXciKX-u6WdL221ckyJ04k,112
3
- waldiez/_version.py,sha256=H1WLgLEQD6NHtFBb8DOYUVOZxL9vh2tPJJn9fu19O2k,62
3
+ waldiez/_version.py,sha256=BAPW_qv-vw1iBQm2bCpQfS6VnM42uoEaWNsSV8dCyr8,62
4
4
  waldiez/cli.py,sha256=wStRkt056Y-F2CcuD6Zlov-ooUpWndyNesV9s_MjyHU,4798
5
5
  waldiez/exporter.py,sha256=iKe-l_Me8NRWsXHIdBcrOrnLT9XIyp4iYi4HLuuj2jA,9342
6
6
  waldiez/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -15,7 +15,7 @@ waldiez/exporting/agents/llm_config.py,sha256=A88e-RKp09r8n9MG11hArpITzxK8nVrTZ6
15
15
  waldiez/exporting/agents/teachability.py,sha256=ame4hHJCZRBp7hAQGZzv2Cjs6QtcV9vlQ1zheMEMac0,1103
16
16
  waldiez/exporting/agents/termination_message.py,sha256=tzI4-tcveYKBVx5PsznQZwAoghSX3mbn_vPu4rX8tuU,1276
17
17
  waldiez/exporting/agents/rag_user/__init__.py,sha256=01F4gwgUwtSpZbGXcfieqIuLNT64u9KiqMIB2f0mplI,196
18
- waldiez/exporting/agents/rag_user/chroma_utils.py,sha256=4kZor8wgTaA7Mw9lUEHu594QtbTmiD2iZafhmOo7_9s,4579
18
+ waldiez/exporting/agents/rag_user/chroma_utils.py,sha256=JZJwISn75Hklm50lqKdGNRHuMg81AnDNTMqoI-TJLRk,4702
19
19
  waldiez/exporting/agents/rag_user/mongo_utils.py,sha256=y5IL-Anfktg9cYo2o-ED1A7lwHQWdVMWD_W1AT5_RmE,2664
20
20
  waldiez/exporting/agents/rag_user/pgvector_utils.py,sha256=EyGDwvo1Pe8bqoJl3NFpqK6zizN81lPPaSMBMQF79Dc,2722
21
21
  waldiez/exporting/agents/rag_user/qdrant_utils.py,sha256=tn1A7pjQjJfGS33ALgnPYTz7xu8rVBidcc5-WHLq8e8,3487
@@ -37,7 +37,7 @@ waldiez/exporting/utils/logging_utils.py,sha256=DfnC13PqnadG0nRxz_gHA4IIZGnMawpT
37
37
  waldiez/exporting/utils/method_utils.py,sha256=7-RUMTylNM2W0iM1bPX2_Gn3553XZSl2s2VGEijxNp4,891
38
38
  waldiez/exporting/utils/naming.py,sha256=VdoVODQduhXIs9hQFWUVEVqTaSyNDt7rkECsuIgXYwI,3196
39
39
  waldiez/exporting/utils/object_string.py,sha256=2kdIu4in3iUV92a2KbLWwp9POhvY-fzF_r2AGVnCKls,2166
40
- waldiez/exporting/utils/path_check.py,sha256=laGSLLiiwIIKxpAp5JIbtEvurbvXGkT4Hx0lemJcA9s,976
40
+ waldiez/exporting/utils/path_check.py,sha256=aO49sbk6hUHEr65UjNNUSKO5WCGnQitiT733W-kGVtI,1062
41
41
  waldiez/io/__init__.py,sha256=-w6ywIjG8ByxGtpSeRt1bjhnP4CZzpHf8WRWckjs4ng,5172
42
42
  waldiez/models/__init__.py,sha256=IMq8vzuAgmv92kHSSuZQLF38vVd31ojgOHonuHqWYj0,2888
43
43
  waldiez/models/waldiez.py,sha256=Oxav9QCYlkfxrNLlcJC89gT0UC4Ls5fTn4kL0PypyGw,9066
@@ -84,8 +84,8 @@ waldiez/models/model/model_data.py,sha256=pDPKUbltaXWjCuDArgwTOEHw_igfk_DkxzFzdn
84
84
  waldiez/models/skill/__init__.py,sha256=rU88bajKOGMYoHFcE8MP0jW9H0MswbQmvz5wxS35BYE,169
85
85
  waldiez/models/skill/skill.py,sha256=fhsAI413an2_d4DBIkf7dzEuWk6rGs2t4sl97a4dj20,3473
86
86
  waldiez/models/skill/skill_data.py,sha256=RTWn8Od6w7g-nRIpsS29sqZ8sPm5dCPiK7-qXmU-KD4,815
87
- waldiez-0.1.8.dist-info/METADATA,sha256=M3jPlHQhUMCvzgvm8LHzaBIjKl2GX8ARC-mtrsz90hE,8679
88
- waldiez-0.1.8.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
89
- waldiez-0.1.8.dist-info/entry_points.txt,sha256=5Po4yQXPa_QEdtTevpEBgr3rGoIvDMeQuJR2zqwBLBo,45
90
- waldiez-0.1.8.dist-info/licenses/LICENSE,sha256=VQEHM6WMQLRu1qaGl3GWsoOknDwro-69eGo4NLIJPIM,1064
91
- waldiez-0.1.8.dist-info/RECORD,,
87
+ waldiez-0.1.9.dist-info/METADATA,sha256=tCHxrAXmDgRKloonwepcZQO-9X4MXYpQ5Hq523L4NEY,8679
88
+ waldiez-0.1.9.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
89
+ waldiez-0.1.9.dist-info/entry_points.txt,sha256=5Po4yQXPa_QEdtTevpEBgr3rGoIvDMeQuJR2zqwBLBo,45
90
+ waldiez-0.1.9.dist-info/licenses/LICENSE,sha256=VQEHM6WMQLRu1qaGl3GWsoOknDwro-69eGo4NLIJPIM,1064
91
+ waldiez-0.1.9.dist-info/RECORD,,