JsonStructure
Represents a structure for handling and interacting with structured data of a specified type.
Parameters
The type of data to be structured.
Prompt with definition, explaining the structure to the LLM. Default is JsonStructure.defaultDefinitionPrompt
Prompt with examples of valid formats for the structured data. Default is StructuredOutputPrompts.examplesPrompt
Constructors
Types
Companion object for the JsonStructure class, providing utility methods to facilitate the creation of JSON structures with associated schema generation.
Properties
kotlinx.serialization.json.Json instance to perform de/serialization.
The schema that defines the structure and validation rules for the data.
The serializer used to convert the data to and from JSON.
Functions
Defines the structure of textual content using the provided TextContentBuilder.
Defines formatted examples using the provided TextContentBuilderBase.