MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Evaluate

Function Evaluate

runtime/runtime.h:84–89  ·  view source on GitHub ↗

Evaluate the program. Non-recoverable errors (i.e. outside of CEL's notion of an error) are returned as a non-ok absl::Status. These are propagated immediately and do not participate in CEL's notion of error handling. CEL errors are represented as result with an Ok status and a held cel::ErrorValue result. Activation manages instances of variables available in the cel expression's environment.

Source from the content-addressed store, hash-verified

82 // For consistency, users should use the same arena to create values
83 // in the activation and for Program evaluation.
84 absl::StatusOr<Value> Evaluate(
85 google::protobuf::Arena* absl_nonnull arena ABSL_ATTRIBUTE_LIFETIME_BOUND,
86 const ActivationInterface& activation,
87 const EvaluateOptions& options = {}) const ABSL_ATTRIBUTE_LIFETIME_BOUND {
88 return EvaluateImpl(activation, arena, options);
89 }
90
91 ABSL_DEPRECATED("Use the EvaluateOptions overload instead.")
92 absl::StatusOr<Value> Evaluate(

Callers 6

InvokeMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85
TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68