ModelRegistryInterface.php
- Pfad:
src/Domain/Service/ModelRegistryInterface.php - Namespace: Domain\Service
- Zeilen: 28 | Größe: 533 Bytes
- Geändert: 2025-12-25 16:56:10 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 100
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
Keine Issues gefunden.
Klassen 1
-
ModelRegistryInterfaceinterface Zeile 9
Funktionen 3
-
getDefaultChatModel()public Zeile 14 -
isValid()public Zeile 19 -
getChatModels()public Zeile 26
Verwendet von 9
- ChatController.php constructor
- ChatController.php use
- ChatServiceProvider.php use
- CreateChatSessionUseCase.php constructor
- CreateChatSessionUseCase.php use
- ModelRegistry.php implements
- ModelRegistry.php use
- UpdateChatSessionUseCase.php constructor
- UpdateChatSessionUseCase.php use
Code
<?php
declare(strict_types=1);
namespace Domain\Service;
// @responsibility: Interface for AI model registry
interface ModelRegistryInterface
{
/**
* Get default chat model.
*/
public function getDefaultChatModel(): string;
/**
* Check if model is valid and available.
*/
public function isValid(string $fullKey): bool;
/**
* Get all available chat models.
*
* @return array<string, string> [full_key => display_name]
*/
public function getChatModels(): array;
}