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

Function CostSizingStrategy

cel/options.go:893–898  ·  view source on GitHub ↗

CostSizingStrategy configures a SizingStrategy for both cost estimation and runtime cost tracking.

(strategy cost.SizingStrategy)

Source from the content-addressed store, hash-verified

891
892// CostSizingStrategy configures a SizingStrategy for both cost estimation and runtime cost tracking.
893func CostSizingStrategy(strategy cost.SizingStrategy) EnvOption {
894 return func(e *Env) (*Env, error) {
895 e.costConfig.strategy = strategy
896 return e, nil
897 }
898}
899
900// CostModelVersion pins cost estimation and runtime cost tracking to a revision of the cost
901// model's rules.

Callers 8

optionalCostEnvFunction · 0.92
TestCostSizingStrategyFunction · 0.85
TestCostModelFunction · 0.85
TestCostModelExtendEnvFunction · 0.85

Calls

no outgoing calls

Tested by 8

optionalCostEnvFunction · 0.74
TestCostSizingStrategyFunction · 0.68
TestCostModelFunction · 0.68
TestCostModelExtendEnvFunction · 0.68