agent.rules.conditions module

Rule condition helpers.

agent.rules.conditions.is_always(event, before, after)

Return True. Always means always.

Return type

bool

agent.rules.conditions.is_feature_type(feature_type)

Generate a condition based on feature type.

Return type

Callable[[Event, Submission, Submission], bool]

agent.rules.conditions.is_system_event(event, before, after)

Only for system-created events.

Return type

bool

agent.rules.conditions.is_user_event(event, before, after)

Only for user-created events.

Return type

bool