WordPress\AiClient\Providers\Models\VideoGeneration\Contracts

VideoGenerationModelInterface{}interfaceWP 1.3.0

Interface for models that support video generation.

Provides synchronous methods for generating videos from prompts.

Хуков нет.

Использование

$VideoGenerationModelInterface = new VideoGenerationModelInterface();
// use class methods

Методы

  1. public generateVideoResult(array $prompt)

Список изменений

С версии 1.3.0 Введена.

Код VideoGenerationModelInterface{} WP 7.0.4

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