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

Function newModelOptions

common/cost/version.go:196–205  ·  view source on GitHub ↗

newModelOptions resolves the supplied options over the defaults.

(opts ...ModelOption)

Source from the content-addressed store, hash-verified

194
195// newModelOptions resolves the supplied options over the defaults.
196func newModelOptions(opts ...ModelOption) *modelOptions {
197 resolved := &modelOptions{
198 strategy: defaultSizing,
199 version: defaultModelVersion,
200 }
201 for _, opt := range opts {
202 opt(resolved)
203 }
204 return resolved
205}
206
207// Model registers one or more OverloadModels for both cost estimation and runtime cost tracking.
208//

Callers 7

TestNewModelOptionsFunction · 0.85
overrideMethod · 0.85
applyCosterMethod · 0.85
applyTrackerMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestNewModelOptionsFunction · 0.68