user-simulator 0.2.1__tar.gz → 0.2.3__tar.gz
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_simulator-0.2.1 → user_simulator-0.2.3}/PKG-INFO +2 -2
- {user_simulator-0.2.1 → user_simulator-0.2.3}/pyproject.toml +3 -3
- user_simulator-0.2.3/src/data/list_functions/number_list.py +24 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/cli/sensei_chat.py +14 -14
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_simulator.egg-info/PKG-INFO +2 -2
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_simulator.egg-info/SOURCES.txt +1 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_simulator.egg-info/requires.txt +1 -1
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_simulator.egg-info/top_level.txt +2 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/LICENSE.txt +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/README.md +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/setup.cfg +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/metamorphic/__init__.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/metamorphic/results.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/metamorphic/rule_utils.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/metamorphic/rules.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/metamorphic/tests.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/metamorphic/text_comparison_utils.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/technologies/__init__.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/technologies/chatbot_connectors.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/technologies/chatbots.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/technologies/taskyto.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/__init__.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/cli/__init__.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/cli/cli.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/cli/gen_user_profile.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/cli/init_project.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/cli/sensei_check.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/cli/validation_check.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/core/__init__.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/core/ask_about.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/core/data_extraction.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/core/data_gathering.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/core/interaction_styles.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/core/role_structure.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/core/user_simulator.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/handlers/__init__.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/handlers/asr_module.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/handlers/html_parser_module.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/handlers/image_recognition_module.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/handlers/pdf_parser_module.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/__init__.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/config.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/cost_tracker.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/cost_tracker_v2.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/errors.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/exceptions.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/languages.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/register_management.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/show_logs.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/token_cost_calculator.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/url_management.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/utils/utilities.py +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_simulator.egg-info/dependency_links.txt +0 -0
- {user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_simulator.egg-info/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: user-simulator
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.3
|
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
|
@@ -31,7 +31,7 @@ License-File: LICENSE.txt
|
|
31
31
|
Requires-Dist: allpairspy>=2.5.1
|
32
32
|
Requires-Dist: beautifulsoup4>=4.13.4
|
33
33
|
Requires-Dist: build>=1.3.0
|
34
|
-
Requires-Dist: chatbot-connectors
|
34
|
+
Requires-Dist: chatbot-connectors==0.3.0
|
35
35
|
Requires-Dist: colorama>=0.4.6
|
36
36
|
Requires-Dist: httpx>=0.28.1
|
37
37
|
Requires-Dist: inflect>=7.0.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "user-simulator"
|
3
|
-
version = "0.2.
|
3
|
+
version = "0.2.3"
|
4
4
|
description = "LLM-based user simulator for chatbot testing."
|
5
5
|
readme = "README.md"
|
6
6
|
requires-python = ">=3.12"
|
@@ -16,7 +16,7 @@ dependencies = [
|
|
16
16
|
"allpairspy>=2.5.1",
|
17
17
|
"beautifulsoup4>=4.13.4",
|
18
18
|
"build>=1.3.0",
|
19
|
-
"chatbot-connectors
|
19
|
+
"chatbot-connectors==0.3.0",
|
20
20
|
"colorama>=0.4.6",
|
21
21
|
"httpx>=0.28.1",
|
22
22
|
"inflect>=7.0.0",
|
@@ -54,4 +54,4 @@ package-dir = {"" = "src"}
|
|
54
54
|
|
55
55
|
[tool.setuptools.packages.find]
|
56
56
|
where = ["src"]
|
57
|
-
include = ["user_sim*", "technologies*", "metamorphic*"]
|
57
|
+
include = ["user_sim*", "technologies*", "metamorphic*", "config*", "data*"]
|
@@ -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
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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.
|
3
|
+
Version: 0.2.3
|
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
|
@@ -31,7 +31,7 @@ License-File: LICENSE.txt
|
|
31
31
|
Requires-Dist: allpairspy>=2.5.1
|
32
32
|
Requires-Dist: beautifulsoup4>=4.13.4
|
33
33
|
Requires-Dist: build>=1.3.0
|
34
|
-
Requires-Dist: chatbot-connectors
|
34
|
+
Requires-Dist: chatbot-connectors==0.3.0
|
35
35
|
Requires-Dist: colorama>=0.4.6
|
36
36
|
Requires-Dist: httpx>=0.28.1
|
37
37
|
Requires-Dist: inflect>=7.0.0
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_sim/handlers/image_recognition_module.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{user_simulator-0.2.1 → user_simulator-0.2.3}/src/user_simulator.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|