Skip to content

prompts

django_spire.metric.domain.statistic.intelligence.prompts

statistic_instruction_prompt

Source code in django_spire/metric/domain/statistic/intelligence/prompts.py
def statistic_instruction_prompt() -> Prompt:
    return (
        Prompt()
        .title('Statistic Operations')
        .line_break()
        .heading('Purpose')
        .text('This prompt provides instructions for Statistic operations.')
        .line_break()
        .heading('Instructions')
        .ordered_list(['Instruction 1', 'Instruction 2', 'Instruction 3'])
        .line_break()
    )

statistic_user_input_prompt

Source code in django_spire/metric/domain/statistic/intelligence/prompts.py
def statistic_user_input_prompt(user_input: str) -> Prompt:
    return (
        Prompt()
        .heading('Statistic Request')
        .text('The user wants to perform the following operation:')
        .text('')
        .text(user_input)
        .text('')
    )