Skip to content

seeder_generator_bot

django_spire.contrib.seeding.intelligence.bots.seeder_generator_bot

SeederGeneratorBot

Bases: Bot

llm_config = 'PYTHON_MODULE' class-attribute instance-attribute

llm_config_options = LlmConfigOptions(temperature=0.3, randomize_seed=True) class-attribute instance-attribute

llm_guidelines = generate_django_model_seeder_system_prompt() class-attribute instance-attribute

llm_role = 'You are an expert Python developer specializing in Django model seeders.' class-attribute instance-attribute

process

Source code in django_spire/contrib/seeding/intelligence/bots/seeder_generator_bot.py
def process(
    self,
    model_import: str,
    model_description: str
) -> SourceIntel:
    return self.llm.prompt_to_intel(
        prompt=generate_django_model_seeder_user_prompt(
            model_import,
            model_description,
        ),
        intel_class=SourceIntel
    )