Documentation
    Preparing search index...

    Function structuredOutput

    • Convert LLM parameters schema to structured output interface.

      Creates an ILlmStructuredOutput containing everything needed for handling LLM structured outputs: the parameters schema for prompting, and functions for parsing, coercing, and validating responses.

      This is useful when you have a parameters schema (e.g., from typia.llm.parameters()) and need the full structured output interface with all utility functions.

      Type Parameters

      • T

        The expected output type

      Parameters

      • parameters: ILlmSchema.IParameters

        LLM parameters schema

      • Optionalequals: boolean

        If true, reject extraneous properties not defined in the schema during validation. Otherwise, extra properties are ignored.

      Returns ILlmStructuredOutput<T>

      Structured output interface with parse, coerce, and validate