Skip to content

ExpectationEvaluator

autogen.beta.network.hub.expectations.ExpectationEvaluator #

Bases: Protocol

Pure predicate over (metadata, state, wal, clock).

Returns None for "no violation right now." Evaluators must be deterministic functions of their inputs — the sweeper is called on a periodic tick, so non-deterministic evaluators would flap.

name instance-attribute #

name

evaluate #

evaluate(expectation, context)
Source code in autogen/beta/network/hub/expectations.py
def evaluate(
    self,
    expectation: Expectation,
    context: ExpectationContext,
) -> Violation | None: ...