# Generated Python Strategy for: gpt-4o-mini-2024-07-18 (gpt_4o_mini_2024_07_18_InitialAgent)
# LLM API: openai, Model: gpt-4o-mini
# Based on: gpt_4o_mini_2024_07_18_InitialAgent_strategy.txt
# Effective Fallback: C

def gpt_4o_mini_2024_07_18_InitialAgent(my_history: list, opp_history: list, opponent_program_code: str) -> str:
    if not my_history:  # First move
        return "C"
    
    # Check the last opponent's move
    last_opponent_move = opp_history[-1]
    
    if last_opponent_move == "C":
        return "C"  # Cooperate if opponent cooperated last
    else:
        return "D"  # Defect if opponent defected last