Skip to content

Interface ZIF_LLM_AUTH

AI Generated documentation.

Overview

The zif_llm_auth interface defines authorization check methods for various operations related to Large Language Model (LLM) interactions. The interface provides four key authorization verification methods:

  1. check_provider_maintenance():

  2. Validates authorization for performing provider maintenance

  3. Raises zcx_llm_authorization exception if unauthorized

  4. check_get_client(model):

  5. Checks authorization to retrieve a model client

  6. Takes a model type as input
  7. Raises zcx_llm_authorization exception if unauthorized

  8. check_decrypt():

  9. Verifies authorization to decrypt secrets

  10. Raises zcx_llm_authorization exception if unauthorized

  11. check_encrypt():

  12. Validates authorization to encrypt secrets

  13. Raises zcx_llm_authorization exception if unauthorized

Dependencies

  • Custom exception class: zcx_llm_authorization
  • Custom type: zllm_model