{
"event": "PostToolUse",
"tool_name": "Read",
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/scripts\/pipeline\/analyzers\/entity_extractor.py",
"content": "\"\"\"\nEntity Extraction - Extract and store entities from text.\n\"\"\"\n\nimport json\nimport re\nimport sys\nimport time\nimport unicodedata\n\nimport requests\n\nsys.path.insert(0, \"\/var\/www\/scripts\/pipeline\")\n\nfrom config import ANTHROPIC_MODEL, OLLAMA_HOST\nfrom constants import LLM_MAX_TOKENS, LLM_TIMEOUT, MS_PER_SECOND, PROMPT_TEXT_LIMIT\nfrom db import db\nfrom protokoll import protokoll\n\n\ndef _build_prompt_from_yaml(yaml_content: str, text: str) -> str:\n \"\"\"Pass YAML prompt directly to LLM with text placeholder replaced.\"\"\"\n return yaml_content.replace(\"{{TEXT}}\", text[:PROMPT_TEXT_LIMIT])\n\n\ndef normalize_name(name: str) -> str:\n \"\"\"Generate canonical_name from entity name.\n\n Rules:\n - Lowercase",
"numLines": 30,
"startLine": 1,
"totalLines": 504
}
}
}