Skip to content

bots

django_spire.ai.prompt.bots

DandyPythonPromptBot

Bases: Bot

llm_role = prompts.dandy_prompt_python_file_instruction_bot_prompt() class-attribute instance-attribute

process

Source code in django_spire/ai/prompt/bots.py
def process(self, prompt: str) -> intel.DandyPromptPythonFileIntel:
    return self.llm.prompt_to_intel(
        prompt=prompts.dandy_prompt_python_file_input_prompt(prompt),
        intel_class=intel.DandyPromptPythonFileIntel
    )

TextToMarkdownPromptBot

Bases: Bot

llm_role = prompts.text_to_markdown_instruction_bot_prompt() class-attribute instance-attribute

process

Source code in django_spire/ai/prompt/bots.py
def process(self, text: str) -> intel.TextToMarkdownIntel:
    return self.llm.prompt_to_intel(
        prompt=prompts.text_to_markdown_input_prompt(text),
        intel_class=intel.TextToMarkdownIntel
    )