pub enum CompositionFunction {
Identity,
Concatenate,
Sequence,
ObjectMerge,
LastOnly,
Custom(String),
Reduce {
operation: String,
},
}Expand description
How to combine results from subtasks
Variants§
Identity
Single result, no composition needed
Concatenate
Concatenate all results
Sequence
Merge as a sequence
ObjectMerge
Combine into an object with subtask IDs as keys
LastOnly
Take the last result only
Custom(String)
Custom composition (described as a prompt)
Reduce
Reduce with an operation
Implementations§
Source§impl CompositionFunction
impl CompositionFunction
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a description of this composition function
Trait Implementations§
Source§impl Clone for CompositionFunction
impl Clone for CompositionFunction
Source§fn clone(&self) -> CompositionFunction
fn clone(&self) -> CompositionFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompositionFunction
impl RefUnwindSafe for CompositionFunction
impl Send for CompositionFunction
impl Sync for CompositionFunction
impl Unpin for CompositionFunction
impl UnsafeUnpin for CompositionFunction
impl UnwindSafe for CompositionFunction
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