◆ __construct()
| core_ai\aiactions\responses\response_explain_text::__construct |
( |
bool | $success, |
|
|
int | $errorcode = 0, |
|
|
string | $error = '', |
|
|
string | $errormessage = '' ) |
Constructor.
- Parameters
-
| bool | $success | The success status of the action. |
| int | $errorcode | Error code. Must exist if success is false. |
| string | $error | Error name. Must exist if success is false |
| string | $errormessage | Error message. Must exist if success is false |
◆ get_actionname()
| core_ai\aiactions\responses\response_base::get_actionname |
( |
| ) |
|
|
inherited |
Get the name of the action that was processed.
- Return values
-
◆ get_error()
| core_ai\aiactions\responses\response_base::get_error |
( |
| ) |
|
|
inherited |
Get the error name.
- Return values
-
◆ get_errorcode()
| core_ai\aiactions\responses\response_base::get_errorcode |
( |
| ) |
|
|
inherited |
Get the error code.
- Return values
-
◆ get_errormessage()
| core_ai\aiactions\responses\response_base::get_errormessage |
( |
| ) |
|
|
inherited |
Get the error message.
- Return values
-
◆ get_model_used()
| core_ai\aiactions\responses\response_base::get_model_used |
( |
| ) |
|
|
inherited |
Get the model used to generate the response (if available).
- Return values
-
◆ get_response_data()
| core_ai\aiactions\responses\response_explain_text::get_response_data |
( |
| ) |
|
◆ get_success()
| core_ai\aiactions\responses\response_base::get_success |
( |
| ) |
|
|
inherited |
Get the success status of the action.
- Return values
-
◆ get_timecreated()
| core_ai\aiactions\responses\response_base::get_timecreated |
( |
| ) |
|
|
inherited |
Get the timestamp of when the response was created.
- Return values
-
◆ set_response_data()
| core_ai\aiactions\responses\response_explain_text::set_response_data |
( |
array | $response | ) |
|
The documentation for this class was generated from the following file:
- ai/classes/aiactions/responses/response_explain_text.php