pub struct Workflow { /* private fields */ }Expand description
A validated workflow graph.
Implementations§
Source§impl Workflow
impl Workflow
Sourcepub fn run(self: &Arc<Self>, ctx: InvocationContext) -> EventStream
pub fn run(self: &Arc<Self>, ctx: InvocationContext) -> EventStream
Namespaces a named, non-root-wrapper workflow’s node paths
under <parent>/<name>@1 and seeds START with the user content’s text.
Source§impl Workflow
impl Workflow
Sourcepub fn reconstruct_run_state(
&self,
session: &dyn Session,
invocation_id: &str,
) -> Result<Option<RunState>, WorkflowError>
pub fn reconstruct_run_state( &self, session: &dyn Session, invocation_id: &str, ) -> Result<Option<RunState>, WorkflowError>
Rebuilds the paused run from session history. Ok(None) means no interrupt or failure
history; a non-empty invocation_id scopes the scan to that invocation.
Auto Trait Implementations§
impl !RefUnwindSafe for Workflow
impl !UnwindSafe for Workflow
impl Forget for Workflow
impl Freeze for Workflow
impl Move for Workflow
impl Send for Workflow
impl Sync for Workflow
impl Unpin for Workflow
impl UnsafeUnpin for Workflow
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