MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / resolveAgentLocalSkillDir

Function resolveAgentLocalSkillDir

agent/app/service/agents_skills.go:244–253  ·  view source on GitHub ↗
(agentType string)

Source from the content-addressed store, hash-verified

242}
243
244func resolveAgentLocalSkillDir(agentType string) (string, error) {
245 switch agentType {
246 case constant.AppOpenclaw:
247 return openclawManagedSkillsDir, nil
248 case constant.AppHermesAgent:
249 return hermesManagedSkillsDir, nil
250 default:
251 return "", fmt.Errorf("%s does not support", agentType)
252 }
253}
254
255func resolveLocalSkillPackage(agentType, skillID string) (string, string, error) {
256 skillID = strings.TrimSpace(skillID)

Callers 1

installLocalSkillPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected