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

Method newExecutionFrame

cel/program.go:560–572  ·  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

558
559// newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
560func (p *prog) newExecutionFrame(input any) (*interpreter.ExecutionFrame, error) {
561 frame, err := interpreter.NewExecutionFrame(input)
562 if err != nil {
563 return nil, err
564 }
565 if p.defaultVars != nil {
566 if err := frame.SetDefaultVars(p.defaultVars); err != nil {
567 frame.Close()
568 return nil, err
569 }
570 }
571 return frame, nil
572}
573
574// newAsyncFrame creates an ExecutionFrame configured for asynchronous evaluation under the
575// given context, wiring the observer and concurrency limit from the program options.

Callers 3

EvalMethod · 0.95
ContextEvalMethod · 0.95
newAsyncFrameMethod · 0.95

Calls 3

SetDefaultVarsMethod · 0.95
CloseMethod · 0.95
NewExecutionFrameFunction · 0.92

Tested by

no test coverage detected