# AIResponse

Represents an AI response returned in [`get_ai_response()`](https://nerdguyahmad.gitbook.io/randomstuff/clients/client#get_ai_response) method.

|           **Attributes**          |
| :-------------------------------: |
|       [`message`](#message)       |
| [`response_time`](#response_time) |
|       [`success`](#success)       |
|       [`api_key`](#api_key)       |

## Attributes

### `message`

The main message or response returned.

**Type:** [`str`](https://www.w3schools.com/python/python_strings.asp)

### `response_time`

The response time, This is usually normal however this can change if the API is having issues.

**Type:** [`str`](https://www.w3schools.com/python/python_strings.asp)

### `success`

{% hint style="info" %}
This attribute is `None` in version 4. This is only valid for version 3
{% endhint %}

&#x20;Whether or not the response was retrieved success or not.

**Type:** [`bool`](https://www.w3schools.com/python/python_strings.asp)

### `api_key`

{% hint style="info" %}
This attribute is `None` in version 4. This is only valid for version 3
{% endhint %}

The API key used to fetch the response.

**Type:** [`str`](https://www.w3schools.com/python/python_strings.asp)
