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

Function CustomDecorator

cel/options.go:467–472  ·  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

465//
466// InterpretableDecorators can be used to inspect, alter, or replace the Program plan.
467func CustomDecorator(dec interpreter.InterpretableDecorator) ProgramOption {
468 return func(p *prog) (*prog, error) {
469 p.plannerOptions = append(p.plannerOptions, interpreter.CustomDecorator(dec))
470 return p, nil
471 }
472}
473
474// CustomDecoratorV2 appends an InterpreterDecoratorV2 to the program.
475func CustomDecoratorV2(dec interpreter.InterpretableDecoratorV2) ProgramOption {

Callers 1

Calls 1

CustomDecoratorFunction · 0.92

Tested by 1