eta.plan.init_plan_from_eventualities

init_plan_from_eventualities(eventualities, schema=None)[source]

Create a plan structure from a list of eventualities, assumed to occur sequentially.

Parameters:
  • eventualities (list[Eventualities]) – The list of eventualities to use to create a plan.

  • schema (Schema, optional) – If a schema is provided, it will be added to the created plan steps and used to inherit obligations, etc.

Returns:

The first node in the created plan structure.

Return type:

PlanNode

Notes

TODO: we might, in the future, allow for episode-relations in the schema to provide initial constraints over plan construction here.