"""基金策略分析 + 跨基金资源调度 + LP 报告生成。""" from app.services.llm_client import LLMClient async def analyze_fund_strategy(funds_data: str) -> dict: """基金策略分析 — 不同基金策略/期限/退出要求对比。""" llm = LLMClient() prompt = f"""请分析以下基金策略: {funds_data[:5000]} 以 JSON 格式返回: {{"strategy_comparison": [{{"fund": "基金名称", "strategy": "策略", "vintage": 2020, "exit_requirement": "退出要求"}}], "resource_allocation_suggestions": ["调度建议"], "lp_report_summary": "LP 报告摘要"}}""" result = await llm.chat(prompt, temperature=0.4) return result if isinstance(result, dict) else {}