Type Parameters

  • T extends z.ZodTypeAny

Hierarchy

Constructors

Properties

schema: T

Methods

  • Returns a markdown code snippet with a JSON object formatted according to the schema.

    Returns string

    A markdown code snippet with a JSON object formatted according to the schema.

  • Creates a new StructuredOutputParser from a set of names and descriptions.

    Type Parameters

    • S extends {
          [key: string]: string;
      }

    Parameters

    • schemas: S

      An object where each key is a name and each value is a description

    Returns StructuredOutputParser<ZodObject<{
        [k: string]: T;
    }, "strip", ZodTypeAny, {}, {}>>

    A new instance of StructuredOutputParser.

Generated using TypeDoc