* @throws ApiException * @throws DomainException */ public function generateMessage( Model $model, MessageEntity $message, ): Generator; }