Reads the full JSONL transcript, reconstructs the conversation chain via
parentUuid links, and returns user/assistant messages in
chronological order.
Examples
# \donttest{
sessions <- list_sessions(limit = 1L)
if (length(sessions) > 0) {
msgs <- get_session_messages(sessions[[1]]$session_id, limit = 5L)
length(msgs)
}
# }