"""扩展机会识别。""" from app.services.llm_client import LLMClient async def identify_expansion_opportunities(company_data: str) -> list[dict]: """识别新市场/新产品/新客户群推荐。""" llm = LLMClient() prompt = f"""请分析以下企业数据,识别扩展机会: {company_data[:5000]} 以 JSON 数组格式返回: [{{"type": "new_market/new_product/new_customer", "title": "机会标题", "description": "描述", "estimated_value": "预估价值", "feasibility": 0.8}}]""" result = await llm.chat(prompt, temperature=0.5) return result if isinstance(result, list) else []