Function: collectAISDKDiagnostics()
collectAISDKDiagnostics(
err):AISDKErrorDiagnostics
Defined in: packages/core/src/utils/format-error.ts:73
Walk an error and its .cause chain, collecting the first non-undefined
value for each diagnostic field. Top-level error wins ties; cycles are safe.
UI consumers should prefer this over parsing formatAISDKErrorDiagnostics()
— render fields structurally, skip the parenthetical suffix, keep toasts clean.
Returns an empty object if no diagnostic fields are found.
Parameters
err
unknown