MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / fromEntity

Method fromEntity

service/ai-local/iml.go:138–148  ·  view source on GitHub ↗
(e *ai.LocalModelPackage)

Source from the content-addressed store, hash-verified

136}
137
138func (i *imlLocalModelPackageService) fromEntity(e *ai.LocalModelPackage) *LocalModelPackage {
139 return &LocalModelPackage{
140 Id: e.Uuid,
141 Name: e.Name,
142 Size: e.Size,
143 Hash: e.Hash,
144 Description: e.Description,
145 Version: e.Version,
146 IsPopular: e.IsPopular,
147 }
148}
149
150type imlLocalModelInstallStateService struct {
151 store ai.ILocalModelInstallStateStore `autowired:""`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected