Skip to main content

history_from_checkpoint

Function history_from_checkpoint 

Source
pub fn history_from_checkpoint(checkpoint: &Checkpoint) -> Result<Vec<Message>>
Expand description

Convert a checkpoint’s recorded messages into typed conversation history.

This is what seeds a resumed run, so a malformed entry is an error: a run that silently starts with no history is indistinguishable from a fresh run.

§Errors

Returns an error when any recorded message cannot be deserialized.