feat: 完善食品订单班演示内容

详细说明:
- 修改启动序列为青莳轻食经营方案生成系统
- 更新Agent-1市场研究专家内容:
  * 数据查询改为轻食市场分析
  * 市场数据更新为1200亿元规模,18%增长率
  * 目标客群定义为25-40岁城市人群
  * 客单价设定为45-68元
- 更新Agent-2营养配方师内容:
  * 替换设计工具为营养数据库
  * 添加营养计算器初始化
  * 设计3款核心产品配方:鸡胸肉藜麦沙拉、牛油果能量碗、三文鱼蛋白卷
  * 包含详细营养成分表:热量、蛋白质、碳水、脂肪
- 技术验证:端口4174正常运行
- 演示流程更贴近食品行业实际应用场景

影响文件: src/pages/WorkflowPageV4.tsx
下一步: 继续完善其余5个Agent的演示内容
This commit is contained in:
Yep_Q
2025-09-28 10:42:06 +08:00
parent c3eb7125cc
commit ab20a4b231
30 changed files with 65896 additions and 117 deletions

View File

@@ -55,15 +55,15 @@ const WorkflowPageV4 = () => {
// 启动序列
const startupSequence = [
{ type: 'system', content: '>>> AI Exhibition Planning System v2.0.0' },
{ type: 'system', content: '>>> Copyright (c) 2024 DeepSeek AI. All rights reserved.' },
{ type: 'system', content: '>>> AI 青莳轻食经营方案生成系统 v1.0.0' },
{ type: 'system', content: '>>> Copyright (c) 2024 青莳轻食 AI Team. All rights reserved.' },
{ type: 'info', content: '' },
{ type: 'info', content: 'Checking system requirements...' },
{ type: 'progress', content: 'System check', target: 100 },
{ type: 'info', content: '' },
{ type: 'info', content: 'Loading configuration...' },
{ type: 'output', content: 'Config path: /etc/agents/config.yaml' },
{ type: 'output', content: 'Loading agents: 7 experts found' },
{ type: 'output', content: 'Loading agents: 7 food experts found' },
{ type: 'output', content: 'Workflow engine: n8n v1.109.2' },
{ type: 'success', content: '✓ Configuration loaded successfully' },
{ type: 'info', content: '' },
@@ -75,16 +75,16 @@ const WorkflowPageV4 = () => {
{ type: 'success', content: '✓ All dependencies installed' },
{ type: 'info', content: '' },
{ type: 'system', content: '=' .repeat(60) },
{ type: 'system', content: 'SYSTEM READY - Starting multi-agent workflow...' },
{ type: 'system', content: 'SYSTEM READY - Starting food business planning...' },
{ type: 'system', content: '=' .repeat(60) },
];
// Agent执行序列 - 更真实的输出
const agentSequence = [
{
agent: agents[0], // 信息检索
agent: agents[0], // 市场研究专家
outputs: [
{ type: 'system', content: '>>> [Agent-1] Information Retrieval Expert Activated' },
{ type: 'system', content: '>>> [Agent-1] Market Research Expert Activated' },
{ type: 'info', content: 'Model: DeepSeek-V2 Chat (Temperature: 0.7)' },
{ type: 'info', content: '' },
{ type: 'info', content: 'Installing agent dependencies...' },
@@ -100,11 +100,11 @@ const WorkflowPageV4 = () => {
{ type: 'info', content: '' },
{ type: 'info', content: 'Executing search queries...' },
{ type: 'output', content: '```sql' },
{ type: 'output', content: 'SELECT * FROM exhibitions' },
{ type: 'output', content: 'WHERE region = "长三角"' },
{ type: 'output', content: ' AND industry = "新能源汽车"' },
{ type: 'output', content: 'SELECT * FROM food_market' },
{ type: 'output', content: 'WHERE region = "一线城市"' },
{ type: 'output', content: ' AND category = "轻食健康"' },
{ type: 'output', content: ' AND year >= 2023' },
{ type: 'output', content: 'ORDER BY scale DESC;' },
{ type: 'output', content: 'ORDER BY market_size DESC;' },
{ type: 'output', content: '```' },
{ type: 'progress', content: 'Query execution', target: 100, stutters: [12, 45, 78, 92] },
{ type: 'success', content: '✓ Query completed: 2,847 rows in 342ms' },
@@ -112,83 +112,71 @@ const WorkflowPageV4 = () => {
{ type: 'info', content: 'Running data analysis...' },
{ type: 'progress', content: 'Data processing', target: 100, stutters: [15, 38, 65, 88] },
{ type: 'output', content: '' },
{ type: 'output', content: '=== Market Analysis Results ===' },
{ type: 'output', content: '• Market Size : ¥3.2 Trillion (↑32% YoY)' },
{ type: 'output', content: '• Key Players : 5,832 companies' },
{ type: 'output', content: '• Employment : 1.86M professionals' },
{ type: 'output', content: '• Exhibition Count : 126 events/year' },
{ type: 'output', content: '• Avg Scale : 32,000 sqm' },
{ type: 'output', content: '• Growth Rate : 28% CAGR' },
{ type: 'output', content: '=== 轻食市场分析结果 ===' },
{ type: 'output', content: '• 市场规模 : ¥1200亿元 (↑18% YoY)' },
{ type: 'output', content: '• 主要玩家 : 3,265家品牌' },
{ type: 'output', content: '• 目标客群 : 25-40岁城市人群' },
{ type: 'output', content: '• 平均客单价 : 45-68元' },
{ type: 'output', content: '• 店铺数量 : 15,000+家' },
{ type: 'output', content: '• 增长率 : 18% CAGR' },
{ type: 'info', content: '' },
{ type: 'info', content: 'Generating report files...' },
{ type: 'progress', content: 'market_analysis_2024.json', target: 100, stutters: [56, 89] },
{ type: 'file', content: '✓ Created: market_analysis_2024.json (15.3MB)' },
{ type: 'progress', content: 'competitor_data.csv', target: 100, stutters: [34] },
{ type: 'file', content: '✓ Created: competitor_data.csv (3.7MB)' },
{ type: 'progress', content: 'industry_trends.pdf', target: 100, stutters: [67, 91] },
{ type: 'file', content: '✓ Created: industry_trends.pdf (28.5MB)' },
{ type: 'progress', content: 'light_food_market_2024.json', target: 100, stutters: [56, 89] },
{ type: 'file', content: '✓ Created: light_food_market_2024.json (12.8MB)' },
{ type: 'progress', content: 'competitor_brands.csv', target: 100, stutters: [34] },
{ type: 'file', content: '✓ Created: competitor_brands.csv (4.2MB)' },
{ type: 'progress', content: 'customer_insights.pdf', target: 100, stutters: [67, 91] },
{ type: 'file', content: '✓ Created: customer_insights.pdf (18.9MB)' },
{ type: 'info', content: '' },
{ type: 'success', content: '✓ Agent-1 completed successfully' },
{ type: 'system', content: 'Execution time: 18.7s | Memory: 124MB | CPU: 23%' },
]
},
{
agent: agents[1], // 设计专家
agent: agents[1], // 营养配方师
outputs: [
{ type: 'system', content: '>>> [Agent-2] Design & Creative Expert Activated' },
{ type: 'system', content: '>>> [Agent-2] Nutrition Formulation Expert Activated' },
{ type: 'info', content: 'Model: Google Gemini Pro Vision (Temperature: 0.8)' },
{ type: 'info', content: '' },
{ type: 'info', content: 'Loading design libraries...' },
{ type: 'progress', content: 'three.js@0.157.0', target: 100, stutters: [45, 78] },
{ type: 'progress', content: '@adobe/react-spectrum', target: 100, stutters: [23, 67, 88] },
{ type: 'progress', content: 'stable-diffusion-xl', target: 100, stutters: [34, 56, 89] },
{ type: 'info', content: 'Loading nutrition databases...' },
{ type: 'progress', content: 'usda-nutrition-data@2.1.0', target: 100, stutters: [45, 78] },
{ type: 'progress', content: 'food-composition-api', target: 100, stutters: [23, 67, 88] },
{ type: 'progress', content: 'nutrient-calculator', target: 100, stutters: [34, 56, 89] },
{ type: 'info', content: '' },
{ type: 'info', content: 'Initializing AI image generator...' },
{ type: 'output', content: 'const imageGen = new StableDiffusion({' },
{ type: 'output', content: ' model: "SDXL 1.0",' },
{ type: 'output', content: ' steps: 50,' },
{ type: 'output', content: ' guidance: 7.5,' },
{ type: 'output', content: ' resolution: "1920x1080"' },
{ type: 'info', content: 'Initializing nutrition calculator...' },
{ type: 'output', content: 'const nutritionCalc = new NutrientAnalyzer({' },
{ type: 'output', content: ' database: "USDA-SR28",' },
{ type: 'output', content: ' targets: "weight_loss",' },
{ type: 'output', content: ' precision: "macro_micro",' },
{ type: 'output', content: ' allergies: ["gluten", "dairy"]' },
{ type: 'output', content: '});' },
{ type: 'info', content: '' },
{ type: 'info', content: '🎨 Generating exhibition hall visualization...' },
{ type: 'output', content: 'Prompt: "Modern auto expo hall, futuristic design, glass ceiling"' },
{ type: 'progress', content: 'Generating: Whisk_e8f83d1a37.jpg', target: 100, stutters: [23, 45, 67, 89, 95] },
{ type: 'image',
content: '📷 IMAGE PREVIEW: 展馆外观',
imageSrc: '/data/会展策划/image/Whisk_e8f83d1a37.jpg',
imageAlt: '展馆外观效果图'
},
{ type: 'file', content: '✓ Generated: Whisk_e8f83d1a37.jpg (2.4MB)' },
{ type: 'info', content: '🥗 Designing quinoa salad formulation...' },
{ type: 'output', content: 'Recipe: "鸡胸肉藜麦沙拉, 300大卡, 35g蛋白质"' },
{ type: 'progress', content: 'Calculating: quinoa_protein_salad.json', target: 100, stutters: [23, 45, 67, 89, 95] },
{ type: 'output', content: '📄 营养成分表: 鸡胸肉藜麦沙拉' },
{ type: 'output', content: '• 热量: 285大卡 | 蛋白质: 34.2g | 碳水: 28.5g | 脂肪: 8.1g' },
{ type: 'file', content: '✓ Generated: quinoa_protein_salad.json (156KB)' },
{ type: 'info', content: '' },
{ type: 'info', content: '🎨 Generating interior exhibition view...' },
{ type: 'output', content: 'Prompt: "Car exhibition interior, visitors, modern displays"' },
{ type: 'progress', content: 'Generating: 展会内部参观.jpg', target: 100, stutters: [34, 67, 88] },
{ type: 'image',
content: '📷 IMAGE PREVIEW: 展厅内部布局',
imageSrc: '/data/会展策划/image/展会内部参观.jpg',
imageAlt: '展厅内部参观实景'
},
{ type: 'file', content: '✓ Generated: 展会内部参观.jpg (3.1MB)' },
{ type: 'info', content: '🥗 Designing avocado energy bowl...' },
{ type: 'output', content: 'Recipe: "牛油果能量碗, 520大卡, 25g植物蛋白"' },
{ type: 'progress', content: 'Calculating: avocado_energy_bowl.json', target: 100, stutters: [34, 67, 88] },
{ type: 'output', content: '📄 营养成分表: 牛油果能量碗' },
{ type: 'output', content: '• 热量: 518大卡 | 蛋白质: 24.8g | 碳水: 42.3g | 脂肪: 26.7g' },
{ type: 'file', content: '✓ Generated: avocado_energy_bowl.json (189KB)' },
{ type: 'info', content: '' },
{ type: 'info', content: '🎨 Generating test drive area visualization...' },
{ type: 'output', content: 'Prompt: "EV test drive track, outdoor exhibition area"' },
{ type: 'progress', content: 'Generating: 试驾小景.jpg', target: 100, stutters: [45, 78] },
{ type: 'image',
content: '📷 IMAGE PREVIEW: 试驾体验区',
imageSrc: '/data/会展策划/image/2.试驾小景.jpg',
imageAlt: '试驾体验区实景'
},
{ type: 'file', content: '✓ Generated: 试驾小景.jpg (2.8MB)' },
{ type: 'info', content: '🥗 Designing salmon protein wrap...' },
{ type: 'output', content: 'Recipe: "三文鱼蛋白卷, 365大卡, 32g优质蛋白"' },
{ type: 'progress', content: 'Calculating: salmon_protein_wrap.json', target: 100, stutters: [45, 78] },
{ type: 'output', content: '📄 营养成分表: 三文鱼蛋白卷' },
{ type: 'output', content: '• 热量: 362大卡 | 蛋白质: 31.6g | 碳水: 25.4g | 脂肪: 15.2g' },
{ type: 'file', content: '✓ Generated: salmon_protein_wrap.json (167KB)' },
{ type: 'info', content: '' },
{ type: 'info', content: '🎨 Generating brand showcase images...' },
{ type: 'progress', content: 'Generating: 小米汽车.jpg', target: 100, stutters: [34, 67] },
{ type: 'image',
content: '📷 IMAGE PREVIEW: 小米汽车展台',
imageSrc: '/data/会展策划/image/3.小米汽车.jpg',
imageAlt: '小米汽车展示'
},
{ type: 'file', content: '✓ Generated: 小米汽车.jpg (1.9MB)' },
{ type: 'info', content: '🥗 Creating comprehensive menu analysis...' },
{ type: 'progress', content: 'Analyzing: complete_menu_nutrition.xlsx', target: 100, stutters: [34, 67] },
{ type: 'output', content: '📄 菜单分析报告: 32款产品营养数据' },
{ type: 'output', content: '• 平均热量: 385大卡 | 蛋白质: 28.5g | 低糖指数: 92%' },
{ type: 'file', content: '✓ Generated: complete_menu_nutrition.xlsx (2.3MB)' },
{ type: 'progress', content: 'Generating: 博览会.jpg', target: 100, stutters: [56, 89] },
{ type: 'image',
content: '📷 IMAGE PREVIEW: 博览会全景',