Skip to main content

Crate ri_esp_policy

Crate ri_esp_policy 

Source
Expand description

Deterministic sensor-policy crate for the ESP32/S3 physical-AI endpoint stack.

Inspects a normalized ri_esp_core::EnvironmentReading, checks freshness, chooses a canonical PromptId, and returns a PolicyDecision with reason, confidence, route hint, and exact prompt text.

It does not run language generation and does not claim model correctness.

Structs§

PolicyContext
Input context for a policy evaluation.
PolicyDecision
The result of a policy evaluation.
SensorPolicy
Thresholds for sensor policy decisions.

Enums§

PolicyReason
Why the policy chose this prompt.
PromptId
Canonical prompt identifiers matching the 2026-07-01 hard test.