pbesa 4.0.40__tar.gz → 4.0.42__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.
Files changed (127) hide show
  1. {pbesa-4.0.40 → pbesa-4.0.42}/PKG-INFO +1 -1
  2. pbesa-4.0.42/pbesa/celulas/celula_verificar_calculos.py +59 -0
  3. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/cognitive.py +18 -8
  4. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/sel_dispatcher_team.py +6 -7
  5. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa.egg-info/PKG-INFO +1 -1
  6. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa.egg-info/SOURCES.txt +1 -0
  7. {pbesa-4.0.40 → pbesa-4.0.42}/setup.py +1 -1
  8. {pbesa-4.0.40 → pbesa-4.0.42}/.gitignore +0 -0
  9. {pbesa-4.0.40 → pbesa-4.0.42}/LICENSE +0 -0
  10. {pbesa-4.0.40 → pbesa-4.0.42}/LICENSE.txt +0 -0
  11. {pbesa-4.0.40 → pbesa-4.0.42}/MANIFEST +0 -0
  12. {pbesa-4.0.40 → pbesa-4.0.42}/README.md +0 -0
  13. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/db.sqlite3 +0 -0
  14. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/__init__.py +0 -0
  15. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/__pycache__/__init__.cpython-36.pyc +0 -0
  16. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc +0 -0
  17. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/__pycache__/settings.cpython-36.pyc +0 -0
  18. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc +0 -0
  19. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/__pycache__/wsgi.cpython-36.pyc +0 -0
  20. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/asgi.py +0 -0
  21. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/pbesa.py +0 -0
  22. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/settings.py +0 -0
  23. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/urls.py +0 -0
  24. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/helloworld/wsgi.py +0 -0
  25. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/manage.py +0 -0
  26. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/__init__.py +0 -0
  27. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/__pycache__/__init__.cpython-36.pyc +0 -0
  28. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc +0 -0
  29. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc +0 -0
  30. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc +0 -0
  31. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc +0 -0
  32. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/__pycache__/views.cpython-36.pyc +0 -0
  33. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/admin.py +0 -0
  34. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/apps.py +0 -0
  35. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
  36. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
  37. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
  38. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/controller/translatecontroller.py +0 -0
  39. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/controller/translatedelegate.py +0 -0
  40. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/controller/translateresponse.py +0 -0
  41. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
  42. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
  43. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/worker/translatetask.py +0 -0
  44. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/mas/worker/workeragent.py +0 -0
  45. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/migrations/__init__.py +0 -0
  46. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/migrations/__pycache__/__init__.cpython-36.pyc +0 -0
  47. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/models.py +0 -0
  48. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/tests.py +0 -0
  49. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/urls.py +0 -0
  50. {pbesa-4.0.40 → pbesa-4.0.42}/examples/django/helloworld/translate/views.py +0 -0
  51. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/__pycache__/countercontroller.cpython-36.pyc +0 -0
  52. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/__pycache__/counterdelegate.cpython-36.pyc +0 -0
  53. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/__pycache__/counterresponse.cpython-36.pyc +0 -0
  54. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
  55. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
  56. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
  57. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/countercontroller.py +0 -0
  58. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/counterdelegate.py +0 -0
  59. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/controller/counterresponse.py +0 -0
  60. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc +0 -0
  61. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc +0 -0
  62. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
  63. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
  64. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/worker/counteragent.py +0 -0
  65. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/mas/worker/countertask.py +0 -0
  66. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/remote_a.py +0 -0
  67. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/remote_b.py +0 -0
  68. {pbesa-4.0.40 → pbesa-4.0.42}/examples/remote/remote_c.py +0 -0
  69. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/__init__.py +0 -0
  70. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/__init__.py +0 -0
  71. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_casos.py +0 -0
  72. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_consultas.py +0 -0
  73. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_conversador.py +0 -0
  74. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_cuestionador.py +0 -0
  75. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_datos_identificables.py +0 -0
  76. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_demanda.py +0 -0
  77. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_evaluador.py +0 -0
  78. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_expertos.py +0 -0
  79. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_extraccion.py +0 -0
  80. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_generar_caso.py +0 -0
  81. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_generar_documento.py +0 -0
  82. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_instruccion.py +0 -0
  83. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_parafraseo.py +0 -0
  84. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_pertinencia.py +0 -0
  85. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_preguntas.py +0 -0
  86. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_respuesta.py +0 -0
  87. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/celula_saludos.py +0 -0
  88. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/data_extraction_cel.py +0 -0
  89. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/celulas/web.py +0 -0
  90. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/__init__.py +0 -0
  91. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/adapter.py +0 -0
  92. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/agent.py +0 -0
  93. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/io/__init__.py +0 -0
  94. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/io/system_file.py +0 -0
  95. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/io/tcp_server.py +0 -0
  96. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/res/__init__.py +0 -0
  97. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/res/__pycache__/__init__.cpython-36.pyc +0 -0
  98. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/res/__pycache__/__init__.cpython-37.pyc +0 -0
  99. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/res/__pycache__/__init__.cpython-38.pyc +0 -0
  100. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/res/__pycache__/__init__.cpython-39.pyc +0 -0
  101. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/res/conf.json +0 -0
  102. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/util.py +0 -0
  103. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/kernel/world.py +0 -0
  104. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/mas.py +0 -0
  105. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/models.py +0 -0
  106. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/remote/__init__.py +0 -0
  107. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/remote/adm_listener.py +0 -0
  108. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/remote/adm_listener_handler.py +0 -0
  109. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/remote/exceptions.py +0 -0
  110. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/remote/remote_adm.py +0 -0
  111. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/remote/remote_adm_handler.py +0 -0
  112. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/simulator/__init__.py +0 -0
  113. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/simulator/dialog_simulator.py +0 -0
  114. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/__init__.py +0 -0
  115. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/collaborative_team.py +0 -0
  116. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/delegator.py +0 -0
  117. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/delegator_team.py +0 -0
  118. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/dialog.py +0 -0
  119. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/dispatcher_team.py +0 -0
  120. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/prompts.py +0 -0
  121. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/selected_dispatcher_team.py +0 -0
  122. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/templates.py +0 -0
  123. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa/social/worker.py +0 -0
  124. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa.egg-info/dependency_links.txt +0 -0
  125. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa.egg-info/requires.txt +0 -0
  126. {pbesa-4.0.40 → pbesa-4.0.42}/pbesa.egg-info/top_level.txt +0 -0
  127. {pbesa-4.0.40 → pbesa-4.0.42}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pbesa
