MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ValidateOverloadModels

Function ValidateOverloadModels

common/cost/validate.go:129–136  ·  view source on GitHub ↗

ValidateOverloadModels reports the first model which is not well-formed.

(models ...OverloadModel)

Source from the content-addressed store, hash-verified

127
128// ValidateOverloadModels reports the first model which is not well-formed.
129func ValidateOverloadModels(models ...OverloadModel) error {
130 for _, m := range models {
131 if err := m.Validate(); err != nil {
132 return err
133 }
134 }
135 return nil
136}
137
138// validateQuantityExpr reports the first operand of an expression tree which cannot be evaluated.
139//

Callers 4

CostModelFunction · 0.92
newCompiledModelSetFunction · 0.85

Calls 1

ValidateMethod · 0.65

Tested by 2