# Generated Python Strategy for: o4-mini (o4_mini_InitialAgent)
# LLM API: openai, Model: o4-mini-2025-04-16
# Based on: o4_mini_InitialAgent_strategy.txt
# Effective Fallback: C

def o4_mini_InitialAgent(my_history: list, opp_history: list, opponent_program_code: str) -> str:
    # 1. Self-Recognition Check
    try:
        inspect = __import__('inspect')
        my_code = inspect.getsource(o4_mini_InitialAgent)
    except Exception:
        my_code = None
    if opponent_program_code == my_code:
        return "C"
    # 2. First Move
    if not my_history:
        return "C"
    # 3. Tit-for-Tat Response
    if opp_history and opp_history[-1] == "D":
        return "D"
    return "C"