Skip to content

Commit

Permalink
Add --endpoints flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Tawakalt committed Feb 5, 2024
1 parent 073db29 commit ed5a1cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rasa_sdk/cli/arguments.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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.",
)
1 change: 1 addition & 0 deletions rasa_sdk/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ed5a1cb

Please sign in to comment.