3
- Version: 4.0.40
3
+ Version: 4.0.42
4
4
  License-File: LICENSE
5
5
  License-File: LICENSE.txt
6
6
  Requires-Dist: pymongo>=4.6.3
@@ -0,0 +1,59 @@
1
+ import logging
2
+
3
+ SYSTEM_PROMPT = """
4
+
5
+ Tu única tarea es clasificar la siguiente consulta de un usuario en una de dos categorías: PERTINENTE u OTRA.
6
+
7
+ - PERTINENTE: Asigna esta etiqueta si la consulta solicita información estadística, datos agregados o cálculos que pueden extraerse de una base de datos de trámites y demandas. Busca preguntas sobre totales, promedios, porcentajes, conteos, distribuciones o tendencias a lo largo del tiempo.
8
+
9
+ - OTRA: Asigna esta etiqueta si la consulta es de cualquier otra índole. Esto incluye preguntas sobre un caso personal, cómo realizar un trámite, problemas técnicos, opiniones, o cualquier tema que no sea una solicitud de datos estadísticos del observatorio.
10
+
11
+ Regla clave para evitar la inversión: La clasificación depende de si el usuario pide datos agregados, no del tema.
12
+
13
+ - Una consulta sobre cómo poner una demanda -> OTRA.
14
+
15
+ - Una consulta sobre cuántas demandas se pusieron el mes pasado -> PERTINENTE.
16
+
17
+ Ejemplos:
18
+
19
+ - Consulta: "¿Cuál es el número total de trámites recibidos por la entidad en 2023?" -> Clasificación: PERTINENTE
20
+
21
+ - Consulta: "Necesito ayuda para radicar una demanda contra mi operador de telefonía." -> Clasificación: OTRA
22
+
23
+ - Consulta: "Dame un porcentaje de las demandas clasificadas por sector económico y por región." -> Clasificación: PERTINENTE
24
+
25
+ - Consulta: "No recuerdo mi contraseña para acceder al portal, ¿cómo la recupero?" -> Clasificación: OTRA
26
+
27
+ - Consulta: "¿Cuál es el tiempo promedio de resolución para un caso de protección al consumidor?" -> Clasificación: PERTINENTE
28
+
29
+ - Consulta: "¿Qué opina de la nueva reforma a la justicia?" -> Clasificación: OTRA
30
+
31
+ Responde únicamente con PERTINENTE u OTRA.
32
+ """
33
+
34
+ USER_PROMPT = """
35
+
36
+ Consulta: "%s"
37
+
38
+ Clasificación:
39
+ """
40
+
41
+ # Efectua la inferencia del modelo.
42
+ def derive(service, text, max_tkns=2000) -> any:
43
+ try:
44
+ tmp_work_memory = []
45
+ prompt = SYSTEM_PROMPT
46
+ tmp_work_memory.append({"role": "system", "content": prompt})
47
+ USER_PROMPT % text
48
+ tmp_work_memory.append({"role": "user", "content": text})
49
+ res = service.generate(tmp_work_memory, max_tokens=max_tkns)
50
+ logging.info(f"[Celula][Odj][Procesando]: {text}")
51
+ logging.info(f"[Celula][Odj][Respuesta]: {res}")
52
+ if not res or res == "":
53
+ res = text
54
+ logging.warning(f"[Celula][Odj]: No obtener una respuesta.")
55
+ return res.replace("*", "").strip()
56
+ except Exception as e:
57
+ logging.error(f"[Celula][Odj]: Error al procesar: {text}")
58
+ logging.error(e)
59
+ return None
@@ -29,7 +29,7 @@ from pbesa.social.dialog import (
29
29
  from .celulas import (celula_casos, celula_consultas, celula_saludos, celula_datos_identificables,
30
30
  celula_generar_documento, celula_expertos, celula_pertinencia, celula_extraccion,
31
31
  celula_evaluador, celula_respuesta, celula_conversador, celula_parafraseo, celula_cuestionador,
32
- celula_instruccion, celula_generar_caso, celula_demanda)
32
+ celula_instruccion, celula_generar_caso, celula_demanda, celula_verificar_calculos)
33
33
  from pbesa.social.prompts import ANALIZER_PROMPT, CLASSIFICATION_PROMPT, DERIVE_PROMPT, RECOVERY_PROMPT, ADAPT_PROMPT, SINTETIZER_PROMPT
