WeKnora/internal/handler
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
..
session refactor: consolidate QA request handling and improve session service interface 2026-03-16 02:26:47 +08:00
auth.go fix: improve auth error messages and unify username validation length 2026-03-15 23:59:50 +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
im.go feat: add WeCom and Feishu IM bot integration 2026-03-16 02:26:17 +08:00
initialization.go refactor: update LLM configuration to model ID in API and frontend 2026-03-16 02:26:47 +08:00
knowledge.go feat: implement knowledge move functionality 2026-03-09 13:23:16 +08:00
knowledgebase.go feat: enhance knowledge update functionality 2026-03-16 02:26:47 +08:00
mcp_service.go feat: add built-in MCP service support 2026-03-05 21:57:01 +08:00
message.go feat: implement chat history and retrieval settings 2026-03-09 11:46:56 +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 chat history and retrieval settings 2026-03-09 11:46:56 +08:00
web_search.go refactor: web search provider registry pattern 2026-01-20 18:19:44 +08:00