router: add ActionResolutionMethod type and ResolvedBy field to Slots

Five disjoint values tracking which component selected the exact function:
grammar_fixed, grammar_matcher, extractor_raw, extractor_llm_text,
fallback_matcher. Slots.ResolvedBy carries provenance at the selection
point.
This commit is contained in:
2026-09-06 13:49:50 +04:00
parent 66c578a6f4
commit 1d02ba8936
2 changed files with 37 additions and 0 deletions
+4
View File
@@ -31,6 +31,10 @@ type Slots struct {
Fn string
Args []string
HasFn bool
// ResolvedBy — which component selected the exact function. Mirrors
// router.Slots.ResolvedBy. Carried as a string because dialogue cannot
// import router (import cycle).
ResolvedBy string
}
// Turn represents one utterance in a multi-turn dialogue history.