Skip to content

Interface ZIF_LLM_SO

AI Generated documentation.

Overview

The ZIF_LLM_SO interface provides support for structured output with the following key methods:

  1. SET_SCHEMA
  2. Purpose: Defines the schema for structured output
  3. Imports:
    • data_desc: A reference to CL_ABAP_DATADESCR specifying the data type
    • description: Optional field descriptions
  4. Can raise a validation exception (ZCX_LLM_VALIDATION)

  5. GET_SCHEMA

  6. Purpose: Retrieves the converted schema
  7. Returns: Schema as a string

  8. GET_DATATYPE

  9. Purpose: Retrieves the underlying data type definition
  10. Returns: Reference to CL_ABAP_DATADESCR

Key Types

  • def_description: A structure containing:
  • fieldname: Field name (string)
  • description: Field description (string)
  • enum_values: Possible enum values (string table)
  • def_descriptions: Table of def_description

Dependencies

  • CL_ABAP_DATADESCR: ABAP runtime type services
  • ZCX_LLM_VALIDATION: Custom validation exception class