Crate gestura_core_intent

Crate gestura_core_intent 

Source
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§

GestureData
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§

InputModality
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-primitives is disabled.

Functions§

normalize_input_to_intent
Normalize a RawInput into a unified Intent.