pbesa 4.0.30__tar.gz → 4.0.31__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.30 → pbesa-4.0.31}/PKG-INFO +1 -1
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/cognitive.py +19 -6
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa.egg-info/PKG-INFO +1 -1
- {pbesa-4.0.30 → pbesa-4.0.31}/setup.py +1 -1
- {pbesa-4.0.30 → pbesa-4.0.31}/.gitignore +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/LICENSE +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/LICENSE.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/MANIFEST +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/README.md +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/db.sqlite3 +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/__pycache__/settings.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/__pycache__/wsgi.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/asgi.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/pbesa.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/settings.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/urls.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/wsgi.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/manage.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/views.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/admin.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/apps.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/controller/translatecontroller.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/controller/translatedelegate.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/controller/translateresponse.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/worker/translatetask.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/worker/workeragent.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/migrations/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/migrations/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/models.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/tests.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/urls.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/views.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/__pycache__/countercontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/__pycache__/counterdelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/__pycache__/counterresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/countercontroller.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/counterdelegate.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/controller/counterresponse.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/worker/counteragent.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/worker/countertask.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/remote_a.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/remote_b.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/remote_c.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_casos.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_consultas.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_conversador.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_cuestionador.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_datos_identificables.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_evaluador.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_expertos.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_extraccion.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_generar_caso.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_generar_documento.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_instruccion.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_parafraseo.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_pertinencia.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_preguntas.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_respuesta.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_saludos.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/celula_simulador_ciudadano.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/data_extraction_cel.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/celulas/web.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/adapter.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/agent.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/io/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/io/system_file.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/io/tcp_server.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/res/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/res/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/res/__pycache__/__init__.cpython-37.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/res/__pycache__/__init__.cpython-38.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/res/__pycache__/__init__.cpython-39.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/res/conf.json +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/util.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/kernel/world.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/mas.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/models.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/remote/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/remote/adm_listener.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/remote/adm_listener_handler.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/remote/exceptions.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/remote/remote_adm.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/remote/remote_adm_handler.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/collaborative_team.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/delegator.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/delegator_team.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/dialog.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/dispatcher_team.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/prompts.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/selected_dispatcher_team.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/templates.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa/social/worker.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa.egg-info/SOURCES.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa.egg-info/dependency_links.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa.egg-info/requires.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/pbesa.egg-info/top_level.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.31}/setup.cfg +0 -0
@@ -589,6 +589,7 @@ class Dialog(ABC):
|
|
589
589
|
self.rules = None
|
590
590
|
self.__q_attemps = 0
|
591
591
|
|
592
|
+
|
592
593
|
def setup_world(self):
|
593
594
|
""" Set up model method """
|
594
595
|
# Define role
|
@@ -834,10 +835,16 @@ class Dialog(ABC):
|
|
834
835
|
|
835
836
|
self.__analaizer_work_memory:list = [{"role": "system", "content": ANALIZER_PROMPT}]
|
836
837
|
|
838
|
+
es_verificacion = False
|
839
|
+
if len(messages) >= 3:
|
840
|
+
last_message = messages[-2]['text']
|
841
|
+
es_verificacion = '¿Desea que le ayude con una consulta o una demanda?' in last_message
|
837
842
|
|
838
|
-
if attemps > 1:
|
843
|
+
if attemps > 1 and not es_verificacion:
|
844
|
+
saludo = "NO_SALUDO"
|
845
|
+
elif attemps > 2 or es_verificacion:
|
846
|
+
|
839
847
|
saludo = "NO_SALUDO"
|
840
|
-
|
841
848
|
self.__sintetizer_work_memory:list = [{"role": "system", "content": SINTETIZER_PROMPT}]
|
842
849
|
|
843
850
|
cont = 0
|
@@ -1751,10 +1758,15 @@ class SpecialDispatch():
|
|
1751
1758
|
logging.info("=> No se seleccionó ningun agente")
|
1752
1759
|
|
1753
1760
|
major_id, response, score = self.retrieval(query)
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1761
|
+
if 'glosario' in major_id.lower():
|
1762
|
+
major_id = 'glosario'
|
1763
|
+
elif 'inicial' in major_id.lower():
|
1764
|
+
major_id = 'portal'
|
1765
|
+
else:
|
1766
|
+
major_id_split = major_id.split("_")
|
1767
|
+
major_id = major_id_split[0] if len(major_id_split) > 0 else major_id
|
1768
|
+
major_id_split = major_id.split("-")
|
1769
|
+
major_id = major_id_split[1] if len(major_id_split) > 0 else major_id
|
1758
1770
|
|
1759
1771
|
compare_llm = 0
|
1760
1772
|
compare_index = 0
|
@@ -1797,4 +1809,5 @@ class SpecialDispatch():
|
|
1797
1809
|
|
1798
1810
|
self.kusto_close()
|
1799
1811
|
self.__meta_work_memory = []
|
1812
|
+
self.major_id = None
|
1800
1813
|
return select_agent, response
|
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.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc
RENAMED
File without changes
|
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/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.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/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.30 → pbesa-4.0.31}/examples/django/helloworld/translate/mas/worker/translatetask.py
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/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.30 → pbesa-4.0.31}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.31}/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
|
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
|