eta.core.execution.process_expected_step
- process_expected_step(event, ds)[source]
Process an expected step by failing it if the waiting period has elapsed, or matching it to a fact in context.
Since an expected user step indicates the user’s dialogue turn, we also write the current output buffer at this point.
The dialogue context is flushed of “telic” predicates, i.e., those assumed to be essentially instantaneous, after a successful match (we assume that such predicates may only be used once in a match before becoming outdated).
- Parameters:
event (Eventuality) – The expected step to process.
ds (DialogueState) –
- Returns:
Whether to advance the plan.
- Return type: