{
"event": "PostToolUse",
"tool_name": "Read",
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/scripts\/pipeline\/generate_semantics.py",
"content": "\n # Debug output\n if not response_text:\n print(\" Empty response from Ollama\")\n return None\n\n # Try to extract JSON from the response\n result = extract_json_from_text(response_text)\n\n if not result:\n # If JSON extraction failed, try to create a basic semantic from the text\n print(f\" Could not parse JSON, raw: {response_text[:100]}...\")\n return None\n\n return result\n except requests.exceptions.Timeout:\n print(\" Timeout after 180s\")\n return None\n except Exception as e:\n print(f\" Error: {e}\")",
"numLines": 20,
"startLine": 125,
"totalLines": 230
}
}
}