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

Method GetAccountModels

agent/app/service/agents.go:1126–1132  ·  view source on GitHub ↗
(req dto.AgentAccountModelReq)

Source from the content-addressed store, hash-verified

1124}
1125
1126func (a AgentService) GetAccountModels(req dto.AgentAccountModelReq) ([]dto.AgentAccountModel, error) {
1127 account, err := agentAccountRepo.GetFirst(repo.WithByID(req.AccountID))
1128 if err != nil {
1129 return nil, err
1130 }
1131 return loadAgentAccountModels(account)
1132}
1133
1134func (a AgentService) CreateAccountModel(req dto.AgentAccountModelCreateReq) error {
1135 account, err := agentAccountRepo.GetFirst(repo.WithByID(req.AccountID))

Callers

nothing calls this directly

Calls 3

loadAgentAccountModelsFunction · 0.85
GetFirstMethod · 0.65
WithByIDMethod · 0.65

Tested by

no test coverage detected