pub async fn run_recorded<State, Update>(
graph: &CompiledGraph<State, Update>,
thread: Option<&str>,
state: State,
) -> Result<GraphRun<State>>Expand description
Runs graph to completion with an event recorder wired in and bundles the
result into a GraphRun.
When thread is Some, the run executes under that thread id (so a
configured checkpointer persists boundary checkpoints) and the thread’s
checkpoint history is collected into GraphRun::history; when None, the
run executes without a thread (no checkpoints, empty history). The graph is
cloned so the caller’s instance is untouched.