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

Function StdLib

cel/library.go:132–138  ·  view source on GitHub ↗

StdLib returns an EnvOption for the standard library of CEL functions and macros.

(opts ...StdLibOption)

Source from the content-addressed store, hash-verified

130
131// StdLib returns an EnvOption for the standard library of CEL functions and macros.
132func StdLib(opts ...StdLibOption) EnvOption {
133 lib := &stdLibrary{}
134 for _, o := range opts {
135 lib = o(lib)
136 }
137 return Lib(lib)
138}
139
140// stdLibrary implements the Library interface and provides functional options for the core CEL
141// features documented in the specification.

Callers 15

initFunction · 0.92
getStdEnvFunction · 0.85
configToEnvOptionsFunction · 0.85
TestPromptTemplateFunction · 0.85
TestEnvCheckExtendRaceFunction · 0.85
TestEnvConcurrentExtendFunction · 0.85
TestCustomEnvErrorFunction · 0.85

Calls 1

LibFunction · 0.85

Tested by 14

initFunction · 0.74
TestPromptTemplateFunction · 0.68
TestEnvCheckExtendRaceFunction · 0.68
TestEnvConcurrentExtendFunction · 0.68
TestCustomEnvErrorFunction · 0.68
TestSubsetStdLibFunction · 0.68
TestSubsetStdLibErrorFunction · 0.68