load_transcript
Parses one scenario’s transcript.ndjson.
Function in muse_code
Signature
Section titled “Signature”load_transcript(scenario_dir: Path) -> Transcript
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
scenario_dir |
The scenario directory. |
Returns
Section titled “Returns”The parsed transcript, fold not yet run.
Raises
Section titled “Raises”| Raises | Description |
|---|---|
ValueError |
A line is not the {"dir","raw"} shape or its raw is not one standalone JSON object (the format contract, schema/msp/transcripts/README.md). |
Source
clients/sdk-py/src/muse_code/replay.py:96