File: wp-includes/php-ai-client/src/Messages/DTO/Message.php
-
methodMessage::getJsonSchema()
{@inheritDoc}
Used by 1 function | Uses 1 function | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:115 -
methodMessage::toArray()
{@inheritDoc}
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:126 -
methodMessage::fromArray()
{@inheritDoc}
Used by 2 functions | Uses 3 functions | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:139 -
methodMessage::__clone()
Performs a deep clone of the message.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:165 -
methodMessage::getRole()
Gets the role of the message sender.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:60 -
methodMessage::getParts()
Gets the message parts.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:71 -
methodMessage::withPart()
Returns a new instance with the given part appended.
Used by 0 functions | Uses 1 function | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:84 -
methodMessage::validateParts()
Validates that the message parts are appropriate for the message role.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:98 -
classMessage
Represents a message in an AI conversation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:26 -
methodMessage::__construct()
Constructor.
Used by 5 functions | Uses 1 function | Source: wp-includes/php-ai-client/src/Messages/DTO/Message.php:47