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:
@@ -198,7 +198,7 @@ func (e *AgentEngine) Execute(
|
||||
if len(imageURLs) > 0 {
|
||||
imgs = imageURLs[0]
|
||||
}
|
||||
messages := e.buildMessagesWithLLMContext(systemPrompt, query, llmContext, imgs)
|
||||
messages := e.buildMessagesWithLLMContext(systemPrompt, query, sessionID, llmContext, imgs)
|
||||
|
||||
// Get tool definitions for function calling
|
||||
tools := e.buildToolsForLLM()
|
||||
|
||||
Reference in New Issue
Block a user