From 52e93d08eb21574f61d93ea8ebde5d9bc2ff9f97 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Mon, 18 May 2026 14:27:24 +0300 Subject: [PATCH] Explain why no images in sandbox search(). We might want to add show_image() back in the future. --- haiku_rag_slim/haiku/rag/agents/analysis/sandbox.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/haiku_rag_slim/haiku/rag/agents/analysis/sandbox.py b/haiku_rag_slim/haiku/rag/agents/analysis/sandbox.py index 89e0e48d..060c5dbc 100644 --- a/haiku_rag_slim/haiku/rag/agents/analysis/sandbox.py +++ b/haiku_rag_slim/haiku/rag/agents/analysis/sandbox.py @@ -136,6 +136,11 @@ class Sandbox: context = self._context async def search(query: str, limit: int = 10) -> list[dict[str, Any]]: + # Picture bytes are deliberately not attached to in-code search + # results: the Monty interpreter has no PIL/base64/hashlib, so the + # agent's Python can't do anything with them. The driving model + # gets figures through the top-level `search` tool when the + # question is visual; in-code search is for structural work. from haiku.rag.client import HaikuRAG async with HaikuRAG(db_path, config=config, read_only=True) as rag: