CoreFiles by mySites.guru
SpeechGenerationOperationModelInterface.php26 lines, 805 bytes, from wordpress-7.0.zip
Raw History Compare with 6.9.12
md5
3d881f3cb3b623a5ae770cb847639834
sha1
2bc8db8874786ebb4c3886d581da25b98815dc29
sha256
d7c74846562250b1fb58e56cfae09bdd34a891cea2dfc2d362cf6837f874e3bc
<?php

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

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

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