feat(ai-analysis): 添加语义层和分析计划处理器
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { parseSemanticIntent } from './analysis-semantic-layer';
|
||||
|
||||
describe('analysis semantic layer', () => {
|
||||
it('maps busy wording to workload with high confidence', () => {
|
||||
expect(parseSemanticIntent('最近哪个部门最忙')).toMatchObject({
|
||||
concept: 'workload',
|
||||
semanticConfidence: 'high',
|
||||
metricId: 'department_workload',
|
||||
analysisType: 'ranking',
|
||||
});
|
||||
});
|
||||
|
||||
it('maps pressure wording to workload pressure with medium confidence', () => {
|
||||
expect(parseSemanticIntent('谁压力最大')).toMatchObject({
|
||||
concept: 'work_pressure',
|
||||
semanticConfidence: 'medium',
|
||||
metricId: 'member_pending_work',
|
||||
analysisType: 'ranking',
|
||||
});
|
||||
});
|
||||
|
||||
it('keeps project risk as current-state release risk', () => {
|
||||
expect(parseSemanticIntent('这个项目风险怎么样')).toMatchObject({
|
||||
concept: 'release_risk',
|
||||
metricId: 'version_risk_score',
|
||||
timePolicy: 'current_state',
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user