Feature/model - #34
Merged
Merged
Conversation
- 新增基于 rune 数的安全截断函数 - 增加英文词汇统计支持 - 提供预算反推 rune 上限工具函数
- ChatMessageRepo 接口新增关键词与历史消息检索方法 - chat_message_repository 支持按会话和关键词联合查询 - 为上下文管理增强提供底层历史消息查询支撑
- EnhancedContext 新增 UserCtx 字段承载用户信息 - BuildContextConfig 新增检索和记忆预算字段 - ContextServiceInterface 统一接口参数 - context_service 适配新字段,增强上下文构建流程
- chat_service 新增 loadUserContext 加载用户基础信息 - initContext 注入用户上下文到 EnhancedContext - chat_mode 在快速检索前置执行轻量意图分析 - 问候/身份/元问题等意图跳过 RAG,降低不必要的检索开销 - buildMessages 调用补充 UserCtx 参数
- types.go 新增必要的 Agent 请求/响应字段 - execute.go 优化工具调用与推理过程事件输出 - 增强 Agent 执行结果事件结构,支撑可视化与可观测性
- 提供 PromptMode 区分快速检索与深度思考模式 - 统一承载用户上下文、摘要、记忆、知识库注入逻辑 - 避免 chat_service_prompt 与 agent 端各自拼装 Prompt 导致行为不一致
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.