| 1234567891011121314151617 |
- <?php
-
- namespace App\Ai;
-
- /**
- * The one interface every AI provider implements.
- *
- * A driver is built with its provider name and its settings from config/ai.php:
- * new Driver(string $provider, array $config).
- */
- interface AiDriver
- {
- /**
- * @throws AiException
- */
- public function complete(AiRequest $request): AiResponse;
- }
|