

Return await f( request, * args, ** kwargs) Request: Request, * args: Any, ** kwargs: AnyĬonversation_id = kwargs """Wraps a request handler ensuring the conversation exists."""ĭef decorator( f: "SanicView") -> wraps( f) Help_url = _docs( "/user-guide/configuring-http-api/"),ĭef ensure_conversation_exists() -> Callable, "SanicView"]: "model of a trained agent needs to be loaded.", Require the agent to have a loaded Core model if `require_core_is_ready` isĭef decorator( f: Callable) -> wraps( f)ĭef decorated( * args: Any, ** kwargs: Any) -> Any: """Wraps a request handler ensuring there is a loaded and usable agent. """Create a url to a subpart of the docs."""Īpp: Sanic, require_core_is_ready: bool = False Help_url: URL where users can get further help (e.g. Message: Detailed explanation of the error.ĭetails: Additional details which describe the error. """Common exception to handle failing API requests.""" USE_LATEST_INPUT_CHANNEL_AS_OUTPUT_CHANNEL = "latest"ĮXECUTE_SIDE_EFFECTS_QUERY_KEY = "execute_side_effects"


OUTPUT_CHANNEL_QUERY_KEY = "output_channel" processor import MessageProcessorįrom mypy_extensions import Arg, VarArg, KwArg endpoints import EndpointConfigįrom rasa. utils import AvailableEndpointsįrom rasa. domain import InvalidDomain, Domainįrom rasa. constants import MINIMUM_COMPATIBLE_VERSIONįrom rasa. constants import DEFAULT_RESPONSE_TIMEOUTįrom rasa. importer import TrainingDataImporterįrom rasa. ErrorResponse Class _init_ Function _docs Function ensure_loaded_agent Function decorator Function decorated Function ensure_conversation_exists Function decorator Function decorated Function requires_auth Function decorator Function conversation_id_from_args Function sufficient_scope Function decorated Function event_verbosity_parameter Function get_test_stories Function update_conversation_with_events Function validate_request_body Function validate_events_in_request_body Function authenticate Function create_ssl_context Function _create_emulator Function _load_agent Function configure_cors Function add_root_route Function hello Function async_if_callback_url Function decorated_function Function wrapped Function run_in_thread Function decorated_function Function run Function inject_temp_dir Function decorated_function Function create_app Function handle_error_response Function version Function status Function retrieve_tracker Function append_events Function _get_events_from_request_body Function replace_events Function retrieve_story Function execute_action Function trigger_intent Function predict Function add_message Function train Function evaluate_stories Function evaluate_intents Function _evaluate_model_using_test_set Function _cross_validate Function _get_evaluation_results Function tracker_predict Function parse Function load_model Function unload_model Function get_domain Function _get_output_channel Function _test_data_file_from_payload Function _training_payload_from_yaml Function _nlu_training_payload_from_json Function _validate_yaml_training_payload Function _extract_core_additional_arguments Function _extract_nlu_additional_arguments Functionīumps ( ) from 2.0.0 to 2.2.0.
