Package-level declarations
Types
Exception indicating an error during the parsing of structured output from a language model.
Represents a generic structure for handling data with a specific schema.
Represents the definition of structured data, enabling content construction and customization.
Defines how structured outputs should be generated.
Configures structured output behavior. Defines which structures in which modes should be used for each provider when requesting a structured output.
An object that provides utilities for formatting structured output prompts.
Represents a container for structured data parsed from response message.
Helper fixing parser for handling malformed structured data that uses LLMs to attempt to correct any errors in the provided content to produce valid structured outputs.
Properties
Registered mapping of providers to their respective known simple JSON schema format generators. The registration is supposed to be done by the LLM clients when they are loaded, to communicate their custom formats.
Registered mapping of providers to their respective known full JSON schema format generators. The registration is supposed to be done by the LLM clients on their initialization, to communicate their custom formats.
Functions
Executes a prompt with structured output, enhancing it with schema instructions or native structured output parameter, and parses the response into the defined structure.
Adds a structured representation of the given value to the TextContentBuilderBase.