Implement skill debugging functionality and refactor skill execution flow

This commit is contained in:
mlogclub
2026-04-09 11:58:04 +08:00
parent eb9cd78646
commit 28d18ab6c0
12 changed files with 321 additions and 233 deletions
+13 -7
View File
@@ -21,13 +21,19 @@ type SkillDefinitionResponse struct {
}
type SkillDebugRunResponse struct {
SkillCode string `json:"skillCode"`
SkillName string `json:"skillName"`
ReplyText string `json:"replyText"`
RunLogID int64 `json:"runLogId"`
TraceData string `json:"traceData"`
ConversationID int64 `json:"conversationId"`
AIAgentID int64 `json:"aiAgentId"`
SkillCode string `json:"skillCode"`
SkillName string `json:"skillName"`
ReplyText string `json:"replyText"`
PlanReason string `json:"planReason"`
SkillRouteTrace string `json:"skillRouteTrace"`
ToolCodes []string `json:"toolCodes"`
InvokedToolCodes []string `json:"invokedToolCodes"`
CheckPointID string `json:"checkPointId"`
Interrupted bool `json:"interrupted"`
TraceData string `json:"traceData"`
ErrorMessage string `json:"errorMessage"`
ConversationID int64 `json:"conversationId"`
AIAgentID int64 `json:"aiAgentId"`
}
type AgentRunLogResponse struct {
-17
View File
@@ -1,17 +0,0 @@
package enums
type SkillExecutionMode string
const (
SkillExecutionModePromptOnly SkillExecutionMode = "prompt_only"
SkillExecutionModeMCPTool SkillExecutionMode = "mcp_tool"
)
var skillExecutionModeLabelMap = map[SkillExecutionMode]string{
SkillExecutionModePromptOnly: "Prompt直出",
SkillExecutionModeMCPTool: "MCP工具",
}
func GetSkillExecutionModeLabel(mode SkillExecutionMode) string {
return skillExecutionModeLabelMap[mode]
}