A class that extends AsymmetricStructuredOutputParser to parse structured query output.

Hierarchy

Constructors

Properties

queryTransformer: QueryTransformer

Methods

  • Processes the output of a structured query.

    Parameters

    • __namedParameters: {
          query: string;
          filter?: string;
      }
      • query: string
      • Optional filter?: string

    Returns Promise<StructuredQuery>

    A Promise that resolves to a StructuredQuery instance.

  • Creates a new StructuredQueryOutputParser instance from the provided components.

    Parameters

    • allowedComparators: Comparator[] = []

      An array of allowed Comparator instances.

    • allowedOperators: Operator[] = []

      An array of allowed Operator instances.

    Returns StructuredQueryOutputParser

    A new StructuredQueryOutputParser instance.

Generated using TypeDoc