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

Method fromEntity

service/ai-local/iml.go:165–174  ·  view source on GitHub ↗
(e *ai.LocalModelInstallState)

Source from the content-addressed store, hash-verified

163}
164
165func (i *imlLocalModelInstallStateService) fromEntity(e *ai.LocalModelInstallState) *LocalModelInstallState {
166 return &LocalModelInstallState{
167 Id: e.Uuid,
168 Complete: e.Complete,
169 Total: e.Total,
170 State: e.State,
171 Msg: e.LastMsg,
172 UpdateAt: e.UpdateAt,
173 }
174}
175
176func (i *imlLocalModelInstallStateService) labelHandler(e *ai.LocalModelInstallState) []string {
177 return []string{e.Uuid}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected