CoreFiles by mySites.guru
VideoGenerationModelInterface.php26 lines, 733 bytes, from wordpress-7.1.zip
Raw History Compare with 7.0.8
md5
e56439b079a6a7f975a82b39429e0cb9
sha1
2a472ffad87016ea8b3a7b88520078b8c37b24e7
sha256
ff080810558f4800314a20097ed565e3ae121f6eaba0f88af0d618b5b2f9f625
<?php

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

use WordPress\AiClient\Messages\DTO\Message;
use WordPress\AiClient\Results\DTO\GenerativeAiResult;
/**
 * Interface for models that support video generation.
 *
 * Provides synchronous methods for generating videos from prompts.
 *
 * @since 1.3.0
 */
interface VideoGenerationModelInterface
{
    /**
     * Generates videos from a prompt.
     *
     * @since 1.3.0
     *
     * @param list<Message> $prompt Array of messages containing the video generation prompt.
     * @return GenerativeAiResult Result containing generated videos.
     */
    public function generateVideoResult(array $prompt): GenerativeAiResult;
}

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