{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/SendChatMessageUseCase.php",
"limit": 50
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/SendChatMessageUseCase.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace UseCases\\Chat;\n\n\/\/ @responsibility: Orchestriert Chat-Nachrichten (Validierung, AI-Antwort, Speicherung)\n\nuse Domain\\Repository\\ChatMessageRepositoryInterface;\nuse Domain\\Repository\\ChatSessionRepositoryInterface;\nuse Infrastructure\\AI\\ChatService;\nuse Infrastructure\\AI\\ContentQualityValidator;\nuse Infrastructure\\Persistence\\ContentConfigRepository;\n\nclass SendChatMessageUseCase\n{\n public function __construct(\n private ChatService $chatService,\n private ChatSessionRepositoryInterface $sessionRepo,\n private ChatMessageRepositoryInterface $messageRepo,\n private ContentConfigRepository $configRepo,\n private ContentQualityValidator $qualityValidator\n ) {\n }\n\n \/**\n * Execute the use case\n *\n * @param string $sessionUuid Session UUID\n * @param string $message User message text\n * @param string $model AI model identifier\n * @param array<string> $collections Qdrant collections to search\n * @param int $contextLimit Number of context chunks\n * @param int $authorProfileId Author profile ID (0 = none)\n * @param int $systemPromptId System prompt config ID\n * @param float $temperature AI temperature setting\n * @param int $maxTokens Max tokens for response\n * @param int $structureId Output structure ID (0 = frei)\n * @param bool $qualityCheck Run quality validation on response\n * @return ChatResponse\n *\/\n public function execute(\n string $sessionUuid,\n string $message,\n string $model,\n array $collections = ['documents'],\n int $contextLimit = 5,\n int $authorProfileId = 0,\n int $systemPromptId = 1,\n float $temperature = 0.7,",
"numLines": 50,
"startLine": 1,
"totalLines": 361
}
}
}