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

Method SetDisableMacros

common/env/env.go:659–662  ·  view source on GitHub ↗

SetDisableMacros disables the macros for the library.

(value bool)

Source from the content-addressed store, hash-verified

657
658// SetDisableMacros disables the macros for the library.
659func (lib *LibrarySubset) SetDisableMacros(value bool) *LibrarySubset {
660 lib.DisableMacros = value
661 return lib
662}
663
664// AddIncludedMacros allow-lists one or more macros by function name.
665//

Callers 5

envToStdLibFunction · 0.95
TestPromptTemplateFunction · 0.80
TestEnvFromConfigErrorsFunction · 0.80
TestSubsetMacroFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestPromptTemplateFunction · 0.64
TestEnvFromConfigErrorsFunction · 0.64
TestSubsetMacroFunction · 0.64