MCPcopy Index your code
hub / github.com/docker/docker-agent / GetModel

Method GetModel

pkg/runtime/lazy_model_store.go:39–45  ·  view source on GitHub ↗
(ctx context.Context, id modelsdev.ID)

Source from the content-addressed store, hash-verified

37}
38
39func (l *lazyModelStore) GetModel(ctx context.Context, id modelsdev.ID) (*modelsdev.Model, error) {
40 st, err := l.load()
41 if err != nil {
42 return nil, err
43 }
44 return st.GetModel(ctx, id)
45}
46
47func (l *lazyModelStore) GetDatabase(ctx context.Context) (*modelsdev.Database, error) {
48 st, err := l.load()

Callers 1

Calls 2

loadMethod · 0.95
GetModelMethod · 0.65

Tested by 1