| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare (strict_types=1); 4 namespace WordPress\AiClient\Messages\Enums; 5 6 use WordPress\AiClient\Common\AbstractEnum; 7 /** 8 * Enum for message roles in AI conversations. 9 * 10 * @since 0.1.0 11 * 12 * @method static self user() Creates an instance for USER role. 13 * @method static self model() Creates an instance for MODEL role. 14 * @method bool isUser() Checks if the role is USER. 15 * @method bool isModel() Checks if the role is MODEL. 16 */ 17 class MessageRoleEnum extends AbstractEnum 18 { 19 /** 20 * User role - messages from the user. 21 */ 22 public const USER = 'user'; 23 /** 24 * Model role - messages from the AI model. 25 */ 26 public const MODEL = 'model'; 27 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Fri Jul 3 08:20:12 2026 | Cross-referenced by PHPXref |