JsonStructuredData
class JsonStructuredData<TStruct>(id: String, serializer: KSerializer<TStruct>, structureLanguage: JsonStructureLanguage, examples: List<TStruct>, jsonSchema: LLMParams.Schema.JSON) : StructuredData<TStruct> (source)
Represents a structure for handling and interacting with structured data of a specified type.
Parameters
TStruct
The type of data to be structured.
Constructors
Link copied to clipboard
constructor(id: String, serializer: KSerializer<TStruct>, structureLanguage: JsonStructureLanguage, examples: List<TStruct>, jsonSchema: LLMParams.Schema.JSON)
Types
Properties
Functions
Link copied to clipboard
Defines the structure of textual content using the provided TextContentBuilder.