v1
Assistant Conversations
assistant-conversations

List Conversations

Changed on

§2.1: this owner's rows in the session shop, not archived, ordered by last_turn_at desc nulls last, id desc -- a proper keyset cursor (over-fetch limit+1, slice), not the simplified created_at < fallback user_notifications_repository.py's own docstring admits is "close-enough", not actually correct.

JEEVY-667 CV3-2 HOLD must-fix 3 (A5): the OLD cursor had no id tiebreak (dropping rows that share a last_turn_at) and encoded a NULL last_turn_at (a brand-new, empty conversation -- CV4's create-on-send makes exactly these) as the literal string "None|<id>", which then hit a timestamptz column's lt cast and 500'd. The fix: NULLS-LAST ordering (nullsfirst=False) with an id tiebreak, and a cursor whose keyset condition for a NULL boundary is its own branch (last_turn_at IS NULL AND id < cursor_ id), never run through the non-null branch's string comparison.

get/api/v1/assistant/conversations

Request

  • Base URL
    https://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Query parameters

cursor, string nullable
limit, integer

Response

Successful Response

ConversationListResponse required
items, ConversationListItem[] required
next_cursor, string nullable

Changes