Class AsymmetricStructuredOutputParser<T, Y>Abstract

A type of StructuredOutputParser that handles asymmetric input and output schemas.

Type Parameters

  • T extends z.ZodTypeAny

  • Y = unknown

Hierarchy

Constructors

  • Type Parameters

    • T extends ZodType<any, any, any, T>

    • Y = unknown

    Parameters

    • __namedParameters: AsymmetricStructuredOutputParserFields<T>

    Returns AsymmetricStructuredOutputParser<T, Y>

Methods

  • Returns string

  • Processes the parsed input into the desired output format. Must be implemented by subclasses.

    Parameters

    • input: TypeOf<T>

      The parsed input

    Returns Promise<Y>

    The processed output.

  • Parameters

    • text: string

    Returns Promise<Y>

Generated using TypeDoc