car-validator
Precondition checking and action validation for the Common Agent Runtime.
What it does
Validates actions against runtime state and registered tool schemas before execution.
Checks preconditions (eq, neq, gt, lt, gte, lte, exists, not_exists, contains), verifies
required tool parameters, and confirms state dependencies are present. Returns structured
ValidationResult with all errors.
Usage
use ;
use StateStore;
let state = new;
let result = validate_action;
if !result.valid
Part of CAR -- see the main repo for full documentation.