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

Function Macros

cel/options.go:268–273  ·  view source on GitHub ↗

Macros option extends the macro set configured in the environment. Note: This option must be specified after ClearMacros if used together.

(macros ...Macro)

Source from the content-addressed store, hash-verified

266//
267// Note: This option must be specified after ClearMacros if used together.
268func Macros(macros ...Macro) EnvOption {
269 return func(e *Env) (*Env, error) {
270 e.macros = append(e.macros, macros...)
271 return e, nil
272 }
273}
274
275// Container sets the container for resolving variable names. Defaults to an empty container.
276//

Callers 15

CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
Example_cel_CustomMacrosFunction · 0.92
initFunction · 0.92
CompileOptionsMethod · 0.92
TestPromptTemplateFunction · 0.70
CompileOptionsMethod · 0.70
CompileOptionsMethod · 0.70
TestMacroSubsetFunction · 0.70

Calls

no outgoing calls

Tested by 11

Example_cel_CustomMacrosFunction · 0.74
initFunction · 0.74
CompileOptionsMethod · 0.74
TestPromptTemplateFunction · 0.56
TestMacroSubsetFunction · 0.56
TestCustomMacroFunction · 0.56
TestMacroInteropFunction · 0.56
TestMacroModernFunction · 0.56
TestCustomExistsMacroFunction · 0.56