Capture schema roots from configuration sources
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user