StructuredResponse

data class StructuredResponse<T>(val structure: T, val message: Message.Assistant)(source)

Represents a container for structured data parsed from response message.

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, message: Message.Assistant)

Properties

Link copied to clipboard

The original assistant message from which the structure was parsed.

Link copied to clipboard

The parsed structured data corresponding to the specific schema.