langchain.js
    Preparing search index...

    Error thrown when a model invocation is aborted via an AbortSignal. Contains any partial output that was generated before the abort.

    Hierarchy

    • Error
      • ModelAbortError
    Index

    Constructors

    Properties

    lc_error_code: "MODEL_ABORTED"
    name: "ModelAbortError"

    The partial message output that was accumulated before the abort. This allows callers to access whatever content was generated before the operation was cancelled.

    Methods

    • Type guard to check if an error is a ModelAbortError

      Parameters

      • error: unknown

      Returns error is ModelAbortError