diff --git a/rasa/core/policies/flow_policy.py b/rasa/core/policies/flow_policy.py index cb6de8589270..450a6b5ea91d 100644 --- a/rasa/core/policies/flow_policy.py +++ b/rasa/core/policies/flow_policy.py @@ -12,9 +12,9 @@ ) from pypred import Predicate from rasa.core.policies.rule_policy import RulePolicy -from rasa.nlu.classifiers.llm_flow_classifier import CORRECTION_INTENT from rasa.shared.constants import FLOW_PREFIX -from rasa.shared.nlu.constants import ENTITY_ATTRIBUTE_TYPE, INTENT_NAME_KEY +from rasa.shared.nlu.constants import ENTITY_ATTRIBUTE_TYPE, INTENT_NAME_KEY, \ + CORRECTION_INTENT from rasa.shared.core.constants import ( ACTION_FLOW_CONTINUE_INERRUPTED_NAME, ACTION_LISTEN_NAME, diff --git a/rasa/nlu/classifiers/llm_flow_classifier.py b/rasa/nlu/classifiers/llm_flow_classifier.py index e84bbfd97247..acad98125850 100644 --- a/rasa/nlu/classifiers/llm_flow_classifier.py +++ b/rasa/nlu/classifiers/llm_flow_classifier.py @@ -24,7 +24,7 @@ ENTITY_ATTRIBUTE_START, ENTITY_ATTRIBUTE_END, ENTITY_ATTRIBUTE_TEXT, - ENTITY_ATTRIBUTE_CONFIDENCE, + ENTITY_ATTRIBUTE_CONFIDENCE, CORRECTION_INTENT, ) from rasa.shared.nlu.training_data.message import Message from rasa.shared.nlu.training_data.training_data import TrainingData @@ -38,8 +38,6 @@ importlib.resources.read_text("rasa.nlu.classifiers", "flow_prompt_template.jinja2") ) -CORRECTION_INTENT = "correction" - logger = logging.getLogger(__name__) diff --git a/rasa/shared/nlu/constants.py b/rasa/shared/nlu/constants.py index 1f0b9b865c36..59e8e98d9a8c 100644 --- a/rasa/shared/nlu/constants.py +++ b/rasa/shared/nlu/constants.py @@ -40,3 +40,5 @@ SPLIT_ENTITIES_BY_COMMA = "split_entities_by_comma" SPLIT_ENTITIES_BY_COMMA_DEFAULT_VALUE = True SINGLE_ENTITY_ALLOWED_INTERLEAVING_CHARSET = {".", ",", " ", ";"} + +CORRECTION_INTENT = "correction" \ No newline at end of file