Skip to main content

read_context_dir

Function read_context_dir 

Source
pub fn read_context_dir(dir: &Path) -> Result<ContextContents, String>
Expand description

What the context directory dir holds: the header and messages of its conversation.jsonl and its harness session.

Reads with the runtime’s own rules — [parse_header] on line 1, [record_messages] for the messages, [read_entry] for the harness session — and writes nothing. A missing conversation.jsonl is no header and no messages. The Err is conversation.jsonl existing and not being readable, and names the path.