Skip to content

Commit

Permalink
fixed circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
twerkmeister committed Jun 16, 2023
1 parent 58c6aad commit 5275d3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rasa/core/policies/flow_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions rasa/nlu/classifiers/llm_flow_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,8 +38,6 @@
importlib.resources.read_text("rasa.nlu.classifiers", "flow_prompt_template.jinja2")
)

CORRECTION_INTENT = "correction"

logger = logging.getLogger(__name__)


Expand Down
2 changes: 2 additions & 0 deletions rasa/shared/nlu/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check failure on line 44 in rasa/shared/nlu/constants.py

View workflow job for this annotation

GitHub Actions / Code Quality

W292 [*] No newline at end of file

0 comments on commit 5275d3d

Please sign in to comment.