Implement skill debugging functionality and refactor skill execution flow
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
Reference in New Issue
Block a user