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

Function CostEstimatorOptions

cel/options.go:871–876  ·  view source on GitHub ↗

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

(costOpts ...cost.CostOption)

Source from the content-addressed store, hash-verified

869
870// CostEstimatorOptions configure type-check time options for estimating expression cost.
871func CostEstimatorOptions(costOpts ...cost.CostOption) EnvOption {
872 return func(e *Env) (*Env, error) {
873 e.costOptions = append(e.costOptions, costOpts...)
874 return e, nil
875 }
876}
877
878// CostModel configures overload cost estimators and cost trackers from a set of cost.OverloadModel definitions.
879//

Callers 6

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

Calls

no outgoing calls

Tested by 4

testK8sCostFunction · 0.74
TestEvalFunction · 0.68
TestCostLimitFunction · 0.68