haiku.rag/haiku_rag_slim/haiku/rag/capabilities
Yiorgis Gozadinos feaca386d3
Document that file objects cannot be iterated
Monty 0.0.19 supports open() and with blocks, but a file object is still not
iterable. See pydantic/monty#490, which is still open. The instructions now
state the limitation in three places and give the alternative next to each
one: readlines() or read().split("\n").

Replace chr(10) with "\n" in the prose and in the example. Both work on
0.0.19, and chr(10) implies that the escape is broken.

Add a test that pins the limitation. The test fails when Monty gains
iteration support, which is the signal to relax the instructions.
2026-07-28 19:10:53 +03:00
..
instructions Document that file objects cannot be iterated 2026-07-28 19:10:53 +03:00
__init__.py replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
_base.py Report tool failures with ToolFailed 2026-07-27 18:26:42 +03:00
_tools.py replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
analysis.py Bump pydantic-monty to 0.0.19 2026-07-28 19:10:53 +03:00
rag.py Make the capability image-attachment gate a vision bool 2026-07-24 16:00:01 +03:00