Skip to content

v1.3.7

Latest

Choose a tag to compare

@Neelpatel1604 Neelpatel1604 released this 28 May 21:19
89fedb7

Release Notes for v1.3.7

This release adds cursor pagination for documents.fetch_text_data, aligned with the Moorcheh Fetch Text Data API.

Improvements

Fetch Text Data pagination

client.documents.fetch_text_data (sync and async) now supports paginated listing of text and summary chunks in a text namespace.

  • Calls GET /v1/namespaces/{namespace_name}/documents/fetch-text-data with optional query params:
    • limit — items per page (1–100; omit for API default 100)
    • next_token — cursor from the previous response's pagination.next_token
  • Response includes pagination: limit, has_more, and next_token (null on the last page).
  • statistics and message describe the current page only, not the full namespace total.
  • Client-side validation: invalid limit values raise InvalidInputError before the request is sent.
  • New type TextDataPagination; FetchTextDataResponse includes pagination.
  • created_at and statistics timestamps documented as ISO 8601 strings or null, matching live API behavior.
  • See examples/09_fetch_text_data.py for a multi-page export loop.

Bug Fixes

  • None in this release.

Breaking / Behavioral Changes

None for resource migration

This release is additive on top of the v1.3.5+ resource-only MoorchehClient. Existing calls without limit or next_token behave as before (first page, API default page size).

Response shape

Responses may now include a pagination object. Code that assumed a single response contained all chunks should use pagination.has_more and next_token to walk remaining pages.

Documentation

Full Changelog

Full Changelog: https://github.com/moorcheh-ai/moorcheh-python-sdk/compare/v1.3.6..v1.3.7