Details object that may be included in an error response.

**Signature:**

    export interface ErrorDetails 

## Properties

| Property | Type | Description |
|---|---|---|
| ["@type"](https://firebase.google.com/docs/reference/js/ai.errordetails#errordetails%22@type%22) | string |   |
| [domain](https://firebase.google.com/docs/reference/js/ai.errordetails#errordetailsdomain) | string | The domain where the error occurred. |
| [metadata](https://firebase.google.com/docs/reference/js/ai.errordetails#errordetailsmetadata) | Record\<string, unknown\> | Additional metadata about the error. |
| [reason](https://firebase.google.com/docs/reference/js/ai.errordetails#errordetailsreason) | string | The reason for the error. |

## ErrorDetails."@type"

**Signature:**

    '@type'?: string;

## ErrorDetails.domain

The domain where the error occurred.

**Signature:**

    domain?: string;

## ErrorDetails.metadata

Additional metadata about the error.

**Signature:**

    metadata?: Record<string, unknown>;

## ErrorDetails.reason

The reason for the error.

**Signature:**

    reason?: string;