dolibarr 24.0.0-beta
airequestlog.class.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2004-2026 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2026 Nick Fragoulis
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY, without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
26require_once DOL_DOCUMENT_ROOT . '/core/class/commonobject.class.php';
27
32{
37 public $element = 'airequestlog';
38
42 public $table_element = 'ai_request_log';
43
47 public $entity;
48
52 public $fk_user;
53
57 public $date_request;
58
62 public $query_text;
63
67 public $tool_name;
68
72 public $provider;
73
77 public $execution_time;
78
82 public $confidence;
83
87 public $status;
88
92 public $error_msg;
93
99 public function __construct(DoliDB $db)
100 {
101 $this->db = $db;
102 }
103}
Class for AI Request Log entries.
__construct(DoliDB $db)
Constructor.
Parent class of all other business classes (invoices, contracts, proposals, orders,...
Class to manage Dolibarr database access.
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $db
API class for accounts.