StructuredData
abstract class StructuredData<TStruct, TSchema : LLMParams.Schema>(val id: String, val schema: TSchema, val examples: List<TStruct>) : StructuredDataDefinition(source)
Represents a generic structure for handling data with a specific schema.
This abstract class provides a base for defining structured data entities that are identified by a unique id
, involve a list of examples of a specific type TStruct
, and adhere to a given schema
.
Parameters
TStruct
The type of the structured data that this class handles.
Inheritors
Functions
Link copied to clipboard
Defines the structure of textual content using the provided TextContentBuilder.