user-simulator 0.1.9__py3-none-any.whl → 0.1.11__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.
- technologies/chatbot_connectors.py +6 -0
- user_sim/__init__.py +14 -15
- user_sim/cli/sensei_chat.py +4 -4
- user_sim/cli/sensei_check.py +1 -1
- user_sim/utils/utilities.py +14 -14
- {user_simulator-0.1.9.dist-info → user_simulator-0.1.11.dist-info}/METADATA +4 -2
- {user_simulator-0.1.9.dist-info → user_simulator-0.1.11.dist-info}/RECORD +11 -11
- {user_simulator-0.1.9.dist-info → user_simulator-0.1.11.dist-info}/WHEEL +0 -0
- {user_simulator-0.1.9.dist-info → user_simulator-0.1.11.dist-info}/entry_points.txt +0 -0
- {user_simulator-0.1.9.dist-info → user_simulator-0.1.11.dist-info}/licenses/LICENSE.txt +0 -0
- {user_simulator-0.1.9.dist-info → user_simulator-0.1.11.dist-info}/top_level.txt +0 -0
@@ -13,6 +13,12 @@ logger = logging.getLogger('Info Logger')
|
|
13
13
|
# THE CONNECTORS NEED HEAVY REFACTORING TO JUST
|
14
14
|
# ONE OR TWO CLASSES
|
15
15
|
|
16
|
+
# def get_get_content():
|
17
|
+
# from user_sim.utils.url_management import get_content
|
18
|
+
# return get_content
|
19
|
+
#
|
20
|
+
# get_content = get_get_content()
|
21
|
+
|
16
22
|
class Chatbot:
|
17
23
|
def __init__(self, connector):
|
18
24
|
self.fallback = 'I do not understand you'
|
user_sim/__init__.py
CHANGED
@@ -1,15 +1,14 @@
|
|
1
|
-
#
|
2
|
-
from .cli.
|
3
|
-
from .cli.
|
4
|
-
from .cli.
|
5
|
-
from .cli.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
]
|
1
|
+
# from .cli.sensei_chat import main as sensei_chat_main
|
2
|
+
# from .cli.sensei_check import main as sensei_check_main
|
3
|
+
# from .cli.init_project import main as init_project_main
|
4
|
+
# from .cli.validation_check import main as validation_check_main
|
5
|
+
# from .cli.gen_user_profile import main as gen_user_profile_main
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# __all__ = [
|
9
|
+
# "sensei_chat_main",
|
10
|
+
# "sensei_check_main",
|
11
|
+
# "init_project_main",
|
12
|
+
# "validation_check_main",
|
13
|
+
# "gen_user_profile_main"
|
14
|
+
# ]
|
user_sim/cli/sensei_chat.py
CHANGED
@@ -4,7 +4,7 @@ import pandas as pd
|
|
4
4
|
from collections import Counter
|
5
5
|
from argparse import ArgumentParser
|
6
6
|
from colorama import Fore, Style
|
7
|
-
from
|
7
|
+
from technologies.chatbot_connectors import (Chatbot, ChatbotRasa, ChatbotTaskyto, ChatbotMillionBot,
|
8
8
|
ChatbotServiceform)
|
9
9
|
from user_sim.core.data_extraction import DataExtraction
|
10
10
|
from user_sim.core.role_structure import *
|
@@ -14,7 +14,7 @@ from user_sim.utils.utilities import *
|
|
14
14
|
from user_sim.utils.token_cost_calculator import create_cost_dataset
|
15
15
|
from user_sim.utils.register_management import clean_temp_files
|
16
16
|
|
17
|
-
check_keys(["OPENAI_API_KEY"])
|
17
|
+
# check_keys(["OPENAI_API_KEY"])
|
18
18
|
current_script_dir = os.path.dirname(os.path.abspath(__file__))
|
19
19
|
root_path = os.path.abspath(os.path.join(current_script_dir, ".."))
|
20
20
|
|
@@ -79,7 +79,7 @@ def configure_project(project_path):
|
|
79
79
|
config.custom_personalities_folder = os.path.join(project_path, "personalities")
|
80
80
|
|
81
81
|
custom_types_path = os.path.join(project_path, "types")
|
82
|
-
default_types_path = os.path.join(config.root_path,"src", "config", "types")
|
82
|
+
default_types_path = os.path.join(config.root_path, "src", "config", "types")
|
83
83
|
|
84
84
|
custom_types = load_yaml_files_from_folder(custom_types_path)
|
85
85
|
default_types = load_yaml_files_from_folder(default_types_path, existing_keys=custom_types.keys())
|
@@ -462,7 +462,7 @@ def main():
|
|
462
462
|
logger = create_logger(parser_args.verbose, 'Info Logger')
|
463
463
|
logger.info('Logs enabled!')
|
464
464
|
|
465
|
-
check_keys(["OPENAI_API_KEY"])
|
465
|
+
# check_keys(["OPENAI_API_KEY"])
|
466
466
|
config.test_cases_folder = parser_args.extract
|
467
467
|
config.ignore_cache = parser_args.ignore_cache
|
468
468
|
config.update_cache = parser_args.update_cache
|
user_sim/cli/sensei_check.py
CHANGED
@@ -9,7 +9,7 @@ from argparse import ArgumentParser
|
|
9
9
|
from metamorphic.results import Result
|
10
10
|
from metamorphic.rules import *
|
11
11
|
from metamorphic.tests import Test
|
12
|
-
from user_sim.utils.utilities import check_keys
|
12
|
+
# from user_sim.utils.utilities import check_keys
|
13
13
|
import user_sim.utils.errors as errors
|
14
14
|
|
15
15
|
def __get_object_from_yaml_files(file_or_dir, operation, name):
|
user_sim/utils/utilities.py
CHANGED
@@ -20,20 +20,20 @@ from charset_normalizer import detect
|
|
20
20
|
logger = logging.getLogger('Info Logger')
|
21
21
|
|
22
22
|
|
23
|
-
def check_keys(key_list: list):
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
23
|
+
# def check_keys(key_list: list):
|
24
|
+
# if os.path.exists("keys.properties"):
|
25
|
+
# logger.info("properties found!")
|
26
|
+
# config = configparser.ConfigParser()
|
27
|
+
# config.read('keys.properties')
|
28
|
+
#
|
29
|
+
# # Loop over all keys and values
|
30
|
+
# for key in config['keys']:
|
31
|
+
# key = key.upper()
|
32
|
+
# os.environ[key] = config['keys'][key]
|
33
|
+
#
|
34
|
+
# for k in key_list:
|
35
|
+
# if not os.environ.get(k):
|
36
|
+
# raise Exception(f"{k} not found")
|
37
37
|
|
38
38
|
|
39
39
|
def end_alarm():
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: user-simulator
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.11
|
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
|
@@ -32,11 +32,13 @@ Requires-Dist: allpairspy>=2.5.1
|
|
32
32
|
Requires-Dist: beautifulsoup4>=4.13.4
|
33
33
|
Requires-Dist: colorama>=0.4.6
|
34
34
|
Requires-Dist: httpx>=0.28.1
|
35
|
-
Requires-Dist: inflect>=7.
|
35
|
+
Requires-Dist: inflect>=7.0.0
|
36
36
|
Requires-Dist: langchain>=0.3.25
|
37
37
|
Requires-Dist: langchain-openai>=0.3.23
|
38
|
+
Requires-Dist: openai>=1.0.0
|
38
39
|
Requires-Dist: pandas>=2.3.0
|
39
40
|
Requires-Dist: pillow>=11.2.1
|
41
|
+
Requires-Dist: pydantic>=2.0.0
|
40
42
|
Requires-Dist: pymupdf>=1.26.1
|
41
43
|
Requires-Dist: pyyaml>=6.0.2
|
42
44
|
Requires-Dist: requests>=2.32.4
|
@@ -5,15 +5,15 @@ metamorphic/rules.py,sha256=b0W-L1JDqflpuIiPI9OQNqSGunQ3aAeWnXDf9hiAWjU,9504
|
|
5
5
|
metamorphic/tests.py,sha256=aS_kzOXM4T4FomdXbJvPfEwP7ACRPGBgZHaXKcQuN0w,3214
|
6
6
|
metamorphic/text_comparison_utils.py,sha256=3SKhaMX1taQKzSNkkDkslabhJChIXFNcfWK6-97yu6Y,998
|
7
7
|
technologies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
technologies/chatbot_connectors.py,sha256=
|
8
|
+
technologies/chatbot_connectors.py,sha256=nMtRQ8gHVpJGm6nRL9lX6F8zQalkhuSaRgFx0jubgHM,25551
|
9
9
|
technologies/chatbots.py,sha256=apTbCU2paYLgVLAXg2h0HAigazJxIo7L9vKQpcJpqyM,3047
|
10
10
|
technologies/taskyto.py,sha256=d-I45hE0xKrFsV6qDkAZ0b98NAnaARAiSM5RE781CVw,5194
|
11
|
-
user_sim/__init__.py,sha256=
|
11
|
+
user_sim/__init__.py,sha256=hLzeYUaZDKIQet60JxHFB7Bhe3CL23yUmbJQPcfQFGE,479
|
12
12
|
user_sim/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
user_sim/cli/gen_user_profile.py,sha256=PSm9wi2OhflLWHM1TNxL5W2xYFR82z2-24NhOQRye2M,1462
|
14
14
|
user_sim/cli/init_project.py,sha256=t4z4Omfo2_uh-mNjVOpFIxnnlWdtH9VUa3mD3q14v6A,1947
|
15
|
-
user_sim/cli/sensei_chat.py,sha256=
|
16
|
-
user_sim/cli/sensei_check.py,sha256=
|
15
|
+
user_sim/cli/sensei_chat.py,sha256=YsuZJPc9TJRlAmOP3PV56mlBUPfaZOeH5o_SBV_8fwA,20512
|
16
|
+
user_sim/cli/sensei_check.py,sha256=l_HIAPTw621MxXJ9fwmdE8BzDABt1XdalHVaKYH_QsQ,3900
|
17
17
|
user_sim/cli/validation_check.py,sha256=VUJlePbTfBJOgOx2sDamKD4cplvUlS7VKqr-v1rvFPE,5363
|
18
18
|
user_sim/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
user_sim/core/ask_about.py,sha256=k4mJFoMle952QBjo_IlykyAY0zekkrxxiz7ScgDeaHk,28426
|
@@ -38,10 +38,10 @@ user_sim/utils/register_management.py,sha256=ZUmnPZLzNZQs17GezD5iM9hxMHNW1rZyeBz
|
|
38
38
|
user_sim/utils/show_logs.py,sha256=pqwksfYYFZEu3pb-4KJrV4OEaiAUrfc5-G1qz8akJmo,1754
|
39
39
|
user_sim/utils/token_cost_calculator.py,sha256=4vFUh6OHgoZJcfxaRGARFUbyLkXPYUug6YJCM7luw6s,12540
|
40
40
|
user_sim/utils/url_management.py,sha256=MeUoT-O7XCPWJJ-1r3T_n1zFjj3NyeJXRt_b9Nkpzdw,1998
|
41
|
-
user_sim/utils/utilities.py,sha256=
|
42
|
-
user_simulator-0.1.
|
43
|
-
user_simulator-0.1.
|
44
|
-
user_simulator-0.1.
|
45
|
-
user_simulator-0.1.
|
46
|
-
user_simulator-0.1.
|
47
|
-
user_simulator-0.1.
|
41
|
+
user_sim/utils/utilities.py,sha256=MBviUg1xCyJeDbIDPIQWWno-3jhTwwpn-z6TB5zM63s,19792
|
42
|
+
user_simulator-0.1.11.dist-info/licenses/LICENSE.txt,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
|
43
|
+
user_simulator-0.1.11.dist-info/METADATA,sha256=uubTAy5xcmHKm4yT3gttZp77Ucw6cDBYI6OrHmII0zE,31799
|
44
|
+
user_simulator-0.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
45
|
+
user_simulator-0.1.11.dist-info/entry_points.txt,sha256=kfr0rD6mglTGGzYRfUwMTGfTtTOBnLjv3R-Uy61vvDQ,283
|
46
|
+
user_simulator-0.1.11.dist-info/top_level.txt,sha256=IGlrGt_QHrM2G3Mlo76gMp8ArUR_F9k4RrzJd8YHpE4,34
|
47
|
+
user_simulator-0.1.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|