MCPcopy Index your code
hub / github.com/AI45Lab/Code / with_root_id

Method with_root_id

core/src/orchestration/workflow.rs:146–149  ·  view source on GitHub ↗

Set the stable root id used to derive per-phase checkpoint keys. Supply a deterministic id (e.g. session-derived) for resume to work across runs; otherwise a random id is used and resume is effectively disabled.

(mut self, root_id: impl Into<String>)

Source from the content-addressed store, hash-verified

144 /// deterministic id (e.g. session-derived) for resume to work across runs;
145 /// otherwise a random id is used and resume is effectively disabled.
146 pub fn with_root_id(mut self, root_id: impl Into<String>) -> Self {
147 self.root_id = Some(root_id.into());
148 self
149 }
150
151 /// Finalize the [`Workflow`], creating its event channel.
152 pub fn build(self) -> Workflow {

Calls

no outgoing calls

Tested by

no test coverage detected