WeKnora/internal/handler/session
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
..
agent_stream_handler.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
handler.go feat: add deleteAllSessions functionality and update batch delete logic 2026-03-02 21:21:49 +08:00
helpers.go feat: enhance document loading and state management in doc-content component 2026-03-02 21:21:49 +08:00
qa.go feat: add fallback response handling and UI indicators 2026-03-05 18:14:14 +08:00
stream.go feat: 新增API Key认证支持,优化Swagger文档安全配置 2025-12-22 15:01:09 +08:00
title.go feat: 支持知识库选择模式和标题生成模型配置 2025-12-29 14:35:13 +08:00
types.go feat: implement preview of user level memory graph 2026-02-25 14:29:54 +08:00