Skip to content

Interface ZIF_LLM_FACTORY

AI Generated documentation.

Overview

The zif_llm_factory interface defines a factory method for creating Large Language Model (LLM) clients. It provides a standardized way to instantiate LLM clients based on a specified model.

Key method:

  • get_client(): Creates and returns an LLM client for a given model
  • Imports a model identifier
  • Returns a client implementing zif_llm_client
  • Can raise validation and authorization exceptions

Dependencies

Potential dependencies include:

  • zllm_model type (model identifier)
  • zif_llm_client interface (client implementation)
  • Exception classes:
  • zcx_llm_validation
  • zcx_llm_authorization

Workflow diagram:

graph TD
    A[Model Identifier] --> B{get_client()}
    B --> |Valid Model| C[LLM Client Instance]
    B --> |Invalid Model| D[Validation Exception]
    B --> |Unauthorized| E[Authorization Exception]