PluginProbe
AI Engine – The Chatbot, AI Framework & MCP for WordPress / 3.7.7
AI Engine – The Chatbot, AI Framework & MCP for WordPress v3.7.7
3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0 3.6.9 3.6.8 3.6.7 3.6.6 3.6.4 3.6.5 3.6.3 3.6.2 3.6.1 3.6.0 3.5.9 3.5.8 3.5.7 3.5.6 3.5.5 3.5.4 3.5.3 All 527 releases
ai-engine / classes / discussion.php

discussion.php in AI Engine – The Chatbot, AI Framework & MCP for WordPress 3.7.7, at classes/discussion.php

59 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class Meow_MWAI_Discussion
5 *
6 * Represents a single discussion's data that can be passed to
7 * Meow_MWAI_Modules_Discussions::commit_discussion().
8 */
9 class Meow_MWAI_Discussion {
10 /**
11 * Unique chat ID (required). If found, the discussion is updated; otherwise created.
12 * @var string|null
13 */
14 public $chatId = null;
15
16 /**
17 * ID of the bot or UI.
18 * @var string|null
19 */
20 public $botId = null;
21
22 /**
23 * Array of messages (each message is typically [ 'role' => 'user'|'assistant', 'content' => '...' ]).
24 * @var array
25 */
26 public $messages = [];
27
28 /**
29 * Additional arbitrary data (e.g., model, temperature, etc.).
30 * @var array
31 */
32 public $extra = [];
33
34 /**
35 * (Optional) User ID of the discussion's owner.
36 * @var int|null
37 */
38 public $userId = null;
39
40 /**
41 * (Optional) IP address if you track guests or sessions by IP.
42 * @var string|null
43 */
44 public $ip = null;
45
46 /**
47 * (Optional) Title of the discussion.
48 * @var string|null
49 */
50 public $title = null;
51
52 /**
53 * Constructor if you want to initialize some defaults.
54 */
55 public function __construct() {
56 // No defaults by default. Fill them in as needed.
57 }
58 }
59