pub enum WorkflowMode {
ReAct,
Batch,
Chain,
PlanAndExecute,
}Expand description
Workflow execution mode enumeration
Defines the strategy for processing user requests and executing skills.
Variantsยง
ReAct
ReAct mode: Think โ Act โ Observe loop
Each skill execution is followed by LLM decision for next step. Best for: Open-ended tasks, dynamic decision making, error recovery LLM calls: 1 per skill + 1 for final response
Batch
Batch mode: Execute multiple independent skills in parallel
Skills must have no dependencies on each otherโs results. Best for: Independent operations, bulk processing LLM calls: 1 (generates batch plan)
Chain
Chain mode: Sequential execution with variable passing
Each skillโs output can be passed as input to the next skill. Best for: Linear pipelines, data transformation chains LLM calls: 1 (generates chain)
PlanAndExecute
Plan-and-Execute mode: One-time planning with full workflow
Supports conditionals, variable references, and error handling. Best for: Complex workflows, conditional logic, deterministic tasks LLM calls: 1 (generates plan) + optional for dynamic decisions
Trait Implementationsยง
Sourceยงimpl Clone for WorkflowMode
impl Clone for WorkflowMode
Sourceยงfn clone(&self) -> WorkflowMode
fn clone(&self) -> WorkflowMode
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for WorkflowMode
impl Debug for WorkflowMode
Sourceยงimpl Default for WorkflowMode
impl Default for WorkflowMode
Sourceยงimpl Display for WorkflowMode
impl Display for WorkflowMode
Sourceยงimpl PartialEq for WorkflowMode
impl PartialEq for WorkflowMode
Sourceยงfn eq(&self, other: &WorkflowMode) -> bool
fn eq(&self, other: &WorkflowMode) -> bool
self and other values to be equal, and is used by ==.impl Copy for WorkflowMode
impl Eq for WorkflowMode
impl StructuralPartialEq for WorkflowMode
Auto Trait Implementationsยง
impl Freeze for WorkflowMode
impl RefUnwindSafe for WorkflowMode
impl Send for WorkflowMode
impl Sync for WorkflowMode
impl Unpin for WorkflowMode
impl UnsafeUnpin for WorkflowMode
impl UnwindSafe for WorkflowMode
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงimpl<T> Pointable for T
impl<T> Pointable for T
Sourceยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Sourceยงimpl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Sourceยงfn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().