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:
@@ -232,6 +232,9 @@ func (e *AgentEngine) streamThinkingToEventBus(
|
||||
logger.Debugf(ctx, "[Agent][Thinking] Iteration-%d completed: content=%d chars, tool_calls=%d",
|
||||
iteration+1, len(fullContent), len(toolCalls))
|
||||
|
||||
// Strip <think>…</think> blocks that some models (DeepSeek, Qwen, etc.) embed in content.
|
||||
fullContent = agenttools.StripThinkBlocks(fullContent)
|
||||
|
||||
// Build response
|
||||
return &types.ChatResponse{
|
||||
Content: fullContent,
|
||||
|
||||
Reference in New Issue
Block a user