-- 添加深度研究应用到百宝箱
INSERT INTO aigcspace.toolbox_apps (
    app_key,
    name,
    description,
    icon,
    category,
    tags,
    is_new,
    version,
    status,
    sort_order,
    doc_url,
    api_endpoint
) VALUES (
    'qwen-deep-research',
    'Qwen深度研究',
    '基于通义千问的深度研究助手，能够自动规划研究步骤、执行多轮深入搜索、信息整合与分析，生成结构化研究报告。支持详细报告（约6000字）和摘要报告（约2000字）两种格式。',
    'BookOpen',
    '文本处理',
    '["深度研究", "智能搜索", "报告生成", "信息整合"]'::jsonb,
    true,
    'v1.0',
    'active',
    100,
    'https://help.aliyun.com/zh/model-studio/developer-reference/qwen-deep-research',
    '/api/v1/research'
) ON CONFLICT (app_key) DO UPDATE SET
    name = EXCLUDED.name,
    description = EXCLUDED.description,
    icon = EXCLUDED.icon,
    category = EXCLUDED.category,
    tags = EXCLUDED.tags,
    is_new = EXCLUDED.is_new,
    version = EXCLUDED.version,
    status = EXCLUDED.status,
    sort_order = EXCLUDED.sort_order,
    doc_url = EXCLUDED.doc_url,
    api_endpoint = EXCLUDED.api_endpoint,
    updated_at = CURRENT_TIMESTAMP;
