{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/CreateChatSessionUseCase.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace UseCases\\Chat;\n\n\/\/ @responsibility: Creates new chat sessions\n\nuse Domain\\Repository\\ChatSessionRepositoryInterface;\nuse Infrastructure\\AI\\ModelRegistry;\n\nfinal class CreateChatSessionUseCase implements CreateChatSessionUseCaseInterface\n{\n public function __construct(\n private ChatSessionRepositoryInterface $sessionRepo,\n private ModelRegistry $modelRegistry\n ) {\n }\n\n public function createSession(): string\n {\n $uuid = $this->sessionRepo->generateUuid();\n $defaultModel = $this->modelRegistry->getDefaultChatModel();\n\n $this->sessionRepo->create(\n uuid: $uuid,\n model: $defaultModel,\n collections: '[\"documents\"]',\n contextLimit: 5\n );\n\n return $uuid;\n }\n}\n"
}
}