Skip to main content

Module run

Module run 

Source

Modules§

json_events
harn run --json: NDJSON event-stream emitter.

Structs§

RunAttestationOptions
RunInterruptTokens
RunJsonOptions
JSON event-stream configuration for --json runs.
RunOutcome
Captured outcome of an in-process execute_run invocation. Tests use this instead of spawning the harn binary; the binary entry point translates it into real stdout/stderr writes + process::exit.
RunProfileOptions
Opt-in profiling. When text is true the run prints a categorical breakdown to stderr after execution; when json_path is set the same rollup is serialized to that path. Either flag enables span tracing (i.e. harn_vm::tracing::set_tracing_enabled(true)).

Enums§

CliLlmMockMode

Functions§

execute_explain_cost
execute_run
In-process equivalent of run_file_with_skill_dirs. Returns the captured stdout, stderr, and what exit code the binary entry would have used, instead of writing to real stdout/stderr or calling process::exit.
execute_run_json
execute_run variant for --json mode. Returns once the run is complete; the NDJSON event stream — including the terminal result or error event — has already been written to out and flushed. out must be Send because the run-event sink may be called from any worker thread the VM spawns.
install_cli_llm_mock_mode
persist_cli_llm_mock_recording