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

Method ObserveEval

interpreter/interpretable.go:171–173  ·  view source on GitHub ↗

ObserveEval evaluates an interpretable and performs per-evaluation state-tracking. This method is concurrency safe and the expectation is that the observer function will use a switch statement to determine the type of the state which has been reported back from the call.

(vars Activation, observer func(any))

Source from the content-addressed store, hash-verified

169// This method is concurrency safe and the expectation is that the observer function will use
170// a switch statement to determine the type of the state which has been reported back from the call.
171func (oi *ObservableInterpretable) ObserveEval(vars Activation, observer func(any)) ref.Val {
172 return oi.ObserveExec(AsFrame(vars), observer)
173}
174
175// ObserveExec evaluates an interpretable and performs per-evaluation state-tracking.
176//

Callers

nothing calls this directly

Calls 2

ObserveExecMethod · 0.95
AsFrameFunction · 0.85

Tested by

no test coverage detected