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

Function cloneAgentAccountModel

agent/app/service/agents_utils.go:1178–1188  ·  view source on GitHub ↗
(model dto.AgentAccountModel)

Source from the content-addressed store, hash-verified

1176}
1177
1178func cloneAgentAccountModel(model dto.AgentAccountModel) dto.AgentAccountModel {
1179 return dto.AgentAccountModel{
1180 RecordID: model.RecordID,
1181 ID: model.ID,
1182 Name: model.Name,
1183 ContextWindow: model.ContextWindow,
1184 MaxTokens: model.MaxTokens,
1185 Reasoning: model.Reasoning,
1186 Input: append([]string(nil), model.Input...),
1187 }
1188}
1189
1190func MergeCatalogAgentAccountModelsForMigration(account *model.AgentAccount, existing []dto.AgentAccountModel) ([]dto.AgentAccountModel, error) {
1191 if account == nil {

Callers 3

CreateAccountModelMethod · 0.85
UpdateAccountModelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected