PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / app / AI / AIServices / Interface / AIServiceInterface.php

AIServiceInterface.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.6, at app/AI/AIServices/Interface/AIServiceInterface.php

23 lines 761 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace RadiusTheme\SB\AI\AIServices\Interface;
4
5 /**
6 * Interface AIServiceInterface
7 *
8 * Defines the contract for AI service adapters. Any AI service implementation
9 * (e.g., OpenAI, Gemini, DeepSeek) must implement this interface to ensure
10 * a consistent method for generating AI responses.
11 */
12 interface AIServiceInterface {
13 /**
14 * Generates an AI-based response using the provided input and system prompt.
15 *
16 * @param string $content_type The user input text for the AI to process.
17 * @param string $instruction The system prompt providing context or instruction for the AI.
18 *
19 * @return string The AI-generated response as a string.
20 */
21 public function generateResponse( string $content_type, string $instruction ): string;
22 }
23