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

Method newExecutionFrame

cel/program.go:425–436  ·  view source on GitHub ↗

newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.

(input any)

Source from the content-addressed store, hash-verified

423
424// newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
425func (p *prog) newExecutionFrame(input any) (*interpreter.ExecutionFrame, error) {
426 frame, err := interpreter.NewExecutionFrame(input)
427 if err != nil {
428 return nil, err
429 }
430 if p.defaultVars != nil {
431 // Update the frame's activation in place.
432 frame.Activation = interpreter.NewHierarchicalActivation(p.defaultVars, frame.Activation)
433 }
434
435 return frame, nil
436}
437
438// newAsyncFrame creates an ExecutionFrame configured for asynchronous evaluation under the
439// given context, wiring the observer and concurrency limit from the program options.

Callers 3

EvalMethod · 0.95
ContextEvalMethod · 0.95
newAsyncFrameMethod · 0.95

Calls 2

NewExecutionFrameFunction · 0.92

Tested by

no test coverage detected