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

Function NewActivation

cel/program.go:95–97  ·  view source on GitHub ↗

NewActivation returns an activation based on a map-based binding where the map keys are expected to be qualified names used with ResolveName calls. The input `bindings` may either be of type `Activation` or `map[string]any`. Lazy bindings may be supplied within the map-based input in either of the

(bindings any)

Source from the content-addressed store, hash-verified

93// Values which are not represented as ref.Val types on input may be adapted to a ref.Val using
94// the types.Adapter configured in the environment.
95func NewActivation(bindings any) (Activation, error) {
96 return interpreter.NewActivation(bindings)
97}
98
99// PartialActivation extends the Activation interface with a set of unknown AttributePatterns.
100type PartialActivation = interpreter.PartialActivation

Callers 8

constructActivationFunction · 0.92
applyContextMethod · 0.92
PartialVarsMethod · 0.70
GlobalsFunction · 0.70
ContextProtoVarsFunction · 0.70

Calls 1

NewActivationFunction · 0.92