haiku.rag/haiku_rag_slim/haiku/rag/tools
Yiorgis Gozadinos 5653e876a8
Return search results as agent text, images and structured content
search_documents and search_documents_by_image return a ToolResult: the
format_for_agent rendering with rank, Document ID and Collection so the
text alone drives the document tools; one ImageContent per distinct
picture, labelled with its result; and the SearchResult list without
image_data as structured content. format_for_agent gains an opt-in
include_document_id, so the capabilities' rendering is unchanged.
collect_pictures is the one place pictures are deduplicated and
validated for both wire formats.

Refs #599
2026-09-04 13:00:15 +03:00
..
__init__.py Select documents to filter by id, not by displayed name 2026-08-24 15:27:59 +03:00
context.py Simplify tools/ — remove AG-UI state machinery, keep core toolsets 2026-02-20 16:36:48 +02:00
document.py Navigate documents by outline and section from the MCP server 2026-09-04 13:00:15 +03:00
filters.py Finish the comment pass, and escape document fields everywhere Rich renders 2026-08-28 15:34:47 +03:00
search.py Return search results as agent text, images and structured content 2026-09-04 13:00:15 +03:00