Explain why no images in sandbox search(). We might want to add show_image() back in the future.
This commit is contained in:
parent
c562c397f9
commit
52e93d08eb
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue