"""采用生命周期鸿沟诊断。""" from app.services.llm_client import LLMClient async def diagnose_chasm(company_data: str) -> dict: """AI 诊断早期采用者→早期大众鸿沟。""" llm = LLMClient() prompt = f"""请对以下企业进行采用生命周期鸿沟诊断: {company_data[:5000]} 以 JSON 格式返回: {{"current_stage": "早期采用者", "chasm_detected": true, "gap_analysis": "鸿沟分析", "crossing_strategy": "跨越策略", "risk_level": "high/medium/low"}}""" result = await llm.chat(prompt, temperature=0.4) return result if isinstance(result, dict) else {"chasm_detected": False}