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

Function CostEstimatorOptions

cel/options.go:795–800  ·  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

793
794// CostEstimatorOptions configure type-check time options for estimating expression cost.
795func CostEstimatorOptions(costOpts ...checker.CostOption) EnvOption {
796 return func(e *Env) (*Env, error) {
797 e.costOptions = append(e.costOptions, costOpts...)
798 return e, nil
799 }
800}
801
802// CostTrackerOptions configures a set of options for cost-tracking.
803//

Callers 10

CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
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