pub struct WorkflowOptions {
pub root_wrapper: bool,
pub max_concurrency: Option<usize>,
pub state_schema: Option<Value>,
}Expand description
Construction-time settings for Workflow::new.
Zero values mean “no override / use engine defaults”.
Fields§
§root_wrapper: boolMarks the workflow as a synthetic single-node wrapper created by the runner to drive a standalone agent.
max_concurrency: Option<usize>Caps how many graph-scheduled nodes may run concurrently; None or Some(0) = unlimited.
state_schema: Option<Value>The workflow’s state schema.
Implementations§
Source§impl WorkflowOptions
impl WorkflowOptions
Sourcepub fn with_root_wrapper(self) -> Self
pub fn with_root_wrapper(self) -> Self
Marks this workflow as a synthetic single-node wrapper created by the runner to drive a standalone agent. A root wrapper’s run does not stamp a parent namespace prefix onto root contexts.
Sourcepub fn with_max_concurrency(self, n: usize) -> Self
pub fn with_max_concurrency(self, n: usize) -> Self
Caps how many graph-scheduled nodes may run concurrently in a single run; nodes beyond the cap queue as pending. 0 disables the cap (unlimited). Does not apply to dynamic sub-nodes invoked via RunNode.
Sourcepub fn with_state_schema(self, s: Value) -> Self
pub fn with_state_schema(self, s: Value) -> Self
Sets the state schema for the workflow.
Trait Implementations§
Source§impl Clone for WorkflowOptions
impl Clone for WorkflowOptions
Auto Trait Implementations§
impl Forget for WorkflowOptions
impl Freeze for WorkflowOptions
impl Move for WorkflowOptions
impl RefUnwindSafe for WorkflowOptions
impl Send for WorkflowOptions
impl Sync for WorkflowOptions
impl Unpin for WorkflowOptions
impl UnsafeUnpin for WorkflowOptions
impl UnwindSafe for WorkflowOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more