pbesa 4.0.11__tar.gz → 4.0.12__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.
- {pbesa-4.0.11 → pbesa-4.0.12}/PKG-INFO +1 -1
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/cognitive.py +2 -5
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/prompts.py +4 -4
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa.egg-info/PKG-INFO +1 -1
- {pbesa-4.0.11 → pbesa-4.0.12}/setup.py +1 -1
- {pbesa-4.0.11 → pbesa-4.0.12}/.gitignore +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/LICENSE +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/LICENSE.txt +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/MANIFEST +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/README.md +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/db.sqlite3 +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__pycache__/settings.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__pycache__/wsgi.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/asgi.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/pbesa.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/settings.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/urls.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/wsgi.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/manage.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/views.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/admin.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/apps.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/controller/translatecontroller.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/controller/translatedelegate.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/controller/translateresponse.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/worker/translatetask.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/worker/workeragent.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/migrations/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/migrations/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/models.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/tests.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/urls.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/views.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/__pycache__/countercontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/__pycache__/counterdelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/__pycache__/counterresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/countercontroller.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/counterdelegate.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/controller/counterresponse.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/counteragent.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/countertask.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/remote_a.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/remote_b.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/remote_c.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/celulas/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/celulas/celula_casos.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/celulas/celula_consultas.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/celulas/celula_datos_identificables.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/celulas/celula_generar_documento.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/celulas/celula_saludos.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/celulas/web.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/adapter.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/agent.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/io/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/io/system_file.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/io/tcp_server.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/res/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/res/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/res/__pycache__/__init__.cpython-37.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/res/__pycache__/__init__.cpython-38.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/res/__pycache__/__init__.cpython-39.pyc +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/res/conf.json +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/util.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/kernel/world.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/mas.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/models.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/remote/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/remote/adm_listener.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/remote/adm_listener_handler.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/remote/exceptions.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/remote/remote_adm.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/remote/remote_adm_handler.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/__init__.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/collaborative_team.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/delegator.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/delegator_team.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/dialog.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/dispatcher_team.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/selected_dispatcher_team.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/templates.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa/social/worker.py +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa.egg-info/SOURCES.txt +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa.egg-info/dependency_links.txt +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa.egg-info/requires.txt +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/pbesa.egg-info/top_level.txt +0 -0
- {pbesa-4.0.11 → pbesa-4.0.12}/setup.cfg +0 -0
@@ -536,7 +536,7 @@ class Dialog(ABC):
|
|
536
536
|
self.__ai_service = None
|
537
537
|
# Define deep
|
538
538
|
self.__deep_count = 0
|
539
|
-
self.__deep_limit =
|
539
|
+
self.__deep_limit = 9
|
540
540
|
# Define knowledge
|
541
541
|
self.knowledge = None
|
542
542
|
# Define point recovery
|
@@ -767,7 +767,7 @@ class Dialog(ABC):
|
|
767
767
|
}
|
768
768
|
logging.info(f"Recovery attemps: {self.__recovery['counter']}")
|
769
769
|
# Verifica si se ha alcanzado el límite de recuperación
|
770
|
-
if self.__recovery['counter'] <=
|
770
|
+
if self.__recovery['counter'] <= 33 and self.__visited_nodes <= 33:
|
771
771
|
select_node = None
|
772
772
|
#------------------------------
|
773
773
|
# Flujode de excepcion
|
@@ -1002,8 +1002,6 @@ class Dialog(ABC):
|
|
1002
1002
|
self.reset()
|
1003
1003
|
self.notify("STOP")
|
1004
1004
|
return "Web", DialogState.START, res, "Web"
|
1005
|
-
|
1006
|
-
|
1007
1005
|
else:
|
1008
1006
|
self.notify("realizando llamada...")
|
1009
1007
|
#------------------------------
|
@@ -1030,7 +1028,6 @@ class Dialog(ABC):
|
|
1030
1028
|
if not res or res == "":
|
1031
1029
|
self.notify(f"no pude contactar al agente: {node.team}")
|
1032
1030
|
return self.recovery(query)
|
1033
|
-
|
1034
1031
|
self.notify(f"le envio al agente {node.team}: {res}")
|
1035
1032
|
logging.info(f"-> node team -> envia: {res}")
|
1036
1033
|
res = self.team_inquiry(node.team, res, None, True)
|
@@ -42,19 +42,19 @@ Respuesta:
|
|
42
42
|
RECOVERY_PROMPT = """
|
43
43
|
Instrucciones:
|
44
44
|
|
45
|
-
Eres un agente especializado en
|
45
|
+
Eres un agente especializado en solicitar más detalles sobre un tema. Tu tarea es analizar un texto principal y solicitar más detalles.
|
46
46
|
|
47
47
|
Requisitos:
|
48
48
|
|
49
49
|
- No incluyas explicaciones, razonamientos ni texto adicional.
|
50
50
|
- Genera opciones en lenguaje natural sin involucrar números o listas.
|
51
|
-
-
|
51
|
+
- Siempre solicita al usario que reformule la consulta con más detalles.
|
52
52
|
|
53
53
|
Ejemplo:
|
54
54
|
|
55
|
-
Texto: "Hola
|
55
|
+
Texto: "Hola una empresa esta usando mi marca sin mi consentimiento"
|
56
56
|
|
57
|
-
Respuesta:
|
57
|
+
Respuesta: De acuerdo, ¿podrías reformular la consulta con más detalles? ¿Puedes indicarme el nombre de la empresa? Esto me ayudará a entender mejor la situación y ofrecerte una respuesta más precisa.
|
58
58
|
|
59
59
|
Ahora, evalúa el siguiente caso:
|
60
60
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc
RENAMED
File without changes
|
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/helloworld/__pycache__/wsgi.cpython-36.pyc
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
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/__pycache__/views.cpython-36.pyc
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
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/worker/translatetask.py
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/django/helloworld/translate/mas/worker/workeragent.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
|
File without changes
|
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.11 → pbesa-4.0.12}/examples/remote/mas/worker/__pycache__/workeragent.cpython-36.pyc
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|