Skip to content

v0.2.4

Choose a tag to compare

@ajeetsk ajeetsk released this 24 Nov 17:13
· 2 commits to main since this release

Pagination fields now survive reduction (#9, reported in the feedback thread).

  • When a result is over budget, the reducer rebuilds it and used to keep only the source's total. Cursors and next-page links were lost, so the model could not ask for more.
  • The source's pagination fields are now found by name anywhere in the response around the items: next_cursor, response_metadata.next_cursor, paging.next.after, pageInfo.endCursor, nextRecordsUrl, has_more, links.next and similar.
  • Your code always gets them on ReducedResult.paging.
  • The model gets them in _meta.source_paging only when every item of the page is included. A cursor jumps past the whole page, so following it from a partial page would skip the items left out; in that case the existing warning asks for a narrower call instead.
  • New Messages.paging text, configurable like the others.

Tested with Claude Opus 5.5 on a three-page source: it followed the cursor through every page and listed all 30 items, including when the first page arrived partial and it had to narrow the call first. Without source_paging it stopped at 10.