CoreFiles by mySites.guru
ImageGenerationOperationModelInterface.php26 lines, 798 bytes, from wordpress-7.2-RC1.zip
Raw History Compare with 7.1.1-RC1
md5
ab638d4532de7d829e3393199b43eaea
sha1
0d2ea94d6b37d6c1b46eeda521191b1c686f26f0
sha256
58dffec0814a0abc2ac9b407f75b4a62158628cac1ca7baafe1db624955e22b5
<?php

declare (strict_types=1);
namespace WordPress\AiClient\Providers\Models\ImageGeneration\Contracts;

use WordPress\AiClient\Messages\DTO\Message;
use WordPress\AiClient\Operations\DTO\GenerativeAiOperation;
/**
 * Interface for models that support asynchronous image generation operations.
 *
 * Provides methods for initiating long-running image generation tasks.
 *
 * @since 0.1.0
 */
interface ImageGenerationOperationModelInterface
{
    /**
     * Creates an image generation operation.
     *
     * @since 0.1.0
     *
     * @param list<Message> $prompt Array of messages containing the image generation prompt.
     * @return GenerativeAiOperation The initiated image generation operation.
     */
    public function generateImageOperation(array $prompt): GenerativeAiOperation;
}

The same content is in 41 releases, WordPress 7.0-beta1 to 7.2-RC1. See them all, or every version of this file.