install_official_extensions

Install the official Smarter Extensions from the registry.

class smarter.apps.llmtool.management.commands.install_official_extensions.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: SmarterCommand

Django manage.py install_official_extensions command.

manage.py initialize_platform runs it before it loads the example manifests, whose LLMClients list the official extensions: an LLMClient that needs an extension that is not installed is skipped.

configure(installer, extension)[source]

Configure each unset secret setting whose name is the name of one of the platform admin’s Secrets.

initialize_providers creates the platform’s Secrets, e.g. google_maps_api_key, which the weather extension’s setting of the same name then uses.

Return type:

None

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

Install, or update, and enable the official extensions.

help = 'Install, or update, the official Smarter Extensions from the registry, and enable those whose required settings can be configured. Does nothing while the registry is disabled. Exits with code 1 if an official extension could not be installed and enabled, e.g. because it is not compatible with this platform.'
install()[source]

Install, or update, and enable each official extension, as the Smarter admin.

Raises:

SmarterExtensionInstallError – If any official extension was not installed and enabled, after every one was attempted: the example LLMClients that use a missing official extension are skipped, so a deployment without one is broken, and the init job must fail.

Return type:

None