refactor: merge ActionSummary and Thought fields to eliminate duplication

- Remove redundant ActionSummary field from PlanningResult struct
- Update parsers to use unified Thought field instead of duplicate fields
- Modify chat interface to display Thought instead of ActionSummary
- Update planner logging to use thought instead of summary
- Adjust prompt templates to use thought field consistently
- Switch test LLM service from UI-TARS to DoubaoVL
- Add default parameter handling for sleep tool
This commit is contained in:
lilong.129
2025-06-05 14:19:09 +08:00
parent 0864f74021
commit 0add3231ff
8 changed files with 24 additions and 26 deletions

View File

@@ -53,7 +53,7 @@ func (p *JSONContentParser) Parse(content string, size types.Size) (*PlanningRes
// Define a temporary struct to parse the expected JSON format
var jsonResponse struct {
Actions []Action `json:"actions"`
Summary string `json:"summary"`
Thought string `json:"thought"`
Error string `json:"error"`
}
@@ -95,9 +95,8 @@ func (p *JSONContentParser) Parse(content string, size types.Size) (*PlanningRes
toolCalls := convertActionsToToolCalls(normalizedActions, p.actionMapping)
return &PlanningResult{
ToolCalls: toolCalls,
ActionSummary: jsonResponse.Summary,
Thought: jsonResponse.Summary,
Content: content,
ToolCalls: toolCalls,
Thought: jsonResponse.Thought,
Content: content,
}, nil
}