[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/Models/TextGeneration/Contracts/ -> TextGenerationModelInterface.php (summary)

(no description)

File Size: 26 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

TextGenerationModelInterface:: (1 method):
  generateTextResult()


Interface: TextGenerationModelInterface  - X-Ref

Interface for models that support text generation.

Provides synchronous and streaming methods for generating text from prompts.

generateTextResult(array $prompt)   X-Ref
Generates text from a prompt.

return: GenerativeAiResult Result containing generated text.
param: list<Message> $prompt Array of messages containing the text generation prompt.



Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref