pbesa 4.0.17__tar.gz → 4.0.18__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.17 → pbesa-4.0.18}/PKG-INFO +1 -1
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/cognitive.py +2 -2
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/util.py +8 -8
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa.egg-info/PKG-INFO +1 -1
- {pbesa-4.0.17 → pbesa-4.0.18}/setup.py +1 -1
- {pbesa-4.0.17 → pbesa-4.0.18}/.gitignore +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/LICENSE +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/LICENSE.txt +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/MANIFEST +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/README.md +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/db.sqlite3 +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/__pycache__/settings.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/__pycache__/wsgi.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/asgi.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/pbesa.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/settings.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/urls.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/wsgi.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/manage.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/views.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/admin.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/apps.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/controller/translatecontroller.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/controller/translatedelegate.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/controller/translateresponse.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/worker/translatetask.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/worker/workeragent.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/migrations/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/migrations/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/models.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/tests.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/urls.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/views.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/__pycache__/countercontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/__pycache__/counterdelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/__pycache__/counterresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/countercontroller.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/counterdelegate.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/controller/counterresponse.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/worker/counteragent.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/worker/countertask.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/remote_a.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/remote_b.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/remote_c.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/celula_casos.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/celula_consultas.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/celula_datos_identificables.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/celula_expertos.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/celula_generar_documento.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/celula_preguntas.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/celula_saludos.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/celulas/web.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/adapter.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/agent.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/io/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/io/system_file.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/io/tcp_server.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/res/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/res/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/res/__pycache__/__init__.cpython-37.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/res/__pycache__/__init__.cpython-38.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/res/__pycache__/__init__.cpython-39.pyc +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/res/conf.json +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/kernel/world.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/mas.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/models.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/remote/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/remote/adm_listener.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/remote/adm_listener_handler.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/remote/exceptions.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/remote/remote_adm.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/remote/remote_adm_handler.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/__init__.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/collaborative_team.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/delegator.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/delegator_team.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/dialog.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/dispatcher_team.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/prompts.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/selected_dispatcher_team.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/templates.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa/social/worker.py +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa.egg-info/SOURCES.txt +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa.egg-info/dependency_links.txt +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa.egg-info/requires.txt +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/pbesa.egg-info/top_level.txt +0 -0
- {pbesa-4.0.17 → pbesa-4.0.18}/setup.cfg +0 -0
@@ -734,7 +734,7 @@ class Dialog(ABC):
|
|
734
734
|
}
|
735
735
|
# Evia mensaje a los agentes remotos
|
736
736
|
logging.info('>>>> Call remote agent: team.\n')
|
737
|
-
response = canal.post(team.lower(), dto)
|
737
|
+
response = canal.post(team.lower(), dto, timeout=300)
|
738
738
|
if response and not response['status']:
|
739
739
|
logging.error(f'No se pudo establecer la comunicación con el agente remoto')
|
740
740
|
self.update_conversation(session_manager, session['id_conversacion'], None)
|
@@ -759,7 +759,7 @@ class Dialog(ABC):
|
|
759
759
|
'text': data
|
760
760
|
},
|
761
761
|
}
|
762
|
-
response = canal.post(team.lower(), dto)
|
762
|
+
response = canal.post(team.lower(), dto, timeout=300)
|
763
763
|
if response['status']:
|
764
764
|
logging.info(f'>>>> Response: {response}')
|
765
765
|
res = response['message']['response']
|
@@ -60,7 +60,7 @@ class APIClient:
|
|
60
60
|
if access_token:
|
61
61
|
self.headers['Authorization'] = f'Bearer {access_token}'
|
62
62
|
|
63
|
-
def post(self, endpoint, payload) -> dict:
|
63
|
+
def post(self, endpoint, payload, timeout=120) -> dict:
|
64
64
|
"""
|
65
65
|
Make a POST request to the specified endpoint with the given data.
|
66
66
|
:param endpoint: Endpoint to send the POST request to.
|
@@ -73,7 +73,7 @@ class APIClient:
|
|
73
73
|
url=f"{self.base_url}/{endpoint}",
|
74
74
|
headers=self.headers,
|
75
75
|
json=payload,
|
76
|
-
timeout=
|
76
|
+
timeout=timeout,
|
77
77
|
verify=False
|
78
78
|
)
|
79
79
|
response.raise_for_status()
|
@@ -101,7 +101,7 @@ class APIClient:
|
|
101
101
|
"message": "An error occurred while making the POST request."
|
102
102
|
}
|
103
103
|
|
104
|
-
def get(self, endpoint) -> dict:
|
104
|
+
def get(self, endpoint, timeout=120) -> dict:
|
105
105
|
"""
|
106
106
|
Make a GET request to the specified endpoint.
|
107
107
|
:param endpoint: Endpoint to send the GET request to.
|
@@ -112,7 +112,7 @@ class APIClient:
|
|
112
112
|
response = requests.get(
|
113
113
|
url=f"{self.base_url}/{endpoint}",
|
114
114
|
headers=self.headers,
|
115
|
-
timeout=
|
115
|
+
timeout=timeout
|
116
116
|
)
|
117
117
|
response.raise_for_status()
|
118
118
|
print(f"GET request to {endpoint} succeeded: {response.status_code}")
|
@@ -139,7 +139,7 @@ class APIClient:
|
|
139
139
|
"message": "An error occurred while making the GET request."
|
140
140
|
}
|
141
141
|
|
142
|
-
def put(self, endpoint, payload) -> dict:
|
142
|
+
def put(self, endpoint, payload, timeout=120) -> dict:
|
143
143
|
"""
|
144
144
|
Make a PUT request to the specified endpoint with the given data.
|
145
145
|
:param endpoint: Endpoint to send the PUT request to.
|
@@ -152,7 +152,7 @@ class APIClient:
|
|
152
152
|
url=f"{self.base_url}/{endpoint}",
|
153
153
|
headers=self.headers,
|
154
154
|
json=payload,
|
155
|
-
timeout=
|
155
|
+
timeout=timeout
|
156
156
|
)
|
157
157
|
response.raise_for_status()
|
158
158
|
print(f"PUT request to {endpoint} succeeded: {response.status_code}")
|
@@ -179,7 +179,7 @@ class APIClient:
|
|
179
179
|
"message": "An error occurred while making the PUT request."
|
180
180
|
}
|
181
181
|
|
182
|
-
def delete(self, endpoint) -> dict:
|
182
|
+
def delete(self, endpoint, timeout=120) -> dict:
|
183
183
|
"""
|
184
184
|
Make a DELETE request to the specified endpoint.
|
185
185
|
:param endpoint: Endpoint to send the DELETE request to.
|
@@ -190,7 +190,7 @@ class APIClient:
|
|
190
190
|
response = requests.delete(
|
191
191
|
url=f"{self.base_url}/{endpoint}",
|
192
192
|
headers=self.headers,
|
193
|
-
timeout=
|
193
|
+
timeout=timeout
|
194
194
|
)
|
195
195
|
response.raise_for_status()
|
196
196
|
print(f"DELETE request to {endpoint} succeeded: {response.status_code}")
|
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.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc
RENAMED
File without changes
|
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/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.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/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.17 → pbesa-4.0.18}/examples/django/helloworld/translate/mas/worker/translatetask.py
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/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.17 → pbesa-4.0.18}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.17 → pbesa-4.0.18}/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
|