AiClient::message( string|null $text = null ): object

In this article

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).

Source

public static function message(?string $text = null)
{
    throw new RuntimeException('MessageBuilder is not yet available. This method depends on builder infrastructure. ' . 'Use direct generation methods (generateTextResult, generateImageResult, etc.) for now.');
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.