refactor(agent): remove query display from DatabaseQuery component and update tool result structure

- Removed the query display section from the DatabaseQuery component to streamline the UI.
- Updated the DatabaseQueryData interface to eliminate the query field, reflecting changes in tool result handling.
- Enhanced the DatabaseQuery tool execution to focus on returning structured results without exposing raw SQL queries.
- Added a new utility to strip <think> blocks from LLM outputs, improving content clarity and user experience.
This commit is contained in:
wizardchen
2026-03-20 13:29:11 +08:00
committed by lyingbug
parent 637376428e
commit e138e0c81a
12 changed files with 253 additions and 57 deletions
+1
View File
@@ -161,6 +161,7 @@ type AgentToolCallData struct {
ToolName string `json:"tool_name"`
Arguments map[string]any `json:"arguments,omitempty"`
Iteration int `json:"iteration"`
Hint string `json:"hint,omitempty"` // Human-readable tool hint, e.g. `web_search("query")`
}
// AgentToolResultData represents agent tool execution result data