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

Function Macros

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

254//
255// Note: This option must be specified after ClearMacros if used together.
256func Macros(macros ...Macro) EnvOption {
257 return func(e *Env) (*Env, error) {
258 e.macros = append(e.macros, macros...)
259 return e, nil
260 }
261}
262
263// Container sets the container for resolving variable names. Defaults to an empty container.
264//

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 9

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