Validate pipeline controls in the typed validation callback
This commit is contained in:
@@ -83,7 +83,6 @@ func validateDocumentPipelinePresence(document *Document, resolution *configkit.
|
|||||||
}
|
}
|
||||||
|
|
||||||
func validatePipelineDocumentPresence(profile PipelineDocument, path configkit.Path, resolution *configkit.Resolution) {
|
func validatePipelineDocumentPresence(profile PipelineDocument, path configkit.Path, resolution *configkit.Resolution) {
|
||||||
validateDocumentControls(profile.Mode, profile.MaxAdditionalTurns, profile.Cache, path, validation)
|
|
||||||
rejectDocumentNull(resolution, path.Key("llm_profile"), profile.LLMProfile == nil)
|
rejectDocumentNull(resolution, path.Key("llm_profile"), profile.LLMProfile == nil)
|
||||||
|
|
||||||
stepsPath := path.Key("steps")
|
stepsPath := path.Key("steps")
|
||||||
@@ -315,6 +314,7 @@ func validateDocumentPipelines(document *Document, validation *configkit.Validat
|
|||||||
}
|
}
|
||||||
|
|
||||||
func validatePipelineDocument(profile PipelineDocument, path configkit.Path, validation *configkit.Validation) {
|
func validatePipelineDocument(profile PipelineDocument, path configkit.Path, validation *configkit.Validation) {
|
||||||
|
validateDocumentControls(profile.Mode, profile.MaxAdditionalTurns, profile.Cache, path, validation)
|
||||||
validateSelectedDocumentProfile(profile.LLMProfile, path.Key("llm_profile"), validation)
|
validateSelectedDocumentProfile(profile.LLMProfile, path.Key("llm_profile"), validation)
|
||||||
validateDocumentBinding(profile.Input, path.Key("input"), "input", false, false, validation)
|
validateDocumentBinding(profile.Input, path.Key("input"), "input", false, false, validation)
|
||||||
if profile.Chunk != nil {
|
if profile.Chunk != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user