{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/SendChatMessageUseCase.php",
"offset": 245,
"limit": 60
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/SendChatMessageUseCase.php",
"content": " \/**\n * Get structure formatting prompt\n *\/\n private function getStructurePrompt(int $structureId): ?string\n {\n if ($structureId === 0) {\n return null;\n }\n\n $structure = $this->configRepo->findByIdAndType($structureId, 'structure');\n if ($structure === null) {\n return null;\n }\n\n $name = $structure['name'] ?? 'Struktur';\n $config = json_decode($structure['content'] ?? '{}', true);\n\n if ($config === null) {\n return null;\n }\n\n $parts = [\"Formatiere deine Antwort als: {$name}\"];\n\n \/\/ Add structure-specific instructions\n if (isset($config['sections']) && is_array($config['sections'])) {\n $parts[] = 'Struktur: ' . implode(' → ', $config['sections']);\n }\n\n if (isset($config['max_chars'])) {\n $parts[] = 'Maximale Länge: ' . $config['max_chars'] . ' Zeichen';\n }\n\n if (isset($config['min_words'])) {\n $parts[] = 'Mindestens ' . $config['min_words'] . ' Wörter';\n }\n\n if (isset($config['max_words'])) {\n $parts[] = 'Maximal ' . $config['max_words'] . ' Wörter';\n }\n\n if (isset($config['format']) && $config['format'] === 'qa') {\n $min = $config['min_questions'] ?? 3;\n $parts[] = \"Formatiere als FAQ mit mindestens {$min} Frage-Antwort-Paaren\";\n }\n\n if (isset($config['hashtags']) && $config['hashtags']) {\n $parts[] = 'Füge passende Hashtags hinzu';\n }\n\n if (isset($config['cta']) && $config['cta']) {\n $parts[] = 'Schließe mit einem Call-to-Action ab';\n }\n\n return implode('. ', $parts) . '.';\n }\n}\n",
"numLines": 57,
"startLine": 245,
"totalLines": 301
}
}
}