| 1 |
<?php // phpcs:ignore |
| 2 |
/** |
| 3 |
* AI Integration Interface |
| 4 |
* |
| 5 |
* @package optin |
| 6 |
* @subpackage optin/intergrtions |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace OPTN\Includes\Integrations\Base; |
| 10 |
|
| 11 |
use OPTN\Includes\Dto\ModelInput; |
| 12 |
|
| 13 |
interface AiIntegration { |
| 14 |
|
| 15 |
/** |
| 16 |
* Constructor |
| 17 |
* |
| 18 |
* @param int $account_id account id. |
| 19 |
*/ |
| 20 |
public function __construct( $account_id ); |
| 21 |
|
| 22 |
/** |
| 23 |
* Generate text. |
| 24 |
* |
| 25 |
* @param ModelInput $input model input. |
| 26 |
* @return string|WP_Error |
| 27 |
*/ |
| 28 |
public function generate_text( ModelInput $input ); |
| 29 |
|
| 30 |
/** |
| 31 |
* Get models. |
| 32 |
* |
| 33 |
* @return array |
| 34 |
*/ |
| 35 |
public static function get_models(); |
| 36 |
} |
| 37 |
|