Interface ZIF_LLM_CLIENT
AI Generated documentation.
Overview
The ZIF_LLM_CLIENT interface provides functionality to interact with Large Language Models (LLM). It offers the following key methods:
GET_CLIENT(static): Creates a new LLM client based on provided configurationCHAT: Executes chat requests with the LLMNEW_REQUEST: Creates a new chat request object
The interface defines standard role constants for LLM interactions:
ROLE_USERROLE_SYSTEMROLE_ASSISTANTROLE_TOOL
classDiagram
class ZIF_LLM_CLIENT {
+GET_CLIENT(client_config: ZLLM_CLNT_CONFIG, provider_config: ZLLM_PROVIDERS) ZIF_LLM_CLIENT
+CHAT(request: ZIF_LLM_CHAT_REQUEST) ZLLM_RESPONSE
+NEW_REQUEST() ZIF_LLM_CHAT_REQUEST
}
Dependencies
ZIF_LLM_CHAT_REQUEST- Interface for chat requestsZCX_LLM_VALIDATION- Exception class for validation errorsZCX_LLM_AUTHORIZATION- Exception class for authorization errors