Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
vcidst committed Jan 18, 2024
1 parent 70f397c commit 3b56c64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rasa/core/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,11 @@ def _update_full_retrieval_intent(self, parse_data: Dict[Text, Any]) -> None:
response_selector = parse_data.get(RESPONSE_SELECTOR, {})
all_retrieval_intents = response_selector.get("all_retrieval_intents", [])
if intent_name and intent_name in all_retrieval_intents:
retrieval_intent = response_selector.get(intent_name, {}).get(RESPONSE, {}).get(INTENT_RESPONSE_KEY)
retrieval_intent = (
response_selector.get(intent_name, {})
.get(RESPONSE, {})
.get(INTENT_RESPONSE_KEY)
)
parse_data[INTENT][FULL_RETRIEVAL_INTENT_NAME_KEY] = retrieval_intent

def _parse_message_with_graph(
Expand Down

0 comments on commit 3b56c64

Please sign in to comment.