StructuredResponse

data class StructuredResponse<T>(val structure: T, val raw: String)(source)

Represents a container for structured data parsed from raw text.

This class is designed to encapsulate both the parsed structured output and the original raw text as returned from a processing step, such as a language model execution.

Parameters

T

The type of the structured data contained within this response.

Constructors

Link copied to clipboard
constructor(structure: T, raw: String)

Properties

Link copied to clipboard
val raw: String

The raw string from which the structured data was parsed.

Link copied to clipboard

The parsed structured data corresponding to the specific schema.