feat: add app and database modules
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user