def market_analysis(llm_agent, market, company_data, global_trends):
prompt = f"""
Analyze the potential for {company_data[\'name\']} to enter the {market} market.
Consider the following:
1. Current market size and growth projections
2. Key competitors and their market share
3. Regulatory environment
4. Alignment with {company_data[\'name\']}\'s strengths and weaknesses
5. Potential synergies with existing products/services
6. Impact of global trends: {global_trends}
Provide a detailed analysis with specific recommendations.
"""
analysis = llm_agent.generate(prompt)
recommendations = llm_agent.extract_key_points(analysis)
return {
"detailed_analysis": analysis,
"key_recommendations": recommendations
}
# Usage
result = market_analysis(advanced_llm_agent, "Southeast Asian e-commerce", company_data, ["rising middle class", "increasing smartphone penetration"])