|
dolibarr 25.0.0-alpha
|
Commands of the chat's "/" palette: tasks that take several pages in Dolibarr, done from one line. More...
Go to the source code of this file.
Functions | |
| aiCommandAnswer ($db, $user, $query, $startTime, array $response, $status='Success') | |
| Answer the browser, log the command like the other assistant requests, and stop. | |
Variables | |
| $context = (is_array($input) && isset($input['context']) && is_array($input['context'])) ? $input['context'] : array() | |
| @method int call_trigger(string $triggerName, ?User $user) | |
Commands of the chat's "/" palette: tasks that take several pages in Dolibarr, done from one line.
No AI provider is involved.
Definition in file command.php.
| aiCommandAnswer | ( | $db, | |
| $user, | |||
| $query, | |||
| $startTime, | |||
| array | $response, | ||
| $status = 'Success' ) |
Answer the browser, log the command like the other assistant requests, and stop.
| DoliDB | $db | Database handler |
| User | $user | User |
| string | $query | Command as typed |
| float | $startTime | Start of the request |
| array<string,mixed> | $response Answer | |
| string | $status | Log status |
Definition at line 225 of file command.php.
References ai_log_request().