PluginProbe
WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation / trunk
WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation vtrunk
1.4.48 1.4.47 1.4.46 1.4.45 1.4.44 1.4.43 1.4.42 1.4.41 1.4.40 1.4.39 1.4.38 1.4.37 1.4.36 1.1.2 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 All 64 releases
optin / includes / integrations / base / class-ai-integration.php

class-ai-integration.php in WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation trunk, at includes/integrations/base/class-ai-integration.php

37 lines 616 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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