Skip to main content

validate_filter

Function validate_filter 

Source
pub fn validate_filter(f: &Filter) -> MenteResult<()>
Expand description

Check one filter on the owner and score fields:

  • agent and space compare an id (a UUID, quoted or bare) with =, !=, or IN [...].
  • salience and confidence compare a number with =, !=, <, <=, >, >=, or IN [...]. At execution salience is the memory’s current decayed salience, not the stored base; confidence is the stored value.

Other fields keep their existing handling.