OptionalbeforePagination direction flag.
true -> fetch newer messages (back before history) false -> fetch older messages (back to older history)
OptionalidCursor identifier. Must be a valid UUID referencing an existing message. Defines the starting point for pagination.
HistoryMessageCursorRequest represents a cursor-based pagination request for retrieving messages relative to a specific message ID.
This request is used in keyset pagination, where the
idfield acts as a cursor pointing to a reference message in the history. The server returns messages either before or after this cursor depending on thebeforeflag.Pagination semantics:
idmust be a valid UUID of an existing message.beforeflag controls the direction of traversal in the message history.Direction behavior:
before = true: Fetch messages that come before the given message in history (i.e., older messages).
before = false: Fetch messages that come after the given message (i.e., newer messages, moving toward the present).
Notes: