UpdateChatSessionUseCaseInterface.php
- Pfad:
src/UseCases/Chat/UpdateChatSessionUseCaseInterface.php - Namespace: UseCases\Chat
- Zeilen: 61 | Größe: 1,382 Bytes
- Geändert: 2025-12-25 16:58:02 | 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.
Dependencies 1
- use Domain\Entity\ChatSession
Klassen 1
-
UpdateChatSessionUseCaseInterfaceinterface Zeile 11
Funktionen 5
-
updateTitle()public Zeile 16 -
updateSettings()public Zeile 23 -
updateSystemPrompt()public Zeile 36 -
settingsHaveChanged()public Zeile 43 -
validateCollectionCompatibility()public Zeile 59
Verwendet von 4
- ChatController.php constructor
- ChatController.php use
- ChatServiceProvider.php use
- UpdateChatSessionUseCase.php implements
Code
<?php
declare(strict_types=1);
namespace UseCases\Chat;
// @responsibility: Interface for updating chat session data
use Domain\Entity\ChatSession;
interface UpdateChatSessionUseCaseInterface
{
/**
* Update session title.
*/
public function updateTitle(int $sessionId, string $title): string;
/**
* Update session settings.
*
* @param array<string> $collections
*/
public function updateSettings(
int $sessionId,
string $model,
array $collections,
int $contextLimit,
int $authorProfileId,
float $temperature,
int $maxTokens
): void;
/**
* Update system prompt.
*/
public function updateSystemPrompt(int $sessionId, string $systemPrompt): ChatSessionResult;
/**
* Check if settings have changed.
*
* @param array<string> $collections
*/
public function settingsHaveChanged(
ChatSession $session,
string $model,
array $collections,
int $contextLimit,
int $authorProfileId,
float $temperature,
int $maxTokens
): bool;
/**
* Validate collection compatibility.
*
* @param array<string> $collectionIds
* @return array{valid: bool, error: string|null}
*/
public function validateCollectionCompatibility(array $collectionIds): array;
}