{
"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 with default settings\n\nuse Domain\\Repository\\ChatSessionRepositoryInterface;\nuse Domain\\Service\\ModelRegistryInterface;\n\nfinal class CreateChatSessionUseCase implements CreateChatSessionUseCaseInterface\n{\n public function __construct(\n private ChatSessionRepositoryInterface $sessionRepo,\n private ModelRegistryInterface $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"
}
}
{
"tool_response": {
"type": "create",
"filePath": "\/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 with default settings\n\nuse Domain\\Repository\\ChatSessionRepositoryInterface;\nuse Domain\\Service\\ModelRegistryInterface;\n\nfinal class CreateChatSessionUseCase implements CreateChatSessionUseCaseInterface\n{\n public function __construct(\n private ChatSessionRepositoryInterface $sessionRepo,\n private ModelRegistryInterface $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",
"structuredPatch": [],
"originalFile": null
}
}