Skip to main content

load_transcript_messages

Function load_transcript_messages 

Source
pub fn load_transcript_messages(
    path: &Path,
) -> Result<Vec<MessageParam>, SError>
Expand description

Deserialize a transcript file into a sequence of message parameters.

The file must be a version-1 transcript snapshot written by the session runtime.

ยงErrors

Returns an error when the file cannot be read, is not valid JSON, or has an unsupported transcript version.