Creates a new message builder for fluent API usage.
Description
This method will be implemented once MessageBuilder is available.MessageBuilder will provide a fluent interface for constructing complex messages with multiple parts, attachments, and metadata.
Parameters
$textstring|nulloptional
Optional initial message text.Default: null
Return
object
MessageBuilder instance (type will be updated when MessageBuilder is available).
351publicstaticfunctionmessage(?string$text=null)352{353thrownewRuntimeException('MessageBuilder is not yet available. This method depends on builder infrastructure. '.'Use direct generation methods (generateTextResult, generateImageResult, etc.) for now.');354}
History
Introduced in 0.1.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/php-ai-client/src/AiClient.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.