eta.transducers.base.ReasonTopDownTransducer

class ReasonTopDownTransducer[source]

Bases: Transducer

Maps from a plan step event and a list of facts to a list of new facts inferred from those.

Parameters:
  • step (Eventuality) – The event corresponding to the plan step to use as context for inference.

  • facts (list[Eventuality]) – The list of facts to make inferences from.

Returns:

A list of new facts inferred from the plan step and given facts.

Return type:

list[Eventuality]

Methods

cost

Report cumulative costs of applying this transducer.

__call__(step, facts)[source]

Map from input(s) to output.

cost()

Report cumulative costs of applying this transducer.