Expand description
The formatter seam (pure). talk-core owns the restraint POLICY: the
Formatter contract, the always-safe deterministic fallback, and the
diff-guarded call site. The real Candle 0.5B inference lives in the binary’s
src/format/ and implements this same trait (Plan 3 T7).
Structs§
- Deterministic
Formatter - The always-safe formatter: deterministic-Light, no model. Guard-safe by construction (caps / punctuation / leading-filler only).
Traits§
- Formatter
- Turn one phrase into cleaned text at a given level. Implementors do ONLY their
transform — the deterministic pre-layer and the diff-guard are applied by
guarded_format, never here. (So a formatter receives already-pre-processed text and must not re-apply spoken commands / backtrack.)
Functions§
- guarded_
format - The moat. Pre-layer → format → accept iff the content-word guard passes, else
deterministic-Light.
Noneshort-circuits to the pre-processed text (no formatting). The result is ALWAYS guard-safe relative to the pre-processed phrase — fail-safe is always your words.