#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1272
Task: , given the initial prompt and the specific instructions, the assistant is able to generate a response that meets all the requirements. The response starts with "Write a Python function that" and is t
Generated: 2026-02-13T02:32:10.580419
"""

import re

def count_unique_patterns(messages):
    patterns = set()
    for message in messages[-3:]:
        match = re.search(r"sequence of numbers: ([\d, ]+)", message)
        if match:
            pattern = tuple(map(int, re.findall(r'\d+', match.group(1))))
            patterns.add(pattern)
    return len(patterns)

if __name__ == '__main__':
    messages = [
        "The pattern is in the sequence of numbers: 2, 4, 6, 8",
        "The pattern is in the sequence of numbers: 3, 6, 9, 12",
        "The pattern is in the sequence of numbers: 2, 4, 6, 8",
        "The pattern is in the sequence of numbers: 5, 10, 15, 20",
        "The pattern is in the sequence of numbers: 2, 4, 6, 8"
    ]
    result = count_unique_patterns(messages)
    print(result)