feat(h5): inject direct-chat history on agent escalation and defer ambiguous routing.
Phase B appends snapshot context when leaving h5direct sessions so Goose no longer starts blind. Phase C lets the 0.72 fallback return null on gated chat text so the existing LLM router can run, flags default off. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -138,7 +138,7 @@ function buildMemorySystemBlock({ memories, routingMemoryContent } = {}) {
|
||||
function buildModelMessages({ previousMessages, userMessage, memories, routingMemoryContent }) {
|
||||
const system = [
|
||||
'你是 TKMind H5 聊天助手。',
|
||||
'优先直接回答用户问题;不要调用工具;涉及需要执行代码、改文件、生成页面或操作外部系统的任务时,简要说明已交由后台任务处理或请用户确认具体任务。',
|
||||
'优先直接回答用户问题;不要调用工具。涉及需要执行代码、改文件、生成页面或操作外部系统的任务时,说明当前只能文字讨论,并提示用户开启「深度推理」或用更明确的任务描述。',
|
||||
buildMemorySystemBlock({ memories, routingMemoryContent }),
|
||||
].filter(Boolean).join('\n\n');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user