refactor: Update function signatures across multiple files to improve readability by adding context parameters and enhancing code structure

This commit is contained in:
wizardchen
2025-11-28 16:17:52 +08:00
parent 135e33eca4
commit eb8bfddfd1
89 changed files with 1453 additions and 522 deletions
+8 -2
View File
@@ -196,7 +196,8 @@ func (t *SequentialThinkingTool) Execute(ctx context.Context, args map[string]in
branchKeys = append(branchKeys, k)
}
incomplete := thoughtData.NextThoughtNeeded || thoughtData.NeedsMoreThoughts || thoughtData.ThoughtNumber < thoughtData.TotalThoughts
incomplete := thoughtData.NextThoughtNeeded || thoughtData.NeedsMoreThoughts ||
thoughtData.ThoughtNumber < thoughtData.TotalThoughts
responseData := map[string]interface{}{
"thought_number": thoughtData.ThoughtNumber,
@@ -209,7 +210,12 @@ func (t *SequentialThinkingTool) Execute(ctx context.Context, args map[string]in
"incomplete_steps": incomplete,
}
logger.Infof(ctx, "[Tool][SequentialThinking] Execute completed - Thought %d/%d", thoughtData.ThoughtNumber, thoughtData.TotalThoughts)
logger.Infof(
ctx,
"[Tool][SequentialThinking] Execute completed - Thought %d/%d",
thoughtData.ThoughtNumber,
thoughtData.TotalThoughts,
)
outputMsg := "Thought process recorded"
if incomplete {