should_transform_message

should_transform_message(
    message: dict[str, Any],
    filter_dict: dict[str, Any] | None,
    exclude: bool
) -> bool

Validates whether the transform should be applied according to the filter dictionary.

Parameters:
NameDescription
messageThe message to validate.

Type: dict[str, typing.Any]
filter_dictThe filter dictionary to validate against.

If None, the transform is always applied.

Type: dict[str, typing.Any] | None
excludeWhether to exclude messages that match the filter dictionary.

Type: bool