Capture schema roots from configuration sources

This commit is contained in:
2026-11-20 15:25:00 +00:00
parent fbe3d427a2
commit 596e985cff
11 changed files with 204 additions and 100 deletions

View File

@@ -44,6 +44,11 @@ type PromptOutputConfig struct {
RepairAttempts *int
}
// SchemaRootSource supplies a schema root as a native configuration mapping.
func SchemaRootSource(label, root string) configkit.Source {
return configkit.Mapping(label, map[string]any{"schema_root": root})
}
// PromptSource creates a labeled ConfigKit mapping in caller order. Nil
// top-level input supplies an empty prompts sequence. Records may be partial:
// sibling inheritance and layered sources can complete them before NewEngine