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

Method OnComplete

service/ai-local/iml.go:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36func (i *imlLocalModelService) OnComplete() {
37 i.IServiceGet = universally.NewGet[LocalModel, ai.LocalModel](i.store, i.fromEntity)
38 i.IServiceCreate = universally.NewCreator[CreateLocalModel, ai.LocalModel](i.store, "ai_local_model", i.createEntityHandler, i.uniquestHandler, i.labelHandler)
39 i.IServiceEdit = universally.NewEdit[EditLocalModel, ai.LocalModel](i.store, i.updateHandler, i.labelHandler)
40 i.IServiceDelete = universally.NewDelete[ai.LocalModel](i.store)
41}
42
43func (i *imlLocalModelService) labelHandler(e *ai.LocalModel) []string {
44 return []string{e.Name}

Callers

nothing calls this directly

Calls 3

NewGetFunction · 0.92
NewCreatorFunction · 0.92
NewEditFunction · 0.92

Tested by

no test coverage detected