WeKnora/internal/handler
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
..
session feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
auth.go feat: 新增环境变量DISABLE_REGISTRATION控制用户注册开关 2025-12-22 15:01:09 +08:00
chunk.go feat(api): enhance organization shared knowledge base and agent functionalities 2026-02-09 11:40:25 +08:00
custom_agent.go feat(agent): enhance agent and skill management features 2026-02-09 11:40:25 +08:00
evaluation.go feat: 新增API Key认证支持,优化Swagger文档安全配置 2025-12-22 15:01:09 +08:00
faq.go feat(api): enhance organization shared knowledge base and agent functionalities 2026-02-09 11:40:25 +08:00
initialization.go fix(i18n): enable multilingual support for Knowledge Graph settings 2026-03-09 10:35:41 +08:00
knowledge.go feat: enhance document loading and state management in doc-content component 2026-03-02 21:21:49 +08:00
knowledgebase.go feat: add pinning functionality for knowledge bases 2026-03-05 18:14:14 +08:00
mcp_service.go feat: add built-in MCP service support 2026-03-05 21:57:01 +08:00
message.go feat: 新增API Key认证支持,优化Swagger文档安全配置 2025-12-22 15:01:09 +08:00
model.go feat: 新增对多家平台的模型适配 2025-12-29 12:18:42 +08:00
organization.go feat: enhance document loading and state management in doc-content component 2026-03-02 21:21:49 +08:00
skill_handler.go feat: update sandbox service configuration in Docker Compose files 2026-02-04 21:34:07 +08:00
system.go feat(storage): 集成S3存储适配器 2026-03-09 10:39:46 +08:00
tag.go feat: enhance document loading and state management in doc-content component 2026-03-02 21:21:49 +08:00
tenant.go feat: implement tenant access authorization in TenantHandler 2026-03-02 21:21:49 +08:00
web_search.go refactor: web search provider registry pattern 2026-01-20 18:19:44 +08:00