WeKnora/internal/agent/tools
wizardchen a4b255a456 feat: implement final_answer tool and enhance agent duration tracking
- Introduced the final_answer tool to ensure agents submit their complete responses as the last action, improving response accuracy and consistency.
- Updated the agent engine to log detailed information about tool calls and responses, including the total duration of agent execution.
- Enhanced the chat message model to include agent_duration_ms, tracking the total execution time from query start to answer delivery.
- Implemented JSON field extraction for streaming responses, allowing for more efficient handling of tool call outputs.

These changes significantly improve the agent's response handling and ensure that final answers are consistently delivered, enhancing overall user experience.
2026-03-09 11:46:56 +08:00
..
data_analysis.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
data_schema.go feat: add organization management features 2026-02-09 11:40:25 +08:00
database_query.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
definitions.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
final_answer.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
get_document_info.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
grep_chunks.go perf: Use swap deletion 2026-02-09 14:13:29 +08:00
knowledge_search.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
list_knowledge_chunks.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
mcp_tool.go feat: enforce maximum length for tool names in MCPTool 2026-03-05 18:14:14 +08:00
query_knowledge_graph.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
registry.go feat: enhance MCP tool name and description handling for security 2026-02-06 19:55:29 +08:00
sequentialthinking.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
skill_execute.go feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
skill_read.go feat: support agent skills 2026-02-04 20:08:49 +08:00
todo_write.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
tool.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
web_fetch.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
web_search.go feat: Add DataSchema tool for retrieving schema information from CSV and Excel files 2025-12-29 20:03:51 +08:00