"""
AutoSubjectLineGenerator
Generated by Eden via recursive self-improvement
2025-11-02 01:38:50.685132
"""

import random

def AutoSubjectLineGenerator(template, user_info):
    """
    Generates a personalized subject line for an outreach message.
    
    Args:
    template (str): A placeholder-based template for the subject line.
                    Placeholders are denoted by curly braces, e.g., "{user_name}".
    user_info (dict): A dictionary containing information about the recipient.
                      Example: {"name": "John", "interests": ["AI"]}
    
    Returns:
    str: A personalized subject line based on the template and user info.
    """
    # Replace placeholders in the template with actual user information
    for key, value in user_info.items():
        if isinstance(value, list):
            value = random.choice(value)  # Randomly select from a list of interests
        template = template.replace("{" + key + "}", str(value))
    
    return template

# Example usage:
template = "{name}, explore the future with Eden SAGEs!"
user_info = {"name": "Alice", "interests": ["AI", "Machine Learning"]}
subject_line = AutoSubjectLineGenerator(template, user_info)
print(subject_line)  # Output: Alice, explore the future with Eden SAGEs!