eta.core.planning.expand_condition_step

expand_condition_step(event, ds, schema=None)[source]

Expand a step containing a condition eventuality depending on the truth value of its condition.

Parameters:
  • event (Condition) – The condition eventuality to expand.

  • ds (DialogueState) –

  • schema (Schema, optional) – The schema (if any) to inherit from when instantiating the sub-eventualities.

Returns:

The updated plan, if successful.

Return type:

PlanNode or None