Interface ZIF_LLM_CLIENT_JSON_SCHEMA
AI Generated documentation.
Overview
The ZIF_LLM_CLIENT_JSON_SCHEMA
interface provides functionality to build JSON schema definitions programmatically. It supports creating schemas with properties, arrays and objects with single-level nesting.
Key methods:
NEW_FORMAT
: Creates a new schema instance with a given titleADD_PROPERTY
: Adds a single property to the schemaADD_ARRAY
: Adds an array definitionADD_OBJECT
: Adds an object definitionGENERATE_SCHEMA
: Generates the final JSON schema string
The interface defines several data types:
classDiagram
class value_type {
<<enumeration>>
string
number
boolean
integer
}
class property_def {
name: string
type: value_type
description: string
allow_null: abap_bool
}
class object_def {
name: string
description: string
properties: properties_def
}
class array_def {
name: string
description: string
properties: properties_def
}
Dependencies
ZCX_LLM_VALIDATION
: Exception class for validation errors