Expand description
Unified intent normalization layer for Gestura.
gestura-core-intent converts every input modality—voice transcripts, chat
text, ring gesture data (IMU taps/tilts), and future inputs—into one
consistent Intent struct before any agentic processing.
§Design role
This crate sits immediately after raw input capture and immediately before the pipeline’s planning/execution phase. It ensures that downstream orchestration, tool selection, and response generation all operate on a single, modality-agnostic representation.
§Feature gating
Intent normalization is gated behind advanced-primitives. When the feature
is disabled the INTENT_NORMALIZATION_ENABLED constant is false and the
middleware branch in the pipeline constant-folds away, preserving the
original agentic loop behavior.
§Stable import paths
Application code should import through the facade:
gestura_core::intent::*
Structs§
- Gesture
Data - Optional IMU gesture data from the Haptic Harmony ring.
- Intent
- Unified, modality-agnostic intent produced by the normalization layer.
- RawInput
- Raw input envelope handed to the normalization layer.
Enums§
- Input
Modality - Input modality that produced the raw input.
Constants§
- INTENT_
NORMALIZATION_ ENABLED - Compile-time flag exported to downstream crates so the normalization branch
can constant-fold away when
advanced-primitivesis disabled.
Functions§
- normalize_
input_ to_ intent - Normalize a
RawInputinto a unifiedIntent.