MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / parseKind

Function parseKind

internal/desktop/entity_service.go:102–109  ·  view source on GitHub ↗
(kind string)

Source from the content-addressed store, hash-verified

100}
101
102func parseKind(kind string) (entities.Kind, error) {
103 switch entities.Kind(kind) {
104 case entities.KindPrompt, entities.KindSkill, entities.KindAgent, entities.KindPlugin:
105 return entities.Kind(kind), nil
106 default:
107 return "", NewError("ENTITY_KIND_INVALID", "unsupported entity kind", map[string]string{"kind": kind})
108 }
109}
110
111func entityDTO(entity entities.Entity) EntityDTO {
112 return EntityDTO{

Callers 2

UpdateMethod · 0.85
entityStoreFunction · 0.85

Calls 2

KindTypeAlias · 0.92
NewErrorFunction · 0.85

Tested by

no test coverage detected