StructuredData
abstract class StructuredData<TStruct>(val id: String, val examples: List<TStruct>, val schema: LLMParams.Schema) : 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
Properties
Functions
Link copied to clipboard
Defines the structure of textual content using the provided TextContentBuilder.