📁
randomstuff.py
  • randomstuff.py
  • Clients
    • Client
    • AsyncClient
  • Data Classes
    • AIResponse
    • Joke
    • JokeFlags
    • Waifu
    • Weather
    • WeatherLocation
    • CurrentWeather
    • WeatherForecast
  • Sub modules
    • utils
  • Errors tree
    • Forbidden
      • BadAPIKey
      • PlanNotAllowed
    • ArgumentError
      • InvalidPlanError
      • InvalidVersionError
      • InvalidServerError
      • InvalidType
      • InvalidCityError
    • HTTPError
  • Brief
    • Warnings
    • Lists
    • Unique ID
    • Joke 101
    • FAQ
    • Changelogs
Powered by GitBook
On this page
  1. Data Classes

AIResponse

PreviousAsyncClientNextJoke

Last updated 4 years ago

Was this helpful?

CtrlK
  • Attributes
  • message
  • response_time
  • success
  • api_key

Was this helpful?

Represents an AI response returned in get_ai_response() method.

Attributes

message

response_time

success

api_key

Attributes

message

The main message or response returned.

Type: str

response_time

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

Type: str

success

This attribute is None in version 4. This is only valid for version 3

Whether or not the response was retrieved success or not.

Type: bool

api_key

This attribute is None in version 4. This is only valid for version 3

The API key used to fetch the response.

Type: str