user-simulator 0.1.8__py3-none-any.whl → 0.1.10__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/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- # src/user_sim/__init__.py
1
+
2
2
  from .cli.sensei_chat import main as sensei_chat_main
3
3
  from .cli.sensei_check import main as sensei_check_main
4
4
  from .cli.init_project import main as init_project_main
@@ -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 src.technologies.chatbot_connectors import (Chatbot, ChatbotRasa, ChatbotTaskyto, ChatbotMillionBot,
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 *
@@ -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, "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())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: user-simulator
3
- Version: 0.1.8
3
+ Version: 0.1.10
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,10 +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.0.0
35
36
  Requires-Dist: langchain>=0.3.25
36
37
  Requires-Dist: langchain-openai>=0.3.23
38
+ Requires-Dist: openai>=1.0.0
37
39
  Requires-Dist: pandas>=2.3.0
38
40
  Requires-Dist: pillow>=11.2.1
41
+ Requires-Dist: pydantic>=2.0.0
39
42
  Requires-Dist: pymupdf>=1.26.1
40
43
  Requires-Dist: pyyaml>=6.0.2
41
44
  Requires-Dist: requests>=2.32.4
@@ -1,4 +1,3 @@
1
- data/list_functions/number_list.py,sha256=1BlyyjDc2gIghQTQNSkIP35lmk5eR9ADmwS1UGBX7ZQ,593
2
1
  metamorphic/__init__.py,sha256=BqyThH4lzS95P_YZ27b4K3rf5P9JgwHU9I3r99jSEiQ,135
3
2
  metamorphic/results.py,sha256=kKeud02cNpehVmHRAkVO-uf1rd-H7D8cAkSeiKmU8Jg,2040
4
3
  metamorphic/rule_utils.py,sha256=frm2IDxHEsYlvFVTQqFDEdfDVejNKtqhxreIOb7_Jrs,17978
@@ -9,11 +8,11 @@ technologies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
8
  technologies/chatbot_connectors.py,sha256=sXMyVyHXYfPjIC7H4LlHgtSnhI4oIhkTdvMR2JSn8DI,25398
10
9
  technologies/chatbots.py,sha256=apTbCU2paYLgVLAXg2h0HAigazJxIo7L9vKQpcJpqyM,3047
11
10
  technologies/taskyto.py,sha256=d-I45hE0xKrFsV6qDkAZ0b98NAnaARAiSM5RE781CVw,5194
12
- user_sim/__init__.py,sha256=CFEqdBdTxragXSLPKiq2-LgoT3Ky6wT4Ru3GE696m7c,481
11
+ user_sim/__init__.py,sha256=XY5WIOdBkxbWHRyl_-nnlgeyIrn3KmkekP4R6L03KZ4,455
13
12
  user_sim/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
13
  user_sim/cli/gen_user_profile.py,sha256=PSm9wi2OhflLWHM1TNxL5W2xYFR82z2-24NhOQRye2M,1462
15
14
  user_sim/cli/init_project.py,sha256=t4z4Omfo2_uh-mNjVOpFIxnnlWdtH9VUa3mD3q14v6A,1947
16
- user_sim/cli/sensei_chat.py,sha256=j2WpquBFXvfpznJHykK2zrMPbUY7mQOAb6S-cPNIUQo,20511
15
+ user_sim/cli/sensei_chat.py,sha256=-mJPN7L2G0jAMOl58JVkRCWGdARw9AuH_PrThib9jXY,20501
17
16
  user_sim/cli/sensei_check.py,sha256=l9k8fQb8d0Rg8Ss8CdwqOSIMHW0L_WXqbL8PlND4fto,3898
18
17
  user_sim/cli/validation_check.py,sha256=VUJlePbTfBJOgOx2sDamKD4cplvUlS7VKqr-v1rvFPE,5363
19
18
  user_sim/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -40,9 +39,9 @@ user_sim/utils/show_logs.py,sha256=pqwksfYYFZEu3pb-4KJrV4OEaiAUrfc5-G1qz8akJmo,1
40
39
  user_sim/utils/token_cost_calculator.py,sha256=4vFUh6OHgoZJcfxaRGARFUbyLkXPYUug6YJCM7luw6s,12540
41
40
  user_sim/utils/url_management.py,sha256=MeUoT-O7XCPWJJ-1r3T_n1zFjj3NyeJXRt_b9Nkpzdw,1998
42
41
  user_sim/utils/utilities.py,sha256=gYFiaHEpZ1bVLzspH26hTU_Au9X1MDHy0fbcVSVwxxw,19766
43
- user_simulator-0.1.8.dist-info/licenses/LICENSE.txt,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
44
- user_simulator-0.1.8.dist-info/METADATA,sha256=CJDZ5fG8vij__aw4oqWr-9KTZ6O1qgZF3Axmdt4Al_4,31705
45
- user_simulator-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- user_simulator-0.1.8.dist-info/entry_points.txt,sha256=kfr0rD6mglTGGzYRfUwMTGfTtTOBnLjv3R-Uy61vvDQ,283
47
- user_simulator-0.1.8.dist-info/top_level.txt,sha256=MWxB7cP3CckTVi4WWjejVAnJiPKwQSpGihrVfyPewGE,39
48
- user_simulator-0.1.8.dist-info/RECORD,,
42
+ user_simulator-0.1.10.dist-info/licenses/LICENSE.txt,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
43
+ user_simulator-0.1.10.dist-info/METADATA,sha256=eKGmkyB3DNK4t2ibv1epuHcgcbR0LFlQpY08hd3MF8g,31799
44
+ user_simulator-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
+ user_simulator-0.1.10.dist-info/entry_points.txt,sha256=kfr0rD6mglTGGzYRfUwMTGfTtTOBnLjv3R-Uy61vvDQ,283
46
+ user_simulator-0.1.10.dist-info/top_level.txt,sha256=IGlrGt_QHrM2G3Mlo76gMp8ArUR_F9k4RrzJd8YHpE4,34
47
+ user_simulator-0.1.10.dist-info/RECORD,,
@@ -1,4 +1,3 @@
1
- data
2
1
  metamorphic
3
2
  technologies
4
3
  user_sim
@@ -1,24 +0,0 @@
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