{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/scripts\/pipeline\/step_entity_enrich.py",
"offset": 110,
"limit": 35
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/scripts\/pipeline\/step_entity_enrich.py",
"content": "3. Falls relevant: Praktische Anwendung oder Beispiele\n\nSchreibe NUR die Beschreibung (3-5 Sätze), keine Überschriften oder Formatierung.\nSprache: Deutsch\"\"\"\n\n return self.prompt_template\n\n def _get_entities_to_enrich(self, limit=100):\n \"\"\"Get entities with short or missing descriptions.\"\"\"\n cursor = db.execute(\"\"\"\n SELECT id, name, type, description\n FROM entities\n WHERE description IS NULL\n OR CHAR_LENGTH(description) < %s\n ORDER BY id\n LIMIT %s\n \"\"\", (MIN_DESCRIPTION_LENGTH, limit))\n entities = cursor.fetchall()\n cursor.close()\n return entities\n\n def _get_entity_context(self, entity_id, max_chunks=3):\n \"\"\"Get context from chunks where this entity appears.\"\"\"\n cursor = db.execute(\"\"\"\n SELECT c.content",
"numLines": 25,
"startLine": 65,
"totalLines": 235
}
}
}