Currently, when a photo is requested from the chat, Gladys only read photos saved within the last hour, without ever asking for a new photo.
With my “Karotz,” the “rabbit” only takes a photo after a capture, so the tool returned nothing, and the AI still responded « The photo has been taken » without displaying anything. With a classic camera (RTSP), Gladys already takes an image at regular intervals and keeps it.
Here are the logs and discussion:
2026-11-23T19:41:03.754948072Z 2026-11-23T20:41:03+0100 gateway.forwardMessageToAiChat.js:587 (Gateway.forwardMessageToAiChat) [AI_CHAT] Assistant turn iteration=2 tool_calls=1 tool_choice=auto tools=[camera_get_image] content=null
2026-11-23T19:41:03.755113466Z 2026-11-23T20:41:03+0100 gateway.forwardMessageToAiChat.js:677 (Gateway.forwardMessageToAiChat) [AI_CHAT] Running tool=camera_get_image
2026-11-23T19:41:03.761354311Z 2026-11-23T20:41:03+0100 gateway.forwardMessageToAiChat.js:689 (Gateway.forwardMessageToAiChat) [AI_CHAT] Tool finished tool=camera_get_image status=success resultLength=0
2026-11-23T19:41:08.369028696Z 2026-11-23T20:41:08+0100 gateway.forwardMessageToAiChat.js:587 (Gateway.forwardMessageToAiChat) [AI_CHAT] Assistant turn iteration=3 tool_calls=1 tool_choice=auto tools=[camera_get_image] content=null
2026-11-23T19:41:08.369271706Z 2026-11-23T20:41:08+0100 gateway.forwardMessageToAiChat.js:677 (Gateway.forwardMessageToAiChat) [AI_CHAT] Running tool=camera_get_image
2026-11-23T19:41:08.373106359Z 2026-11-23T20:41:08+0100 gateway.forwardMessageToAiChat.js:689 (Gateway.forwardMessageToAiChat) [AI_CHAT] Tool finished tool=camera_get_image status=success resultLength=0
2026-11-23T19:41:17.967157672Z 2026-11-23T20:41:17+0100 gateway.forwardMessageToAiChat.js:587 (Gateway.forwardMessageToAiChat) [AI_CHAT] Assistant turn iteration=4 tool_calls=1 tool_choice=auto tools=[camera_get_image] content=null
2026-11-23T19:41:17.967357060Z 2026-11-23T20:41:17+0100 gateway.forwardMessageToAiChat.js:677 (Gateway.forwardMessageToAiChat) [AI_CHAT] Running tool=camera_get_image
2026-11-23T19:41:17.971052845Z 2026-11-23T20:41:17+0100 gateway.forwardMessageToAiChat.js:689 (Gateway.forwardMessageToAiChat) [AI_CHAT] Tool finished tool=camera_get_image status=success resultLength=0
2026-11-23T19:41:25.550656510Z 2026-11-23T20:41:25+0100 gateway.forwardMessageToAiChat.js:587 (Gateway.forwardMessageToAiChat) [AI_CHAT] Assistant turn iteration=5 tool_calls=1 tool_choice=auto tools=[camera_get_image] content=null
2026-11-23T19:41:25.550969965Z 2026-11-23T20:41:25+0100 gateway.forwardMessageToAiChat.js:677 (Gateway.forwardMessageToAiChat) [AI_CHAT] Running tool=camera_get_image
2026-11-23T19:41:25.554503616Z 2026-11-23T20:41:25+0100 gateway.forwardMessageToAiChat.js:689 (Gateway.forwardMessageToAiChat) [AI_CHAT] Tool finished tool=camera_get_image status=success resultLength=0
2026-11-23T19:41:25.566488982Z 2026-11-23T20:41:25+0100 gateway.forwardMessageToAiChat.js:760 (Gateway.forwardMessageToAiChat) [AI_CHAT] Outcome toolIterations=5 imagesSent=0 shouldSendText=false answerLength=0 wasNoResponseSentinel=false isEmptyTurn=false
2026-11-23T19:41:25.566571999Z 2026-11-23T20:41:25+0100 gateway.forwardMessageToAiChat.js:780 (Gateway.forwardMessageToAiChat) [AI_CHAT] No reply sent to user: assistant had content but final answer is empty after processing
2026-11-23T19:41:25.566687687Z 2026-11-23T20:41:25+0100 gateway.forwardMessageToAiChat.js:804 (Gateway.forwardMessageToAiChat) [AI_CHAT] Completed answerLength=0 imagesSent=0
The ongoing modification will allow:
* **Live photo**: Gladys asks each camera in the room for a new photo, instead of just retrieving a stored image. This also works for cameras without a pre-loaded image, like the Karotz.
* **Fallback solution**: if a camera does not respond, Gladys sends its last recorded photo, provided it is less than an hour old.
* **Honest response**: if no photo is available, the AI states this instead of pretending it took a photo.
* **Respected privacy mode**: a disabled camera is never requested, and its last photo is not sent.
