WordPress\AiClient\Providers\Models\TextGeneration\Contracts

TextGenerationOperationModelInterface::generateTextOperationpublicWP 0.1.0

Creates a text generation operation.

Method of the class: TextGenerationOperationModelInterface{}

No Hooks.

Returns

GenerativeAiOperation. The initiated text generation operation.

Usage

$TextGenerationOperationModelInterface = new TextGenerationOperationModelInterface();
$TextGenerationOperationModelInterface->generateTextOperation( $prompt ): GenerativeAiOperation;
$prompt(list) (required)
Array of messages containing the text generation prompt.

Changelog

Since 0.1.0 Introduced.

TextGenerationOperationModelInterface::generateTextOperation() code WP 7.0

public function generateTextOperation(array $prompt): GenerativeAiOperation;