34
34
 
35
35
  # --------------------------------------------------------
@@ -942,8 +942,9 @@ class Dialog(ABC):
942
942
  elif es_consulta and not es_saludo and not es_caso:
943
943
  dicriminador = "consulta"
944
944
  per_res = celula_pertinencia.derive(self.__ai_service, query, max_tkns=10)
945
+ obj_check = celula_verificar_calculos.derive(self.__ai_service, query, max_tkns=10)
945
946
  if per_res and not per_res == "":
946
- if "ABSURDO" in per_res:
947
+ if "ABSURDO" in per_res and not "PERTINENTE" in obj_check:
947
948
  dicriminador = None
948
949
  res = msg
949
950
  elif es_caso and not es_saludo and not es_consulta:
@@ -1019,12 +1020,21 @@ class Dialog(ABC):
1019
1020
  if len(messages) > 1:
1020
1021
  message = messages[-2]
1021
1022
  if not message['user'] and '¿Desea que le ayude con una consulta o una demanda?' in message['text']:
1022
- demanda = celula_demanda.derive(self.__ai_service, query, max_tkns=10)
1023
- es_demanda = ("DEMANDA" in demanda) and not ("INDEFINIDO" in demanda)
1024
- if es_demanda:
1025
- res = self.stage_one_sintetizer(session_id, messages, attemps, query, es_demanda)
1026
- dicriminador = "caso"
1027
- return dicriminador, res
1023
+ if 'consulta' in query:
1024
+ message = messages[-3]
1025
+ query = message['text']
1026
+ per_res = celula_pertinencia.derive(self.__ai_service, query, max_tkns=10)
1027
+ obj_check = celula_verificar_calculos.derive(self.__ai_service, query, max_tkns=10)
1028
+ if per_res and "ABSURDO" in per_res and not "PERTINENTE" in obj_check:
1029
+ return None, "No puedo ayudarle con su consulta. Dado que no está relacionada con los servicios que presta Justifacil."
1030
+ return 'consulta', query
1031
+ else:
1032
+ demanda = celula_demanda.derive(self.__ai_service, query, max_tkns=10)
1033
+ es_demanda = ("DEMANDA" in demanda) and not ("INDEFINIDO" in demanda)
1034
+ if es_demanda:
1035
+ res = self.stage_one_sintetizer(session_id, messages, attemps, query, es_demanda)
1036
+ dicriminador = "caso"
1037
+ return dicriminador, res
1028
1038
 
