feat: harden orchestrator execution runtime
This commit is contained in:
@@ -119,6 +119,20 @@ test('classifyWithRules routes page data collection to page-data-collect', () =>
|
||||
assert.equal(result.suggestedSkill, 'page-data-collect');
|
||||
});
|
||||
|
||||
test('classifyWithRules routes storefront ordering with product admin to page-data-collect', () => {
|
||||
const text = '我要做一个页面,里面可以下单,后台可以上架产品';
|
||||
const result = classifyWithRules({
|
||||
text,
|
||||
userMessage: {
|
||||
role: 'user',
|
||||
content: [{ type: 'text', text }],
|
||||
metadata: { displayText: text },
|
||||
},
|
||||
});
|
||||
assert.equal(result.route, CHAT_INTENT_ROUTE.AGENT);
|
||||
assert.equal(result.suggestedSkill, 'page-data-collect');
|
||||
});
|
||||
|
||||
test('classifyWithRules routes ordinary household ledger language to page-data-collect', () => {
|
||||
const text = '帮我做一个家庭记账页面,我每天可以记录日期、收入、支出、分类和备注,日期默认当天。再做一个管理页面,可以查看所有记录和收支汇总。';
|
||||
const result = classifyWithRules({
|
||||
|
||||
Reference in New Issue
Block a user