@@ -478,14 +478,12 @@ def is_action_limit_reached():
478
478
# call a registered callback
479
479
self .on_circuit_break (tracker , message .output_channel , self .nlg )
480
480
481
- # noinspection PyUnusedLocal
482
481
@staticmethod
483
- def should_predict_another_action (action_name : Text , events : List [ Event ] ) -> bool :
482
+ def should_predict_another_action (action_name : Text ) -> bool :
484
483
"""Determine whether the processor should predict another action.
485
484
486
485
Args:
487
486
action_name: Name of the latest executed action.
488
- events: List of events returned by the latest executed action.
489
487
490
488
Returns:
491
489
`False` if `action_name` is `ACTION_LISTEN_NAME` or
@@ -567,7 +565,7 @@ async def _run_action(
567
565
except ActionExecutionRejection :
568
566
events = [ActionExecutionRejected (action .name (), policy , confidence )]
569
567
tracker .update (events [0 ])
570
- return self .should_predict_another_action (action .name (), events )
568
+ return self .should_predict_another_action (action .name ())
571
569
except Exception as e :
572
570
logger .error (
573
571
f"Encountered an exception while running action '{ action .name ()} '. "
@@ -588,7 +586,7 @@ async def _run_action(
588
586
await self ._schedule_reminders (events , tracker , output_channel , nlg )
589
587
await self ._cancel_reminders (events , tracker )
590
588
591
- return self .should_predict_another_action (action .name (), events )
589
+ return self .should_predict_another_action (action .name ())
592
590
593
591
def _warn_about_new_slots (self , tracker , action_name , events ) -> None :
594
592
# these are the events from that action we have seen during training
0 commit comments