llm_rng_project/llm_rng/prompt_generator.py
2025-01-13 15:07:30 +01:00

15 lines
461 B
Python

import random
class PromptGenerator:
def __init__(self):
self.prompts = [
"What is the most unpredictable string you can generate?",
"Generate a random assortment of words unrelated to each other.",
"Provide a single, creative sentence with no context.",
]
def get_random_prompt(self) -> str:
""" Get a random prompt from the predefined list. """
return random.choice(self.prompts)