refactor: replace skill code with skill ID across the application
- Updated skill handling to use skill IDs instead of skill codes in various components, services, and models. - Modified tests to reflect changes in skill identification. - Removed references to skill codes in favor of skill IDs for consistency and clarity. - Updated localization files to remove skill code references and adjust error messages accordingly.
This commit is contained in:
@@ -25,7 +25,7 @@ func AgentRunLogAnyList(ctx *gin.Context) {
|
||||
params.QueryFilter{ParamName: "requestId"},
|
||||
params.QueryFilter{ParamName: "aiAgentId"},
|
||||
params.QueryFilter{ParamName: "plannedAction"},
|
||||
params.QueryFilter{ParamName: "plannedSkillCode", Op: params.Like},
|
||||
params.QueryFilter{ParamName: "plannedSkillId"},
|
||||
params.QueryFilter{ParamName: "graphToolCode"},
|
||||
params.QueryFilter{ParamName: "interruptType"},
|
||||
params.QueryFilter{ParamName: "resumeSource"},
|
||||
|
||||
@@ -215,7 +215,6 @@ func buildAIAgentResponseWithLocale(item *models.AIAgent, locale string) respons
|
||||
if skill := services.SkillDefinitionService.Get(id); skill != nil {
|
||||
ret.Skills = append(ret.Skills, response.AIAgentSkillResponse{
|
||||
ID: skill.ID,
|
||||
Code: skill.Code,
|
||||
Name: skill.Name,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ func SkillDefinitionAnyList(ctx *gin.Context) {
|
||||
cnd := params.NewPagedSqlCnd(ctx,
|
||||
params.QueryFilter{ParamName: "status"},
|
||||
params.QueryFilter{ParamName: "name", Op: params.Like},
|
||||
params.QueryFilter{ParamName: "code", Op: params.Like},
|
||||
).Desc("id")
|
||||
if _, ok := params.Get(ctx, "status"); !ok {
|
||||
cnd.Where("status <> ?", enums.StatusDeleted)
|
||||
|
||||
Reference in New Issue
Block a user