user-simulator 0.2.1__py3-none-any.whl → 0.2.2__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.
@@ -0,0 +1,24 @@
1
+ import numpy as np
2
+ import yaml
3
+ import random
4
+
5
+ # these are only examples of functions to create lists.
6
+
7
+ def number_list(min, max, step):
8
+ numberlist = np.arange(min, max, step)
9
+ return numberlist.tolist()
10
+
11
+
12
+ def random_list():
13
+ randomlist = np.random.randint(0, 10, 3)
14
+ return randomlist.tolist()
15
+
16
+
17
+ def shuffle_list(file):
18
+ with open(file, 'r', encoding="UTF-8") as f:
19
+ yaml_file = yaml.safe_load(f)
20
+ dic = list(yaml_file.keys())
21
+ yaml_list = yaml_file[dic[0]]
22
+ copy_list = yaml_list.copy()
23
+ random.shuffle(copy_list)
24
+ return copy_list
@@ -3,7 +3,7 @@ import yaml
3
3
  import pandas as pd
4
4
  from argparse import Namespace
5
5
  from collections import Counter
6
- from cli import parse_chat_arguments
6
+ # from cli import parse_chat_arguments
7
7
  from argparse import ArgumentParser
8
8
  from colorama import Fore, Style
9
9
  # from technologies.chatbot_connectors import (Chatbot, ChatbotRasa, ChatbotTaskyto, ChatbotMillionBot,
@@ -118,19 +118,19 @@ def configure_project(project_path):
118
118
  # replace_values(con_yaml, parameters)
119
119
  # return con_yaml
120
120
 
121
- def _setup_configuration() -> Namespace:
122
- """Parse command line arguments, validate config, and create output dir.
123
-
124
- Returns:
125
- The parsed and validated command line arguments
126
-
127
- Raises:
128
- TracerError: If the specified technology is invalid
129
- """
130
- args = parse_chat_arguments()
131
-
132
- logger = create_logger(args.verbose, 'Info Logger')
133
- logger.info('Logs enabled!')
121
+ # def _setup_configuration() -> Namespace:
122
+ # """Parse command line arguments, validate config, and create output dir.
123
+ #
124
+ # Returns:
125
+ # The parsed and validated command line arguments
126
+ #
127
+ # Raises:
128
+ # TracerError: If the specified technology is invalid
129
+ # """
130
+ # args = parse_chat_arguments()
131
+ #
132
+ # logger = create_logger(args.verbose, 'Info Logger')
133
+ # logger.info('Logs enabled!')
134
134
 
135
135
 
136
136
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: user-simulator
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: LLM-based user simulator for chatbot testing.
5
5
  Author: Alejandro Del Pozzo Escalera, Juan de Lara Jaramillo, Esther Guerra Sánchez
6
6
  License: MIT License
@@ -1,3 +1,4 @@
1
+ data/list_functions/number_list.py,sha256=1BlyyjDc2gIghQTQNSkIP35lmk5eR9ADmwS1UGBX7ZQ,593
1
2
  metamorphic/__init__.py,sha256=BqyThH4lzS95P_YZ27b4K3rf5P9JgwHU9I3r99jSEiQ,135
2
3
  metamorphic/results.py,sha256=kKeud02cNpehVmHRAkVO-uf1rd-H7D8cAkSeiKmU8Jg,2040
3
4
  metamorphic/rule_utils.py,sha256=frm2IDxHEsYlvFVTQqFDEdfDVejNKtqhxreIOb7_Jrs,17978
@@ -13,7 +14,7 @@ user_sim/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
14
  user_sim/cli/cli.py,sha256=uC5aiyYD9BFx6jTKSliB_BSyZB1mkjacK3pAzhYESSY,3288
14
15
  user_sim/cli/gen_user_profile.py,sha256=PSm9wi2OhflLWHM1TNxL5W2xYFR82z2-24NhOQRye2M,1462
15
16
  user_sim/cli/init_project.py,sha256=t4z4Omfo2_uh-mNjVOpFIxnnlWdtH9VUa3mD3q14v6A,1947
16
- user_sim/cli/sensei_chat.py,sha256=B-KPccOBBmt1G2o2hppeQgJxpbzDTCtVGlOmzaI1tCk,21293
17
+ user_sim/cli/sensei_chat.py,sha256=oSNx6zvnlHaM6F-eKe2_4rvkImUnN04yNlZ4HB0ZXv8,21318
17
18
  user_sim/cli/sensei_check.py,sha256=l_HIAPTw621MxXJ9fwmdE8BzDABt1XdalHVaKYH_QsQ,3900
18
19
  user_sim/cli/validation_check.py,sha256=VUJlePbTfBJOgOx2sDamKD4cplvUlS7VKqr-v1rvFPE,5363
19
20
  user_sim/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -40,9 +41,9 @@ user_sim/utils/show_logs.py,sha256=pqwksfYYFZEu3pb-4KJrV4OEaiAUrfc5-G1qz8akJmo,1
40
41
  user_sim/utils/token_cost_calculator.py,sha256=4vFUh6OHgoZJcfxaRGARFUbyLkXPYUug6YJCM7luw6s,12540
41
42
  user_sim/utils/url_management.py,sha256=MeUoT-O7XCPWJJ-1r3T_n1zFjj3NyeJXRt_b9Nkpzdw,1998
42
43
  user_sim/utils/utilities.py,sha256=ixv48MMPaIaj12aBO0pIxIgwWie0oEMX2lckPm1_SeU,21568
43
- user_simulator-0.2.1.dist-info/licenses/LICENSE.txt,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
44
- user_simulator-0.2.1.dist-info/METADATA,sha256=kDsV7eff9j_dYDx7w75S2KbvMmVJ2fi_fnKyZZe9msY,31898
45
- user_simulator-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- user_simulator-0.2.1.dist-info/entry_points.txt,sha256=kfr0rD6mglTGGzYRfUwMTGfTtTOBnLjv3R-Uy61vvDQ,283
47
- user_simulator-0.2.1.dist-info/top_level.txt,sha256=IGlrGt_QHrM2G3Mlo76gMp8ArUR_F9k4RrzJd8YHpE4,34
48
- user_simulator-0.2.1.dist-info/RECORD,,
44
+ user_simulator-0.2.2.dist-info/licenses/LICENSE.txt,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
45
+ user_simulator-0.2.2.dist-info/METADATA,sha256=yef4sZp-JN4W3gGj6_EWfklu23PipFe-5THfTZo068E,31898
46
+ user_simulator-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
47
+ user_simulator-0.2.2.dist-info/entry_points.txt,sha256=kfr0rD6mglTGGzYRfUwMTGfTtTOBnLjv3R-Uy61vvDQ,283
48
+ user_simulator-0.2.2.dist-info/top_level.txt,sha256=MWxB7cP3CckTVi4WWjejVAnJiPKwQSpGihrVfyPewGE,39
49
+ user_simulator-0.2.2.dist-info/RECORD,,
@@ -1,3 +1,4 @@
1
+ data
1
2
  metamorphic
2
3
  technologies
3
4
  user_sim