PHP 8.0.30
Preview: ImageGenerationOperationModelInterface.php Size: 798 B
/proc/thread-self/cwd/wp/wp-includes/php-ai-client/src/Providers/Models/ImageGeneration/Contracts/ImageGenerationOperationModelInterface.php

<?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;
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
738 B lrw-r--r-- 2026-05-21 18:01:46
Edit Download
798 B lrw-r--r-- 2026-05-21 18:01:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).