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

Function CustomDecorator

cel/options.go:452–457  ·  view source on GitHub ↗

CustomDecorator appends an InterpreterDecorator to the program. InterpretableDecorators can be used to inspect, alter, or replace the Program plan.

(dec interpreter.InterpretableDecorator)

Source from the content-addressed store, hash-verified

450//
451// InterpretableDecorators can be used to inspect, alter, or replace the Program plan.
452func CustomDecorator(dec interpreter.InterpretableDecorator) ProgramOption {
453 return func(p *prog) (*prog, error) {
454 p.plannerOptions = append(p.plannerOptions, interpreter.CustomDecorator(dec))
455 return p, nil
456 }
457}
458
459// CustomDecoratorV2 appends an InterpreterDecoratorV2 to the program.
460func CustomDecoratorV2(dec interpreter.InterpretableDecoratorV2) ProgramOption {

Callers 1

Calls 1

CustomDecoratorFunction · 0.92

Tested by 1