[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/Models/Enums/ -> CapabilityEnum.php (source)

   1  <?php
   2  
   3  declare (strict_types=1);
   4  namespace WordPress\AiClient\Providers\Models\Enums;
   5  
   6  use WordPress\AiClient\Common\AbstractEnum;
   7  /**
   8   * Enum for model capabilities.
   9   *
  10   * @since 0.1.0
  11   *
  12   * @method static self textGeneration() Creates an instance for TEXT_GENERATION capability.
  13   * @method static self imageGeneration() Creates an instance for IMAGE_GENERATION capability.
  14   * @method static self textToSpeechConversion() Creates an instance for TEXT_TO_SPEECH_CONVERSION capability.
  15   * @method static self speechGeneration() Creates an instance for SPEECH_GENERATION capability.
  16   * @method static self musicGeneration() Creates an instance for MUSIC_GENERATION capability.
  17   * @method static self videoGeneration() Creates an instance for VIDEO_GENERATION capability.
  18   * @method static self embeddingGeneration() Creates an instance for EMBEDDING_GENERATION capability.
  19   * @method static self chatHistory() Creates an instance for CHAT_HISTORY capability.
  20   * @method bool isTextGeneration() Checks if the capability is TEXT_GENERATION.
  21   * @method bool isImageGeneration() Checks if the capability is IMAGE_GENERATION.
  22   * @method bool isTextToSpeechConversion() Checks if the capability is TEXT_TO_SPEECH_CONVERSION.
  23   * @method bool isSpeechGeneration() Checks if the capability is SPEECH_GENERATION.
  24   * @method bool isMusicGeneration() Checks if the capability is MUSIC_GENERATION.
  25   * @method bool isVideoGeneration() Checks if the capability is VIDEO_GENERATION.
  26   * @method bool isEmbeddingGeneration() Checks if the capability is EMBEDDING_GENERATION.
  27   * @method bool isChatHistory() Checks if the capability is CHAT_HISTORY.
  28   */
  29  class CapabilityEnum extends AbstractEnum
  30  {
  31      /**
  32       * Text generation capability.
  33       */
  34      public const TEXT_GENERATION = 'text_generation';
  35      /**
  36       * Image generation capability.
  37       */
  38      public const IMAGE_GENERATION = 'image_generation';
  39      /**
  40       * Text to speech conversion capability.
  41       */
  42      public const TEXT_TO_SPEECH_CONVERSION = 'text_to_speech_conversion';
  43      /**
  44       * Speech generation capability.
  45       */
  46      public const SPEECH_GENERATION = 'speech_generation';
  47      /**
  48       * Music generation capability.
  49       */
  50      public const MUSIC_GENERATION = 'music_generation';
  51      /**
  52       * Video generation capability.
  53       */
  54      public const VIDEO_GENERATION = 'video_generation';
  55      /**
  56       * Embedding generation capability.
  57       */
  58      public const EMBEDDING_GENERATION = 'embedding_generation';
  59      /**
  60       * Chat history support capability.
  61       */
  62      public const CHAT_HISTORY = 'chat_history';
  63  }


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