def METHOD_NAME(history: List[dict]) -> str:
    processed_history = ""
    for message in history:
        if message["role"] == "system":
            processed_history += "system: " + message["content"] + "\n"
        if message["role"] == "assistant":
            processed_history += "assistant: " + message["content"] + "\n"
        if message["role"] == "user":
            processed_history += "user: " + message["content"] + "\n"
    return processed_history