[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Messages/DTO/ -> ModelMessage.php (summary)

(no description)

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

Defines 1 class

ModelMessage:: (1 method):
  __construct()


Class: ModelMessage  - X-Ref

Represents a message from the AI model.

This is a convenience class that automatically sets the role to MODEL.
Model messages contain the AI's responses.

Important: Do not rely on `instanceof ModelMessage` to determine the message role.
This is merely a helper class for construction. Always use `$message->getRole()`
to check the role of a message.

__construct(array $parts)   X-Ref
Constructor.

param: MessagePart[] $parts The parts that make up this message.



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