summaryrefslogtreecommitdiff
path: root/Omni/Agent/Worker.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-26 13:34:32 -0500
committerBen Sima <ben@bensima.com>2025-12-26 13:34:32 -0500
commit27d2e3b42d290e72f8ee5735fcd5c73dcaed4517 (patch)
treedbe31f28a638332e8abd5610bb80e816b2cf45f4 /Omni/Agent/Worker.hs
parent84397b5bb87071dacd82b192d1354382768eb54d (diff)
feat(kidcam): complete implementationusr/ben/kidcam
- Detector.py: YOLOv8-nano person detection - Streamer.py: GStreamer HLS video streaming - Notifier.py: Telegram bot notifications - Core.py: State machine orchestration - deploy.sh: Ubuntu deployment script - kidcam.service: systemd unit - Documentation (README, project overview) Includes tests, type hints, follows repo conventions. Fixed Worker.hs missing engineOnToolTrace (jr now builds). Added Python deps: opencv, ultralytics, python-telegram-bot. Amp-Thread-ID: https://ampcode.com/threads/T-019b5bc1-b00a-701f-ab4f-04738e8a733c Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'Omni/Agent/Worker.hs')
-rw-r--r--Omni/Agent/Worker.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Omni/Agent/Worker.hs b/Omni/Agent/Worker.hs
index d6afb73..3f47c72 100644
--- a/Omni/Agent/Worker.hs
+++ b/Omni/Agent/Worker.hs
@@ -336,7 +336,8 @@ runWithEngine worker repo task = do
let guardrailMsg = formatGuardrailResult guardrailResult
contentJson = TE.decodeUtf8 (BSL.toStrict (Aeson.encode guardrailResult))
sayLog <| "[guardrail] " <> guardrailMsg
- logSystemEvent "Guardrail" contentJson
+ logSystemEvent "Guardrail" contentJson,
+ Engine.engineOnToolTrace = \_ _ _ _ -> pure Nothing
}
-- Build Agent config with guardrails (scale cost by complexity)