Documentation
¶
Overview ¶
Package shortcuts implements pattern-matched intent shortcuts used by Assist Mode. The Registry holds two ordered lists — phrases (full utterances mapped to a fixed Intent) and fillers (locale-specific idle/filler words to strip) — and the resolver walks them to classify or normalize incoming transcripts before they reach the LLM path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Intent ¶
type Intent string
const ( IntentNone Intent = "" IntentQuickNote Intent = "quick_note" IntentCopyLast Intent = "copy_last" IntentInsertLast Intent = "insert_last" IntentSummarize Intent = "summarize" // Voice-Companion intents (used by Assist-Mode when wakeword.default_mode // = "assist"). See docs/voice-companion.md for the full surface and // internal/assist/skills/voice_companion/ for the per-intent executors. // Skills land in Phase 1; the intents are wired here in Phase 0 so the // resolver catalog and tests can reference stable values. IntentTime Intent = "time" IntentDate Intent = "date" IntentWeather Intent = "weather" IntentTimer Intent = "timer" IntentReminder Intent = "reminder" IntentMath Intent = "math" IntentWikipedia Intent = "wikipedia" IntentHomeAssistant Intent = "home_assistant" )
type IntentLexicon ¶ added in v0.18.0
type Registry ¶ added in v0.18.0
type Registry struct {
// contains filtered or unexported fields
}
func DefaultRegistry ¶ added in v0.18.0
func DefaultRegistry() *Registry
func NewRegistry ¶ added in v0.18.0
func NewRegistry() *Registry
func (*Registry) RegisterLeadingFillers ¶ added in v0.18.0
func (*Registry) RegisterLexicon ¶ added in v0.18.0
func (r *Registry) RegisterLexicon(lexicon IntentLexicon)
type Resolution ¶
func Resolve ¶
func Resolve(text string) Resolution
func ResolveWithLocale ¶ added in v0.18.0
func ResolveWithLocale(text, locale string) Resolution
type Resolver ¶ added in v0.18.0
type Resolver struct {
// contains filtered or unexported fields
}
func DefaultResolver ¶ added in v0.18.0
func DefaultResolver() *Resolver
func NewResolver ¶ added in v0.18.0
func (*Resolver) Resolve ¶ added in v0.18.0
func (r *Resolver) Resolve(text, locale string) Resolution
Click to show internal directories.
Click to hide internal directories.