chat$get_turns() |> ellmer::contents_record()
Run `rlang::last_trace()` to see where the error occurred.
Error in `ellmer::contents_record()`:
! Cannot record or replay a list.
ℹ Only `ellmer::Content` or `ellmer::Turn` classes or subclasses are currently supported.
But it'd be very convenient to be able to round trip
first <- chat$get_turns() |> contents_record()
chat2$set_turns(contents_replay(first))