create_stackademy

Command to create the Stackademy AI resources.

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

Bases: SmarterCommand

Django manage.py create_stackademy command.

This command is used to create the Stackademy AI resources used for training and testing. It creates the following:

Sql-based llm_client

  • Secret for SqlConnection

  • SqlConnection

  • Stackademy SqlPlugin

  • LLMClient using the Stackademy SqlPlugin

Api-based llm_client

  • Secret for ApiConnection

  • ApiConnection

  • Stackademy ApiPlugin

  • LLMClient using the Stackademy ApiPlugin

add_arguments(parser)[source]

Add arguments to the command.

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

Create the Stackademy ApiPlugin.