CoAgent8 - Source API
    Preparing search index...

    Function extractStructuredError

    • Maps a structured error payload to a typed error.

      Parameters

      • payload: unknown

        The provider's error object, a message string or anything else.

      • fallbackMessage: string | undefined

        Message used when the payload carries none.

      • dialect: ErrorDialect

        The backend's fields, codes and text classifier.

      Returns ExecutionError