1029
1039
  dicriminador, ambiguedad, res = self.stage_one_evaluate(session_id, messages, attemps, query, es_demanda)
1030
1040
 
@@ -188,22 +188,21 @@ class SelectedDispatcher(Action):
188
188
  try:
189
189
  logging.info('Assign to agent...')
190
190
  session_id = data['dto']['session']['session_id'] if 'session' in data['dto'] else None
191
- agent_list = self.agent.get_agent_list()
192
- logging.debug('List of agents: ' + str(agent_list))
193
- if session_id in self.agent.planilla:
194
- mayor_ag_id = self.agent.planilla[session_id]
191
+ assistant = data['dto']['session']['assistant'] if 'session' in data['dto'] and 'assistant' in data['dto']['session'] else None
192
+ if assistant:
195
193
  logging.info('The session is already assigned')
196
- logging.info(f'The agent {mayor_ag_id} will be assigned')
197
- self.agent.add_to_hold(data, mayor_ag_id, session_id)
194
+ logging.info(f'The agent type: {assistant} will be assigned')
195
+ self.agent.add_to_hold(data, assistant, session_id)
198
196
  else:
199
197
  score_mayor = 0
200
198
  mayor_ag = self.manual_selection(data['dto'])
201
199
  if mayor_ag:
202
200
  logging.info(f'The agent {mayor_ag.id} will be assigned')
203
- self.agent.add_to_hold(data, mayor_ag_id, session_id)
201
+ self.agent.add_to_hold(data, mayor_ag.id, session_id)
204
202
  else:
205
203
  roles = []
206
204
  # Get the agent asocciated with the data.
205
+ agent_list = self.agent.get_agent_list()
207
206
  for agent_id in agent_list:
208
207
  agent = self.adm.get_agent(agent_id)
209
208
  # Chec if the agent is instance of AugmentedGeneration
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pbesa
3
- Version: 4.0.40
3
+ Version: 4.0.42
4
4
  License-File: LICENSE
5
5
  License-File: LICENSE.txt
6
6
  Requires-Dist: pymongo>=4.6.3
@@ -88,6 +88,7 @@ pbesa/celulas/celula_pertinencia.py
88
88
  pbesa/celulas/celula_preguntas.py
89
89
  pbesa/celulas/celula_respuesta.py
90
90
  pbesa/celulas/celula_saludos.py
91
+ pbesa/celulas/celula_verificar_calculos.py
91
92
  pbesa/celulas/data_extraction_cel.py
92
93
  pbesa/celulas/web.py
93
94
  pbesa/kernel/__init__.py
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
4
4
 
5
5
  setup(
6
6
  name='pbesa',
7
- version='4.0.40',
7
+ version='4.0.42',
8
8
  packages=find_packages(),
9
9
  install_requires=[
10
10
  'pymongo>=4.6.3',
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