{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ChatController.php:249: $result = $this->updateSessionUseCase->updateSystemPrompt($session->getId() ?? 0, $_POST['system_prompt'] ?? '');\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ChatController.php:384: 'systemPromptId' => (int) ($_POST['system_prompt_id'] ?? $session->getSystemPromptId() ?? 1),\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ConfigController.php:18: private const TYPES = ['author_profile', 'structure', 'organization', 'contract', 'rule', 'system_prompt', 'critic'];\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ConfigController.php:25: 'system_prompt' => 'System-Prompt',\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php:66: 'defaultSystemPromptId' => $lastSettings['system_prompt_id'],\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php:116: 'system_prompt_id' => $command->systemPromptId,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Config\/ManageConfigUseCase.php:13: private const VALID_TYPES = ['author_profile', 'structure', 'organization', 'contract', 'rule', 'system_prompt', 'critic'];\n\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Command\/SendChatMessageCommand.php:46: systemPromptId: (int) ($data['system_prompt_id'] ?? 1),\n\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Command\/CreateContentOrderCommand.php:61: systemPromptId: !empty($data['system_prompt_id']) ? (int) $data['system_prompt_id'] : null,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/UpdateChatSessionUseCase.php:168: VALUES ('chat', 'system_prompt_change', :params, 'logged', NOW())\"\n\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/ManageChatSessionsUseCase.php:272: VALUES ('chat', 'system_prompt_change', :params, 'logged', NOW())\"\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/index.php:10:$currentPromptId = (int) ($session['system_prompt_id'] ?? 1);\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/index.php:164: <input type=\"hidden\" name=\"system_prompt_id\" id=\"hiddenSystemPrompt\" value=\"<?= $currentPromptId ?>\">\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/partials\/_config_panel.php:110: <button type=\"button\" class=\"config-panel__toggle\" data-config-type=\"system_prompt\" aria-expanded=\"false\" aria-controls=\"systemPromptEditor\">✎<\/button>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/partials\/_config_panel.php:115: <button type=\"button\" class=\"config-panel__save\" data-config-type=\"system_prompt\">Speichern<\/button>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/partials\/system-prompt-modal.php:24: <label for=\"system_prompt\">Eigener System-Prompt:<\/label>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/partials\/system-prompt-modal.php:25: <textarea name=\"system_prompt\"\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/partials\/system-prompt-modal.php:26: id=\"system_prompt\"\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/config\/index.php:110:.badge--type-system_prompt { background: #ec4899; color: white; }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/config\/show.php:150:.badge--type-system_prompt { background: #ec4899; color: white; }\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/edit.php:13:$orderSystemPromptId = $order['system_prompt_id'] ?? null;\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/edit.php:97: <label for=\"system_prompt_id\">System Prompt<\/label>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/edit.php:99: <select id=\"system_prompt_id\" name=\"system_prompt_id\" class=\"form-select\">\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/edit.php:105: <button type=\"button\" class=\"inline-edit-toggle\" data-config-type=\"system_prompt\" data-select-id=\"system_prompt_id\" aria-label=\"Bearbeiten\">✎<\/button>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/edit.php:111: <button type=\"button\" class=\"inline-editor__save\" data-config-type=\"system_prompt\">Speichern<\/button>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/edit.php:299: system_prompt: {\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/new.php:82: <label for=\"system_prompt_id\">System Prompt<\/label>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/new.php:84: <select id=\"system_prompt_id\" name=\"system_prompt_id\" class=\"form-select\">\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/new.php:90: <button type=\"button\" class=\"inline-edit-toggle\" data-config-type=\"system_prompt\" data-select-id=\"system_prompt_id\" aria-label=\"Bearbeiten\">✎<\/button>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/new.php:96: <button type=\"button\" class=\"inline-editor__save\" data-config-type=\"system_prompt\">Speichern<\/button>\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/new.php:289: system_prompt: { editorId: 'systemPromptEditor', textareaId: 'systemPromptContent', versionId: 'systemPromptVersion' },\n\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/new.php:332: const selectId = configType === 'system_prompt' ? 'system_prompt_id' : 'author_profile_id';\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentRepositoryInterface.php:23: * @return array{model: string, collections: array<string>, context_limit: int, author_profile_id: int|null, contract_id: int|null, structure_id: int|null, temperature: float, max_tokens: int, system_prompt_id: int|null, selected_critics: array<int>, quality_check: bool}\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/ContentOrderRepositoryInterface.php:23: * @return array{model: string, collections: array<string>, context_limit: int, author_profile_id: int|null, contract_id: int|null, structure_id: int|null, temperature: float, max_tokens: int, system_prompt_id: int|null, selected_critics: array<int>, quality_check: bool}\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Factory\/ChatSessionFactory.php:54: systemPromptId: isset($data['system_prompt_id']) ? (int) $data['system_prompt_id'] : null,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Factory\/ChatSessionFactory.php:103: 'system_prompt_id' => $session->getSystemPromptId(),\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Factory\/ChatMessageFactory.php:59: isset($data['system_prompt_id']) ? (int) $data['system_prompt_id'] : null,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Entity\/ChatMessage.php:293: 'system_prompt_id' => $this->systemPromptId,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ChatSessionRepository.php:70: system_prompt_id = ?, updated_at = NOW()\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ChatSessionRepository.php:147: $stmt = $this->pdo->prepare('UPDATE chat_sessions SET system_prompt = ? WHERE id = ?');\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php:163: WHERE type = 'system_prompt' AND status = 'active'\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ChatMessageRepository.php:45: start_microtime, end_microtime, author_profile_id, system_prompt_id, collections, context_limit, chunks_used, llm_request_id)\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ChatMessageRepository.php:59: $data['system_prompt_id'],\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ChatMessageRepository.php:92: start_microtime, end_microtime, author_profile_id, system_prompt_id, collections, context_limit, llm_request_id)\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:29: sp.name as system_prompt_name,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:35: LEFT JOIN content_config sp ON co.system_prompt_id = sp.id AND sp.type = \"system_prompt\"\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:70: sp.name as system_prompt_name, sp.content as system_prompt_config\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:75: LEFT JOIN content_config sp ON co.system_prompt_id = sp.id AND sp.type = \"system_prompt\"\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:87: * @return array{model: string, collections: array<string>, context_limit: int, author_profile_id: int|null, contract_id: int|null, structure_id: int|null, temperature: float, max_tokens: int, system_prompt_id: int|null, selected_critics: array<int>, quality_check: bool}\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:93: temperature, max_tokens, system_prompt_id, selected_critics, quality_check\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:110: 'system_prompt_id' => null,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:125: 'system_prompt_id' => $row['system_prompt_id'] !== null ? (int) $row['system_prompt_id'] : null,\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentOrderRepository.php:136: temperature, max_tokens, system_prompt_id, selected_critics, quality_check, status)\n\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/Con... [TRUNCATED-cfb3c6a4ccb1fe81]",
"numLines": 59
}
}