user-simulator 0.2.3__py3-none-any.whl → 0.2.5__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.
- user_sim/cli/sensei_chat.py +9 -2
- user_sim/utils/config.py +1 -0
- {user_simulator-0.2.3.dist-info → user_simulator-0.2.5.dist-info}/METADATA +1 -1
- {user_simulator-0.2.3.dist-info → user_simulator-0.2.5.dist-info}/RECORD +8 -8
- {user_simulator-0.2.3.dist-info → user_simulator-0.2.5.dist-info}/WHEEL +0 -0
- {user_simulator-0.2.3.dist-info → user_simulator-0.2.5.dist-info}/entry_points.txt +0 -0
- {user_simulator-0.2.3.dist-info → user_simulator-0.2.5.dist-info}/licenses/LICENSE.txt +0 -0
- {user_simulator-0.2.3.dist-info → user_simulator-0.2.5.dist-info}/top_level.txt +0 -0
user_sim/cli/sensei_chat.py
CHANGED
@@ -78,12 +78,16 @@ def load_yaml_files_from_folder(folder_path, existing_keys=None):
|
|
78
78
|
|
79
79
|
|
80
80
|
def configure_project(project_path):
|
81
|
+
|
81
82
|
config.project_folder_path = project_path
|
82
83
|
config.profiles_path = os.path.join(project_path, "profiles")
|
83
84
|
config.custom_personalities_folder = os.path.join(project_path, "personalities")
|
84
85
|
|
86
|
+
config.root_path = os.path.abspath(os.path.join(current_script_dir, "../../.."))
|
87
|
+
config.src_path = os.path.abspath(os.path.join(current_script_dir, "../.."))
|
88
|
+
|
85
89
|
custom_types_path = os.path.join(project_path, "types")
|
86
|
-
default_types_path = os.path.join(config.
|
90
|
+
default_types_path = os.path.join(config.src_path, "config", "types")
|
87
91
|
|
88
92
|
custom_types = load_yaml_files_from_folder(custom_types_path)
|
89
93
|
default_types = load_yaml_files_from_folder(default_types_path, existing_keys=custom_types.keys())
|
@@ -476,9 +480,12 @@ def main():
|
|
476
480
|
parser.error(f"The following arguments are required when not using --run_from_yaml: {', '.join(missing_args)}")
|
477
481
|
|
478
482
|
configure_project(parser_args.project_path)
|
479
|
-
config.root_path = os.path.abspath(os.path.join(current_script_dir, "../../.."))
|
483
|
+
# config.root_path = os.path.abspath(os.path.join(current_script_dir, "../../.."))
|
484
|
+
# config.src_path = os.path.abspath(os.path.join(current_script_dir, "../.."))
|
480
485
|
profile_path = os.path.join(config.profiles_path, parser_args.user_profile)
|
481
486
|
|
487
|
+
print(config.src_path)
|
488
|
+
|
482
489
|
|
483
490
|
|
484
491
|
# check_keys(["OPENAI_API_KEY"])
|
user_sim/utils/config.py
CHANGED
@@ -14,7 +14,7 @@ user_sim/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
user_sim/cli/cli.py,sha256=uC5aiyYD9BFx6jTKSliB_BSyZB1mkjacK3pAzhYESSY,3288
|
15
15
|
user_sim/cli/gen_user_profile.py,sha256=PSm9wi2OhflLWHM1TNxL5W2xYFR82z2-24NhOQRye2M,1462
|
16
16
|
user_sim/cli/init_project.py,sha256=t4z4Omfo2_uh-mNjVOpFIxnnlWdtH9VUa3mD3q14v6A,1947
|
17
|
-
user_sim/cli/sensei_chat.py,sha256=
|
17
|
+
user_sim/cli/sensei_chat.py,sha256=hKtG1Ch31mdsxWxl5DyjOyx6g6XG7wzwEKjP92asNm0,21598
|
18
18
|
user_sim/cli/sensei_check.py,sha256=l_HIAPTw621MxXJ9fwmdE8BzDABt1XdalHVaKYH_QsQ,3900
|
19
19
|
user_sim/cli/validation_check.py,sha256=VUJlePbTfBJOgOx2sDamKD4cplvUlS7VKqr-v1rvFPE,5363
|
20
20
|
user_sim/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -30,7 +30,7 @@ user_sim/handlers/html_parser_module.py,sha256=JS0J-RvAQrcX3JIuLdKFwKNDetaBPQMQL
|
|
30
30
|
user_sim/handlers/image_recognition_module.py,sha256=68XtRRtymr_w4MYBJW1LX3ZTBAEQPpEH1vtj5oL5rxo,4572
|
31
31
|
user_sim/handlers/pdf_parser_module.py,sha256=2Fiu37wmpXYt--Cul9oSeoHG47feJyRpfgb6aiUdxQo,4011
|
32
32
|
user_sim/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
|
-
user_sim/utils/config.py,sha256=
|
33
|
+
user_sim/utils/config.py,sha256=nCuVVipW3f82SDjCHWkQbaumUIqVIb87E84ooPpbQM8,1351
|
34
34
|
user_sim/utils/cost_tracker.py,sha256=DIP95SYeIsRl6Q4LboiNYr812c2xSEquHmbwqmWPlcs,5206
|
35
35
|
user_sim/utils/cost_tracker_v2.py,sha256=dNcKxMgjGIq07cY4805k6qtiko6Tv-c_NpvhGK9WBGg,6418
|
36
36
|
user_sim/utils/errors.py,sha256=hY284HuSGiZNAzL5rfgbjy7wQdaIlkYD6xFKvAr0roU,438
|
@@ -41,9 +41,9 @@ user_sim/utils/show_logs.py,sha256=pqwksfYYFZEu3pb-4KJrV4OEaiAUrfc5-G1qz8akJmo,1
|
|
41
41
|
user_sim/utils/token_cost_calculator.py,sha256=4vFUh6OHgoZJcfxaRGARFUbyLkXPYUug6YJCM7luw6s,12540
|
42
42
|
user_sim/utils/url_management.py,sha256=MeUoT-O7XCPWJJ-1r3T_n1zFjj3NyeJXRt_b9Nkpzdw,1998
|
43
43
|
user_sim/utils/utilities.py,sha256=ixv48MMPaIaj12aBO0pIxIgwWie0oEMX2lckPm1_SeU,21568
|
44
|
-
user_simulator-0.2.
|
45
|
-
user_simulator-0.2.
|
46
|
-
user_simulator-0.2.
|
47
|
-
user_simulator-0.2.
|
48
|
-
user_simulator-0.2.
|
49
|
-
user_simulator-0.2.
|
44
|
+
user_simulator-0.2.5.dist-info/licenses/LICENSE.txt,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
|
45
|
+
user_simulator-0.2.5.dist-info/METADATA,sha256=3mWzqwdASlJtw-kREBM4Vp9HxqRmMLN5oV9s2SG_6RM,31898
|
46
|
+
user_simulator-0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
47
|
+
user_simulator-0.2.5.dist-info/entry_points.txt,sha256=kfr0rD6mglTGGzYRfUwMTGfTtTOBnLjv3R-Uy61vvDQ,283
|
48
|
+
user_simulator-0.2.5.dist-info/top_level.txt,sha256=MWxB7cP3CckTVi4WWjejVAnJiPKwQSpGihrVfyPewGE,39
|
49
|
+
user_simulator-0.2.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|