langchain.js
    Preparing search index...

    Class AsymmetricStructuredOutputParser<T, Y>Abstract

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

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    • Type Parameters

      • T extends InteropZodType
      • 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: InferInteropZodOutput<T>

        The parsed input

      Returns Promise<Y>

      The processed output.

    • Parameters

      • text: string

      Returns Promise<Y>