manage.py get_llmclients
This module is used to generate a JSON list of all llmclients for an account, printed to the console.
- class smarter.apps.llmclient.management.commands.get_llmclients.Command(*args, **kwargs)[source]
Bases:
SmarterCommandGenerate and print a JSON list of all llmclients for a specified Smarter account.
This management command retrieves all llmclient instances associated with a given account, identified either by account number or company name. It outputs the hostnames of each llmclient to the console in JSON format, allowing administrators to quickly view all deployed llmclients for an account.
- Usage:
Specify the account using
--account_numberor--company_name.
- Command Workflow:
Retrieve the account using the provided identifier.
Query all llmclients linked to the account.
Print the hostname of each llmclient to the console.
Report completion status.
This command is useful for auditing, monitoring, or exporting llmclient deployment information for a particular account.