WeKnora/internal/handler/session
wizardchen 2984b21731 refactor: consolidate QA request handling and improve session service interface
- Introduced a new `QARequest` type to streamline parameters for KnowledgeQA and AgentQA service calls, replacing multiple parameters with a single structured request.
- Updated the `KnowledgeQA` and `AgentQA` methods in the session service interface to accept the new `QARequest` type, enhancing clarity and maintainability.
- Refactored the request parsing logic to utilize the new `buildQARequest` method, improving code organization and reducing redundancy.
- Implemented a new `resolveAgent` method to simplify custom agent resolution logic, enhancing readability and maintainability.

These changes improve the overall structure and usability of the QA request handling, facilitating easier updates and better code organization.
2026-03-16 02:26:47 +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 clear session messages functionality 2026-03-16 02:26:47 +08:00
helpers.go feat: enhance multimodal image processing and session management 2026-03-16 02:26:47 +08:00
image_upload.go feat: implement image upload and multimodal support 2026-03-16 02:26:47 +08:00
qa.go refactor: consolidate QA request handling and improve session service interface 2026-03-16 02:26:47 +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 image upload and multimodal support 2026-03-16 02:26:47 +08:00