rasa-pro 3.10.7.dev3__py3-none-any.whl → 3.10.7.dev4__py3-none-any.whl
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.
Potentially problematic release.
This version of rasa-pro might be problematic. Click here for more details.
- rasa/model_manager/model_api.py +35 -4
- rasa/version.py +1 -1
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev4.dist-info}/METADATA +1 -1
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev4.dist-info}/RECORD +7 -7
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev4.dist-info}/NOTICE +0 -0
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev4.dist-info}/WHEEL +0 -0
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev4.dist-info}/entry_points.txt +0 -0
rasa/model_manager/model_api.py
CHANGED
|
@@ -53,26 +53,30 @@ def prepare_working_directories() -> None:
|
|
|
53
53
|
def cleanup_training_processes() -> None:
|
|
54
54
|
"""Terminate all running training processes."""
|
|
55
55
|
structlogger.debug("model_trainer.cleanup_processes.started")
|
|
56
|
-
|
|
56
|
+
running = list(trainings.values())
|
|
57
|
+
for training in running:
|
|
57
58
|
terminate_training(training)
|
|
58
59
|
|
|
59
60
|
|
|
60
61
|
def cleanup_bot_processes() -> None:
|
|
61
62
|
"""Terminate all running bot processes."""
|
|
62
63
|
structlogger.debug("model_runner.cleanup_processes.started")
|
|
63
|
-
|
|
64
|
+
running = list(running_bots.values())
|
|
65
|
+
for bot in running:
|
|
64
66
|
terminate_bot(bot)
|
|
65
67
|
|
|
66
68
|
|
|
67
69
|
def update_status_of_all_trainings() -> None:
|
|
68
70
|
"""Update the status of all training processes."""
|
|
69
|
-
|
|
71
|
+
running = list(trainings.values())
|
|
72
|
+
for training in running:
|
|
70
73
|
update_training_status(training)
|
|
71
74
|
|
|
72
75
|
|
|
73
76
|
async def update_status_of_all_bots() -> None:
|
|
74
77
|
"""Update the status of all bot processes."""
|
|
75
|
-
|
|
78
|
+
running = list(running_bots.values())
|
|
79
|
+
for bot in running:
|
|
76
80
|
await update_bot_status(bot)
|
|
77
81
|
|
|
78
82
|
|
|
@@ -360,6 +364,33 @@ def external_blueprint() -> Blueprint:
|
|
|
360
364
|
sio = AsyncServer(async_mode="sanic", cors_allowed_origins=[])
|
|
361
365
|
bp = SocketBlueprint(sio, "", "model_api_external")
|
|
362
366
|
|
|
367
|
+
@bp.get("/health")
|
|
368
|
+
async def health(request: Request) -> response.HTTPResponse:
|
|
369
|
+
return json(
|
|
370
|
+
{
|
|
371
|
+
"status": "ok",
|
|
372
|
+
"bots": [
|
|
373
|
+
{
|
|
374
|
+
"deployment_id": bot.deployment_id,
|
|
375
|
+
"status": bot.status,
|
|
376
|
+
"internal_url": bot.internal_url,
|
|
377
|
+
"url": bot.url,
|
|
378
|
+
}
|
|
379
|
+
for bot in running_bots.values()
|
|
380
|
+
],
|
|
381
|
+
"trainings": [
|
|
382
|
+
{
|
|
383
|
+
"training_id": training.training_id,
|
|
384
|
+
"assistant_id": training.assistant_id,
|
|
385
|
+
"client_id": training.client_id,
|
|
386
|
+
"progress": training.progress,
|
|
387
|
+
"status": training.status,
|
|
388
|
+
}
|
|
389
|
+
for training in trainings.values()
|
|
390
|
+
],
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
|
|
363
394
|
@bp.route("/logs/<path:path>")
|
|
364
395
|
async def get_training_logs(request: Request, path: str) -> response.HTTPResponse:
|
|
365
396
|
try:
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.10.7.
|
|
3
|
+
Version: 3.10.7.dev4
|
|
4
4
|
Summary: State-of-the-art open-core Conversational AI framework for Enterprises that natively leverages generative AI for effortless assistant development.
|
|
5
5
|
Home-page: https://rasa.com
|
|
6
6
|
Keywords: nlp,machine-learning,machine-learning-library,bot,bots,botkit,rasa conversational-agents,conversational-ai,chatbot,chatbot-framework,bot-framework
|
|
@@ -484,7 +484,7 @@ rasa/markers/validate.py,sha256=YypXKRS87xxrMMEz9HpAQzYJUwg0OPbczMXBRNjlJq4,709
|
|
|
484
484
|
rasa/model.py,sha256=GH1-N6Po3gL3nwfa9eGoN2bMRNMrn4f3mi17-osW3T0,3491
|
|
485
485
|
rasa/model_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
486
486
|
rasa/model_manager/config.py,sha256=LCzRoV78bLX_FREW7hfQLsQepupoTs1m-CnK3u_D01s,349
|
|
487
|
-
rasa/model_manager/model_api.py,sha256=
|
|
487
|
+
rasa/model_manager/model_api.py,sha256=2c0JL-tWn7ayn2EjVes-2tVQHj_FzULmpYC7IpOSJEI,16261
|
|
488
488
|
rasa/model_manager/runner_service.py,sha256=aMupR7t0EEy2yOGT5cR_6kluApnwOiiGkjyIVYxdsMk,5553
|
|
489
489
|
rasa/model_manager/socket_bridge.py,sha256=f-dhsV8xYaENXVZT5OOzkMdpSPPPxFEzsQqNJAuktxQ,1390
|
|
490
490
|
rasa/model_manager/trainer_service.py,sha256=7LP_EsLQt-P2oqO1AgqbgIcTC515eCW58BamDkDjJjw,7856
|
|
@@ -727,9 +727,9 @@ rasa/utils/train_utils.py,sha256=f1NWpp5y6al0dzoQyyio4hc4Nf73DRoRSHDzEK6-C4E,212
|
|
|
727
727
|
rasa/utils/url_tools.py,sha256=JQcHL2aLqLHu82k7_d9imUoETCm2bmlHaDpOJ-dKqBc,1218
|
|
728
728
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
729
729
|
rasa/validator.py,sha256=HM0ZIWjo3JRt2FMIfgNI_s932OABOSXkflm-rFTNkvY,62608
|
|
730
|
-
rasa/version.py,sha256=
|
|
731
|
-
rasa_pro-3.10.7.
|
|
732
|
-
rasa_pro-3.10.7.
|
|
733
|
-
rasa_pro-3.10.7.
|
|
734
|
-
rasa_pro-3.10.7.
|
|
735
|
-
rasa_pro-3.10.7.
|
|
730
|
+
rasa/version.py,sha256=8PjlwS5fwFAp76cEyd2sO2WTKsD27O3oI34eANowHJQ,122
|
|
731
|
+
rasa_pro-3.10.7.dev4.dist-info/METADATA,sha256=XPkuyA-6VxXeaHYLP43ku28tp_o9KSlk6WpxvpBRTSw,28217
|
|
732
|
+
rasa_pro-3.10.7.dev4.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
733
|
+
rasa_pro-3.10.7.dev4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
734
|
+
rasa_pro-3.10.7.dev4.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
735
|
+
rasa_pro-3.10.7.dev4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|