AIErrorSinkEventData
interface
Payload of the AIErrorSinkErrorEvent sink event.
Error reporting services serialize only name, message and stack of an Error, so everything a
reported AICoreError carries as its own properties is
flattened here. A subscriber can therefore classify and forward the failure without inspecting the
error itself.
Properties
code?: stringmodule:ai/aicore/aierrorreporter~AIErrorSinkEventData#codeCode of the reported error, for example
'ai-chat-file-upload-failed'.undefinedfor errors that are not anAICoreError.component: stringmodule:ai/aicore/aierrorreporter~AIErrorSinkEventData#componentcontext?: Record<string, unknown>module:ai/aicore/aierrorreporter~AIErrorSinkEventData#contexterror: unknownmodule:ai/aicore/aierrorreporter~AIErrorSinkEventData#errormodule:ai/aicore/aierrorreporter~AIErrorSinkEventData#severitySeverity of the reported error.
undefinedfor errors that are not anAICoreError.module:ai/aicore/aierrorreporter~AIErrorSinkEventData#typeClassification of the reported error. Use it to skip the failures that are not actionable telemetry:
'user'(surfaced via UI) and'network'(transient).undefinedfor errors that are not anAICoreError.