seed_chat_history

This module is used to generate seed records for the prompt history models.

class smarter.apps.prompt.management.commands.seed_chat_history.Command(*args, **kwargs)[source]

Bases: SmarterCommand

Django manage.py seed_chat_history.py command.

This command is used to seed the prompt history and audit tables. This is only used for local development and testing purposes. This command secondarily is a run-time verification of the Prompt, LLMClient, Plugin and function calling sub systems.

handle(*args, **options)[source]

Handle the command.

This command is typically invoked as part of bootstrapping the local development environment. We need to be mindful of we are in the bootstrapping sequence. The smarter system account, admin user and profile are SUPPOSED to exist at this point, as well as the built-in example llm_client and plugins.