边栏缩略图,小助手添加工具配置,添加自动测试大类

This commit is contained in:
Xin Wang
2026-02-04 16:35:44 +08:00
parent 75914cf2e6
commit 47207dab19
6 changed files with 900 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
import { Assistant, CallLog, KnowledgeBase, Voice, Workflow } from '../types';
import { Assistant, CallLog, KnowledgeBase, Voice, Workflow, AutoTestAssistant, TestType, TestMethod } from '../types';
export const mockAssistants: Assistant[] = [
{
@@ -129,6 +129,29 @@ export const mockVoices: Voice[] = [
{ id: 'v5', name: 'Doubao', vendor: 'Volcano', gender: 'Female', language: 'zh', description: 'Cute and young.' },
];
export const mockAutoTestAssistants: AutoTestAssistant[] = [
{
id: 'at1',
name: '退款流程压力测试',
type: TestType.FIXED,
method: TestMethod.TEXT,
targetAssistantId: '1',
fixedWorkflowSteps: ['你好,我要退款', '订单号是123456', '谢谢'],
intelligentPrompt: '',
createdAt: '2024-03-10 09:00'
},
{
id: 'at2',
name: '愤怒的客户模拟',
type: TestType.INTELLIGENT,
method: TestMethod.AUDIO,
targetAssistantId: '1',
fixedWorkflowSteps: [],
intelligentPrompt: '你是一个非常愤怒的客户,因为订单延迟了一周。你需要表达你的不满,并要求立即解决。你的语气必须很冲,不接受简单的道歉。',
createdAt: '2024-03-11 14:20'
}
];
export interface DashboardStats {
totalCalls: number;
answerRate: number;