{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/ExportChatSessionUseCase.php",
"offset": 55,
"limit": 15
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/UpdateChatSessionUseCase.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace UseCases\\Chat;\n\n\/\/ @responsibility: Updates chat session data\n\nuse Domain\\Entity\\ChatSession;\nuse Domain\\Repository\\ChatSessionRepositoryInterface;\nuse Domain\\Repository\\CollectionRepositoryInterface;\nuse Domain\\Repository\\ContentConfigRepositoryInterface;\nuse Domain\\Service\\ModelRegistryInterface;\nuse Infrastructure\\Validation\\CollectionValidator;\n\nfinal class UpdateChatSessionUseCase implements UpdateChatSessionUseCaseInterface\n{\n public function __construct(\n private ChatSessionRepositoryInterface $sessionRepo,\n private ContentConfigRepositoryInterface $configRepo,\n private CollectionRepositoryInterface $collectionRepo,\n private CollectionValidator $collectionValidator,\n private ModelRegistryInterface $modelRegistry,\n private \\PDO $pdoDev\n ) {\n }\n\n public function updateTitle(int $sessionId, string $title): string\n {\n $title = trim($title);\n\n if ($title === '') {\n $title = 'Neuer Chat';\n }\n\n $title = mb_substr($title, 0, 100);\n $this->sessionRepo->updateTitle($sessionId, $title);\n\n return $title;\n }\n\n public function updateSettings(\n int $sessionId,\n string $model,\n array $collections,\n int $contextLimit,\n int $authorProfileId,\n float $temperature,\n int $maxTokens\n ): void {",
"numLines": 50,
"startLine": 1,
"totalLines": 175
}
}
}