Spaces:
Running
Running
Fix Styles
Browse files- mcp/tools.py +3 -0
- ui/templates/game_interface.html +1 -1
mcp/tools.py
CHANGED
|
@@ -75,6 +75,9 @@ def get_location(case_data, phone_number: str, timestamp: str = None) -> dict:
|
|
| 75 |
def get_footage(case_data, location: str, time_range: str = None) -> dict:
|
| 76 |
"""Query case database for camera footage."""
|
| 77 |
|
|
|
|
|
|
|
|
|
|
| 78 |
# Fuzzy match location keys
|
| 79 |
target_loc_key = None
|
| 80 |
footage_data = case_data.get("evidence", {}).get("footage_data", {})
|
|
|
|
| 75 |
def get_footage(case_data, location: str, time_range: str = None) -> dict:
|
| 76 |
"""Query case database for camera footage."""
|
| 77 |
|
| 78 |
+
if not location:
|
| 79 |
+
return {"error": "Camera location is required."}
|
| 80 |
+
|
| 81 |
# Fuzzy match location keys
|
| 82 |
target_loc_key = None
|
| 83 |
footage_data = case_data.get("evidence", {}).get("footage_data", {})
|
ui/templates/game_interface.html
CHANGED
|
@@ -25,7 +25,7 @@
|
|
| 25 |
</div>
|
| 26 |
|
| 27 |
<!-- AI Log Panel -->
|
| 28 |
-
<div id="ai-log-panel" style="display: none;
|
| 29 |
<div style="font-weight: bold; margin-bottom: 10px; border-bottom: 1px solid #0f0; padding-bottom: 5px;">π€ AI DETECTIVE LOG</div>
|
| 30 |
<div id="ai-log-content"></div>
|
| 31 |
</div>
|
|
|
|
| 25 |
</div>
|
| 26 |
|
| 27 |
<!-- AI Log Panel -->
|
| 28 |
+
<div id="ai-log-panel" style="display: none; position: absolute; top: 60px; bottom: 250px; left: 250px; right: 250px; background: rgba(0,0,0,0.95); padding: 20px; border: 2px solid #0f0; overflow-y: auto; font-family: 'Courier New', monospace; color: #0f0; z-index: 50;">
|
| 29 |
<div style="font-weight: bold; margin-bottom: 10px; border-bottom: 1px solid #0f0; padding-bottom: 5px;">π€ AI DETECTIVE LOG</div>
|
| 30 |
<div id="ai-log-content"></div>
|
| 31 |
</div>
|