pbesa 4.0.39__tar.gz → 4.0.41__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.39 → pbesa-4.0.41}/PKG-INFO +1 -1
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/sel_dispatcher_team.py +14 -10
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa.egg-info/PKG-INFO +1 -1
- {pbesa-4.0.39 → pbesa-4.0.41}/setup.py +1 -1
- {pbesa-4.0.39 → pbesa-4.0.41}/.gitignore +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/LICENSE +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/LICENSE.txt +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/MANIFEST +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/README.md +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/db.sqlite3 +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/__pycache__/settings.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/__pycache__/wsgi.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/asgi.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/pbesa.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/settings.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/urls.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/wsgi.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/manage.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/views.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/admin.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/apps.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/controller/translatecontroller.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/controller/translatedelegate.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/controller/translateresponse.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/worker/translatetask.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/worker/workeragent.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/migrations/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/migrations/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/models.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/tests.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/urls.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/views.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/__pycache__/countercontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/__pycache__/counterdelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/__pycache__/counterresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/countercontroller.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/counterdelegate.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/controller/counterresponse.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/worker/counteragent.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/worker/countertask.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/remote_a.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/remote_b.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/remote_c.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_casos.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_consultas.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_conversador.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_cuestionador.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_datos_identificables.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_demanda.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_evaluador.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_expertos.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_extraccion.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_generar_caso.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_generar_documento.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_instruccion.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_parafraseo.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_pertinencia.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_preguntas.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_respuesta.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/celula_saludos.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/data_extraction_cel.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/celulas/web.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/cognitive.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/adapter.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/agent.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/io/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/io/system_file.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/io/tcp_server.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/res/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/res/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/res/__pycache__/__init__.cpython-37.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/res/__pycache__/__init__.cpython-38.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/res/__pycache__/__init__.cpython-39.pyc +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/res/conf.json +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/util.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/kernel/world.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/mas.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/models.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/remote/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/remote/adm_listener.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/remote/adm_listener_handler.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/remote/exceptions.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/remote/remote_adm.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/remote/remote_adm_handler.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/simulator/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/simulator/dialog_simulator.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/__init__.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/collaborative_team.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/delegator.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/delegator_team.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/dialog.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/dispatcher_team.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/prompts.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/selected_dispatcher_team.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/templates.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa/social/worker.py +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa.egg-info/SOURCES.txt +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa.egg-info/dependency_links.txt +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa.egg-info/requires.txt +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/pbesa.egg-info/top_level.txt +0 -0
- {pbesa-4.0.39 → pbesa-4.0.41}/setup.cfg +0 -0
@@ -92,6 +92,8 @@ class BufferDispatcher(Action):
|
|
92
92
|
for item in item_list:
|
93
93
|
data = item['data']
|
94
94
|
mayor_ag_id = item['mayor_ag_id']
|
95
|
+
session_id = item['session_id']
|
96
|
+
|
95
97
|
free_dict = self.agent.get_free_dict()
|
96
98
|
|
97
99
|
|
@@ -110,6 +112,8 @@ class BufferDispatcher(Action):
|
|
110
112
|
'dtoList': []
|
111
113
|
}
|
112
114
|
self.adm.send_event(agent_id, 'task', data['dto'])
|
115
|
+
# Registra la sesion
|
116
|
+
self.agent.planilla[session_id] = mayor_ag_id
|
113
117
|
# Remove the item from the hold dict
|
114
118
|
self.agent.hold_dict[key].remove(item)
|
115
119
|
if len(self.agent.hold_dict[key]) == 0:
|
@@ -184,22 +188,21 @@ class SelectedDispatcher(Action):
|
|
184
188
|
try:
|
185
189
|
logging.info('Assign to agent...')
|
186
190
|
session_id = data['dto']['session']['session_id'] if 'session' in data['dto'] else None
|
187
|
-
|
188
|
-
|
189
|
-
if session_id in self.agent.planilla:
|
190
|
-
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:
|
191
193
|
logging.info('The session is already assigned')
|
192
|
-
logging.info(f'The agent {
|
193
|
-
self.agent.add_to_hold(data,
|
194
|
+
logging.info(f'The agent type: {assistant} will be assigned')
|
195
|
+
self.agent.add_to_hold(data, assistant, session_id)
|
194
196
|
else:
|
195
197
|
score_mayor = 0
|
196
198
|
mayor_ag = self.manual_selection(data['dto'])
|
197
199
|
if mayor_ag:
|
198
200
|
logging.info(f'The agent {mayor_ag.id} will be assigned')
|
199
|
-
self.agent.add_to_hold(data,
|
201
|
+
self.agent.add_to_hold(data, mayor_ag.id, session_id)
|
200
202
|
else:
|
201
203
|
roles = []
|
202
204
|
# Get the agent asocciated with the data.
|
205
|
+
agent_list = self.agent.get_agent_list()
|
203
206
|
for agent_id in agent_list:
|
204
207
|
agent = self.adm.get_agent(agent_id)
|
205
208
|
# Chec if the agent is instance of AugmentedGeneration
|
@@ -222,7 +225,7 @@ class SelectedDispatcher(Action):
|
|
222
225
|
# Check if the mayor agent is the same as the agent
|
223
226
|
if mayor_ag:
|
224
227
|
logging.info(f'The agent {mayor_ag.id} will be assigned')
|
225
|
-
self.agent.add_to_hold(data, mayor_ag.id)
|
228
|
+
self.agent.add_to_hold(data, mayor_ag.id, session_id)
|
226
229
|
else:
|
227
230
|
logging.error('[Error, toAssign]: No agent found for the request')
|
228
231
|
data['gateway'].put('ERROR')
|
@@ -430,14 +433,15 @@ class DispatcherController(Agent):
|
|
430
433
|
diferencia_tiempo = current - item["lasttime"]
|
431
434
|
return diferencia_tiempo < self.umbral_cinco_minutos
|
432
435
|
|
433
|
-
def add_to_hold(self, data, mayor_ag_id):
|
436
|
+
def add_to_hold(self, data, mayor_ag_id, session_id):
|
434
437
|
text = data['dto']['text']
|
435
438
|
if not self.check_hold(data):
|
436
439
|
self.hold_dict[hash(text)] = []
|
437
440
|
self.hold_dict[hash(text)].append({
|
438
441
|
"data": data,
|
439
442
|
"lasttime": datetime.now(),
|
440
|
-
"mayor_ag_id": mayor_ag_id
|
443
|
+
"mayor_ag_id": mayor_ag_id,
|
444
|
+
"session_id": session_id
|
441
445
|
})
|
442
446
|
logging.info(f"[Select]:[Dispacher]: Se asigan en el hold la consulta {data['dto']['text']}")
|
443
447
|
|
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.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc
RENAMED
File without changes
|
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/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.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/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.39 → pbesa-4.0.41}/examples/django/helloworld/translate/mas/worker/translatetask.py
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/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.39 → pbesa-4.0.41}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.39 → pbesa-4.0.41}/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
|
File without changes
|
File without changes
|
File without changes
|