pub struct MapReduce {
pub mapper: AgentBuilder,
pub reducer: AgentBuilder,
pub concurrency: usize,
}Expand description
A map-reduce workflow node.
Fields§
§mapper: AgentBuilderThe mapper agent applied to each item.
reducer: AgentBuilderThe reducer agent that combines mapped results.
concurrency: usizeMaximum concurrency for the map phase.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapReduce
impl !RefUnwindSafe for MapReduce
impl Send for MapReduce
impl Sync for MapReduce
impl Unpin for MapReduce
impl !UnwindSafe for MapReduce
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