WordPress\AiClient\Providers\Models\VideoGeneration\Contracts

VideoGenerationOperationModelInterface{} │ interface │ WP 1.3.0

Interface for models that support asynchronous video generation operations.

Provides methods for initiating long-running video generation tasks.

Хуков нет.

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

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

Методы

  1. public generateVideoOperation(array $prompt)

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

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

Код VideoGenerationOperationModelInterface{} WP 7.1.2

interface VideoGenerationOperationModelInterface
{
    /**
     * Creates a video generation operation.
     *
     * @since 1.3.0
     *
     * @param list<Message> $prompt Array of messages containing the video generation prompt.
     * @return GenerativeAiOperation The initiated video generation operation.
     */
    public function generateVideoOperation(array $prompt): GenerativeAiOperation;
}