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
+1 -1
View File
@@ -77,7 +77,7 @@ func Execute(ctx context.Context, runtimeCtx RuntimeContext) (*ExecutionResult,
}
log := BuildRunLog(runtimeCtx, plan, trace, err)
if strings.TrimSpace(replyText) != "" && strings.TrimSpace(log.MatchReason) == "" {
log.MatchReason = string(plan.Skill.ExecutionMode)
log.MatchReason = "content"
}
if writeErr := WriteRunLog(log); writeErr != nil && err == nil {
err = writeErr