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

Method loadOpenclawAgentAndInstall

agent/app/service/agents.go:1470–1479  ·  view source on GitHub ↗
(agentID uint)

Source from the content-addressed store, hash-verified

1468}
1469
1470func (a AgentService) loadOpenclawAgentAndInstall(agentID uint) (*model.Agent, *model.AppInstall, error) {
1471 agent, install, err := a.loadAgentAndInstall(agentID)
1472 if err != nil {
1473 return nil, nil, err
1474 }
1475 if agent.AgentType != constant.AppOpenclaw {
1476 return nil, nil, fmt.Errorf("%s does not support", agent.AgentType)
1477 }
1478 return agent, install, nil
1479}
1480
1481func (a AgentService) loadAgentConfig(agentID uint) (*model.Agent, *model.AppInstall, map[string]interface{}, error) {
1482 agent, install, err := a.loadAgentAndInstall(agentID)

Callers 4

GetSecurityConfigMethod · 0.95
UpdateSecurityConfigMethod · 0.95
UpdateSkillMethod · 0.95

Calls 1

loadAgentAndInstallMethod · 0.95

Tested by

no test coverage detected