19 lines
403 B
PHP
19 lines
403 B
PHP
<?php
|
|
|
|
namespace App\Services\AI;
|
|
|
|
interface AiProviderInterface
|
|
{
|
|
/**
|
|
* Generate response from the AI provider.
|
|
*
|
|
* @return array [success => bool, response => string, usage => array, error => string]
|
|
*/
|
|
public function generate(string $prompt, array $options = []): array;
|
|
|
|
/**
|
|
* Get the provider identifier.
|
|
*/
|
|
public function getIdentifier(): string;
|
|
}
|