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

Function CostEstimatorOptions

cel/options.go:739–744  ·  view source on GitHub ↗

CostEstimatorOptions configure type-check time options for estimating expression cost.

(costOpts ...checker.CostOption)

Source from the content-addressed store, hash-verified

737
738// CostEstimatorOptions configure type-check time options for estimating expression cost.
739func CostEstimatorOptions(costOpts ...checker.CostOption) EnvOption {
740 return func(e *Env) (*Env, error) {
741 e.costOptions = append(e.costOptions, costOpts...)
742 return e, nil
743 }
744}
745
746// CostTrackerOptions configures a set of options for cost-tracking.
747//

Callers 7

CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
TestEvalFunction · 0.85
TestCostLimitFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestEvalFunction · 0.68
TestCostLimitFunction · 0.68