refactor: let DSH infer intent from backend capability schemas
This commit is contained in:
1 parent
ef40f339cd
commit
be382a117d
6 files changed
+43
-6
No files matched your search
@@ -74,7 +74,10 @@ try {
|
||||
await c.call('Input.dispatchKeyEvent',{type:'keyDown',key:'Escape',code:'Escape'});
|
||||
await c.call('Input.dispatchKeyEvent',{type:'keyUp',key:'Escape',code:'Escape'});
|
||||
await c.click(`document.querySelector('[contenteditable="true"]')`);
|
||||
await c.call('Input.insertText',{text:liveModel ? '请分析当前任务:先调用 dx_task_snapshot 获取真实任务快照,然后用中文告诉我任务名称、当前状态和允许的下一步。不要修改工程。' : '请分析当前任务的异常,并说明允许的处理方式。'});
|
||||
const prompt=liveModel ? '请分析当前任务的状态和异常,告诉我任务名称、现在进展到哪一步以及接下来可以做什么。不要修改工程。' : '请分析当前任务的异常,并说明允许的处理方式。';
|
||||
report.prompt=prompt;
|
||||
report.explicitToolNamesInPrompt=false;
|
||||
await c.call('Input.insertText',{text:prompt});
|
||||
await wait(`document.querySelector('[contenteditable="true"]').textContent.includes('请分析当前任务')`);
|
||||
report.checks.push('typed into official composer with native keyboard input');
|
||||
report.liveModelReplyTested=false;
|
||||
|
||||
Reference in new issue
Block a user