[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Messages/Enums/ -> MessagePartChannelEnum.php (source)

   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 part channels.
   9   *
  10   * @since 0.1.0
  11   *
  12   * @method static self content() Creates an instance for CONTENT channel.
  13   * @method static self thought() Creates an instance for THOUGHT channel.
  14   * @method bool isContent() Checks if the channel is CONTENT.
  15   * @method bool isThought() Checks if the channel is THOUGHT.
  16   */
  17  class MessagePartChannelEnum extends AbstractEnum
  18  {
  19      /**
  20       * Regular (primary) content.
  21       */
  22      public const CONTENT = 'content';
  23      /**
  24       * Model thinking or reasoning.
  25       */
  26      public const THOUGHT = 'thought';
  27  }


Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref