| 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 |
|