From ed5a1cb917b13367805fcbdc09170143bb228582 Mon Sep 17 00:00:00 2001 From: Tawakalt Date: Mon, 5 Feb 2024 14:00:04 +0100 Subject: [PATCH] Add --endpoints flag --- rasa_sdk/cli/arguments.py | 7 ++++++- rasa_sdk/constants.py | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rasa_sdk/cli/arguments.py b/rasa_sdk/cli/arguments.py index 0e1dbe78c..a3b218357 100644 --- a/rasa_sdk/cli/arguments.py +++ b/rasa_sdk/cli/arguments.py @@ -1,6 +1,6 @@ import argparse -from rasa_sdk.constants import DEFAULT_SERVER_PORT +from rasa_sdk.constants import DEFAULT_SERVER_PORT, DEFAULT_ENDPOINTS_PATH def action_arg(action): @@ -54,3 +54,8 @@ def add_endpoint_arguments(parser): help="Enable auto-reloading of modules containing Action subclasses.", action="store_true", ) + parser.add_argument( + "--endpoints", + default=DEFAULT_ENDPOINTS_PATH, + help="Configuration file for tracing as a yml file.", + ) diff --git a/rasa_sdk/constants.py b/rasa_sdk/constants.py index ad52aaeb1..16637dfb1 100644 --- a/rasa_sdk/constants.py +++ b/rasa_sdk/constants.py @@ -10,3 +10,4 @@ PYTHON_LOGGING_SCHEMA_DOCS = ( "https://docs.python.org/3/library/logging.config.html#dictionary-schema-details" ) +DEFAULT_ENDPOINTS_PATH = "endpoints.yml"