aether-utils 0.2.5

Shared utilities for the Aether AI agent framework
Documentation
1
2
3
4
5
6
7
8
/// Serde `skip_serializing_if` helper for `bool` fields that default to `false`.
///
/// Takes `&bool` rather than `bool` because `skip_serializing_if` calls the
/// predicate with a reference to the field.
#[allow(clippy::trivially_copy_pass_by_ref)]
pub fn is_false(b: &bool) -> bool {
    !*b
}