* OpenAI-compatible provider adapter * OpenAI support * LM Studio support * Ollama OpenAI-compatible support * Encrypted API-key storage * Default provider and model selection * Provider connection testing * Reusable prompt library * Prompt variables and templates * Prompt version field * AI execution history * Token-usage storage * Duration and failure tracking * Manual knowledge sources * Knowledge-source chunking * Knowledge indexing status * Authenticated AI REST endpoint * AI administration dashboard * AI permissions * Module registration and boot test
10 lines
294 B
PHP
10 lines
294 B
PHP
<?php
|
|
namespace Modules\AI\Contracts;
|
|
use Modules\AI\Models\AIExecution;
|
|
use Modules\AI\Models\AIPrompt;
|
|
interface AIManager
|
|
{
|
|
public function execute(AIPrompt|string $prompt, array $variables=[], array $options=[]): AIExecution;
|
|
public function testProvider(int $providerId): array;
|
|
}
|