opencode/messages

Types

MessageOrderOption = enum
  orderAsc = "asc", orderDesc = "desc"

Procs

proc getApiSessionSessionIDMessage(client: OpencodeClient; sessionID: string;
                                   limit: float64 = default(float64);
                                   order: set[MessageOrderOption] = {};
                                   cursor: string = default(string)): Future[
    SessionMessagesResponse] {....stackTrace: false, raises: [Exception,
    ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError,
    IOError, ProtocolError, OpenParserJsonError, OpencodeClientError],
                               tags: [RootEffect, ReadIOEffect, TimeEffect],
                               forbids: [].}
Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.