pub struct FanOutConfig {
pub worker_agent: Option<String>,
pub worker_stage: Option<String>,
pub worker_query: Option<String>,
pub merge_stage: Option<String>,
pub max_workers: usize,
pub on_worker_failure: WorkerFailurePolicy,
pub split_prompt: String,
}Expand description
Configuration for a StageMode::FanOut stage.
Exactly one of worker_agent / worker_stage / worker_query selects the
worker’s agent type (validated when the blueprint’s graph is checked).
Fields§
§worker_agent: Option<String>A separate registered/installed blueprint run as the worker agent type.
worker_stage: Option<String>A stage in this blueprint (self-as-agent-type); must be marked
allow_as_worker = true.
worker_query: Option<String>Discovery hint matched against installed agent types.
merge_stage: Option<String>Optional stage that reconciles worker results before transitioning.
max_workers: usizeMaximum number of workers running concurrently.
on_worker_failure: WorkerFailurePolicyHow to handle worker failures.
split_prompt: StringPrompt that produces the JSON array of work items (one per worker).
Trait Implementations§
Source§impl Clone for FanOutConfig
impl Clone for FanOutConfig
Source§fn clone(&self) -> FanOutConfig
fn clone(&self) -> FanOutConfig
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 moreSource§impl Debug for FanOutConfig
impl Debug for FanOutConfig
Source§impl<'de> Deserialize<'de> for FanOutConfig
impl<'de> Deserialize<'de> for FanOutConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FanOutConfig
Source§impl PartialEq for FanOutConfig
impl PartialEq for FanOutConfig
Source§impl Serialize for FanOutConfig
impl Serialize for FanOutConfig
impl StructuralPartialEq for FanOutConfig
Auto Trait Implementations§
impl Freeze for FanOutConfig
impl RefUnwindSafe for FanOutConfig
impl Send for FanOutConfig
impl Sync for FanOutConfig
impl Unpin for FanOutConfig
impl UnsafeUnpin for FanOutConfig
impl UnwindSafe for FanOutConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.