Skip to main content

read

Function read 

Source
pub fn read(
    engine: &Engine,
    container: &str,
    harness: HarnessKind,
) -> Result<Vec<Conversation>, EngineError>
Expand description

Reads harness’s conversations in the workspace out of container, newest first.

A container that is not there has had no conversations, and nothing is created for the question. One that is stopped is started and left running: the answer is read to open one of the conversations in it, and that is a tab in the same container.

This runs engine commands and waits for them, so it belongs on a background thread.

§Errors

When the engine cannot be started, or refuses to start the container or to run the script.