PageIndex/pageindex/backend
mountain 56fc3bf7bb fix: return actionable error for malformed page ranges in local tool
The local get_page_content agent tool only converted DocumentNotFoundError
into a JSON error; a malformed page spec ("all", "5-") let parse_pages'
ValueError surface as the agent SDK's generic non-fatal tool-failure text
("An error occurred... invalid literal for int()"), which the model can't
act on. Catch (ValueError, AttributeError) and return the same actionable
"Invalid pages format: ... Use '5-7', '3,8', or '12'" message the legacy
retrieval tool already gives, so the model can retry with a valid range.
2026-07-09 19:22:04 +08:00
..
__init__.py feat: add PageIndex SDK with local/cloud dual-mode support (#207) 2026-04-08 20:21:58 +08:00
cloud.py fix: reject trailing newline in collection-name validation 2026-07-09 19:12:56 +08:00
local.py fix: return actionable error for malformed page ranges in local tool 2026-07-09 19:22:04 +08:00
protocol.py refactor(sdk): typed returns, protocol contract, parser layering 2026-07-07 12:15:34 +08:00