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

Function CustomDecoratorV2

cel/options.go:475–480  ·  view source on GitHub ↗

CustomDecoratorV2 appends an InterpreterDecoratorV2 to the program.

(dec interpreter.InterpretableDecoratorV2)

Source from the content-addressed store, hash-verified

473
474// CustomDecoratorV2 appends an InterpreterDecoratorV2 to the program.
475func CustomDecoratorV2(dec interpreter.InterpretableDecoratorV2) ProgramOption {
476 return func(p *prog) (*prog, error) {
477 p.plannerOptions = append(p.plannerOptions, interpreter.CustomDecoratorV2(dec))
478 return p, nil
479 }
480}
481
482// Functions adds function overloads that extend or override the set of CEL built-ins.
483//

Callers 4

ProgramOptionsMethod · 0.92
trackEvalPassesFunction · 0.92
ProgramOptionsMethod · 0.70

Calls 1

CustomDecoratorV2Function · 0.92

Tested by 2

trackEvalPassesFunction · 0.74