Refactor skill execution and definition handling to support content-based execution and enhance skill definition structure

This commit is contained in:
mlogclub
2026-04-09 11:42:40 +08:00
parent eeb579d944
commit eb9cd78646
7 changed files with 136 additions and 287 deletions
+8 -9
View File
@@ -1,7 +1,5 @@
package request
import "cs-agent/internal/pkg/enums"
type SkillDefinitionListRequest struct {
Name string `json:"name"`
Code string `json:"code"`
@@ -9,13 +7,14 @@ type SkillDefinitionListRequest struct {
}
type CreateSkillDefinitionRequest struct {
Code string `json:"code"`
Name string `json:"name"`
Description string `json:"description"`
Prompt string `json:"prompt"`
ExecutionMode enums.SkillExecutionMode `json:"executionMode"`
ExecutionConfig string `json:"executionConfig"`
Remark string `json:"remark"`
Code string `json:"code"`
Name string `json:"name"`
Description string `json:"description"`
Content string `json:"content"`
Examples []string `json:"examples"`
AllowedToolCodes []string `json:"allowedToolCodes"`
Priority int `json:"priority"`
Remark string `json:"remark"`
}
type UpdateSkillDefinitionRequest struct {