Skip to content

Commit

Permalink
Revert "Flow branching based on action output - [ENG 372] (#12669)"
Browse files Browse the repository at this point in the history
This reverts commit c25ed1d.
  • Loading branch information
varunshankar authored Aug 8, 2023
1 parent 4bae431 commit 2b659e7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion data/test_trackers/tracker_moodbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"rasa_corrected_slots": null,
"rasa_previous_flow": null,
"requested_slot": null,
"return_value": null,
"session_started_metadata": null
},
"latest_input_channel": null,
Expand Down
2 changes: 0 additions & 2 deletions rasa/shared/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,12 @@
PREVIOUS_FLOW_SLOT = "rasa_previous_flow"
CANCELLED_FLOW_SLOT = "rasa_cancelled_flow"
CORRECTED_SLOTS_SLOT = "rasa_corrected_slots"
RETURN_VALUE_SLOT = "return_value"

FLOW_SLOT_NAMES = [
FLOW_STACK_SLOT,
PREVIOUS_FLOW_SLOT,
CANCELLED_FLOW_SLOT,
CORRECTED_SLOTS_SLOT,
RETURN_VALUE_SLOT,
]

# slots for knowledge base
Expand Down
3 changes: 0 additions & 3 deletions tests/core/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
CANCELLED_FLOW_SLOT,
PREVIOUS_FLOW_SLOT,
CORRECTED_SLOTS_SLOT,
RETURN_VALUE_SLOT,
)
from rasa.shared.core.trackers import DialogueStateTracker
from rasa.shared.exceptions import RasaException
Expand Down Expand Up @@ -248,7 +247,6 @@ async def test_remote_action_runs(
CANCELLED_FLOW_SLOT: None,
CORRECTED_SLOTS_SLOT: None,
PREVIOUS_FLOW_SLOT: None,
RETURN_VALUE_SLOT: None,
},
"events": [],
"latest_input_channel": None,
Expand Down Expand Up @@ -315,7 +313,6 @@ async def test_remote_action_logs_events(
CANCELLED_FLOW_SLOT: None,
CORRECTED_SLOTS_SLOT: None,
PREVIOUS_FLOW_SLOT: None,
RETURN_VALUE_SLOT: None,
},
"events": [],
"latest_input_channel": None,
Expand Down
1 change: 0 additions & 1 deletion tests/shared/core/test_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,6 @@ def test_domain_from_multiple_files():
"rasa_corrected_slots",
"rasa_previous_flow",
"requested_slot",
"return_value",
"session_started_metadata",
]

Expand Down
2 changes: 0 additions & 2 deletions tests/shared/importers/test_rasa.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
PREVIOUS_FLOW_SLOT,
CANCELLED_FLOW_SLOT,
CORRECTED_SLOTS_SLOT,
RETURN_VALUE_SLOT,
)
from rasa.shared.core.domain import Domain
from rasa.shared.core.slots import AnySlot
Expand All @@ -38,7 +37,6 @@ def test_rasa_file_importer(project: Text):
AnySlot(PREVIOUS_FLOW_SLOT, mappings=[{}]),
AnySlot(CANCELLED_FLOW_SLOT, mappings=[{}]),
AnySlot(CORRECTED_SLOTS_SLOT, mappings=[{}]),
AnySlot(RETURN_VALUE_SLOT, mappings=[{}]),
AnySlot(SESSION_START_METADATA_SLOT, mappings=[{}]),
]
assert domain.entities == []
Expand Down
2 changes: 0 additions & 2 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
CANCELLED_FLOW_SLOT,
CORRECTED_SLOTS_SLOT,
PREVIOUS_FLOW_SLOT,
RETURN_VALUE_SLOT,
)
from rasa.shared.core.domain import Domain, SessionConfig
from rasa.shared.core.events import (
Expand Down Expand Up @@ -1125,7 +1124,6 @@ async def test_requesting_non_existent_tracker(rasa_app: SanicASGITestClient):
CANCELLED_FLOW_SLOT: None,
CORRECTED_SLOTS_SLOT: None,
PREVIOUS_FLOW_SLOT: None,
RETURN_VALUE_SLOT: None,
}
assert content["sender_id"] == "madeupid"
assert content["events"] == [
Expand Down

0 comments on commit 2b659e7

Please sign in to comment.