pub struct WorkflowRun {Show 15 fields
pub workflow_type: WorkflowType,
pub prompt: String,
pub agents: Vec<RunAgent>,
pub stage_index: usize,
pub graph: Option<GraphRun>,
pub generation: u64,
pub individual_mode: bool,
pub mode_revision: u64,
pub status: RunStatus,
pub completions: BTreeMap<u64, CompletionSignal>,
pub rounds: BTreeMap<String, u8>,
pub incoming: BTreeMap<u64, String>,
pub assignments: BTreeMap<u64, Assignment>,
pub traces: Vec<WorkflowTrace>,
pub message: Option<String>,
}Expand description
Serializable run state. A run pins both its type reference and definition. Processes and completion mailboxes are deliberately absent; restoring an active run interrupts it.
Fields§
§workflow_type: WorkflowType§prompt: StringThe task. Empty until the first stage reports it when the run starts without one.
agents: Vec<RunAgent>§stage_index: usize§graph: Option<GraphRun>§generation: u64Changes on every stage entry, including loop backs. UI actions must match this value.
individual_mode: boolPrivate follow-ups never start another workflow cycle. Missing in older records.
mode_revision: u64Invalidates input queued before a mode change without changing stage generations.
status: RunStatus§completions: BTreeMap<u64, CompletionSignal>§rounds: BTreeMap<String, u8>§incoming: BTreeMap<u64, String>§assignments: BTreeMap<u64, Assignment>Assignment ownership remains in force when a review loop revisits a worker.
traces: Vec<WorkflowTrace>§message: Option<String>Implementations§
Source§impl WorkflowRun
impl WorkflowRun
pub fn stage_name(&self) -> &str
pub fn stage_id(&self) -> &str
pub fn assignment_generation(&self, agent_id: u64) -> u64
Source§impl WorkflowRun
impl WorkflowRun
pub fn reference(&self) -> WorkflowTypeRef
pub fn active_agents(&self) -> Vec<&RunAgent>
pub fn is_reviewer(&self, agent_id: u64) -> bool
Sourcepub fn assignment_targets(&self, agent_id: u64) -> Vec<&RunAgent>
pub fn assignment_targets(&self, agent_id: u64) -> Vec<&RunAgent>
Receivers whose assignments must be supplied by this participant before it can finish.
Sourcepub fn needs_task(&self) -> bool
pub fn needs_task(&self) -> bool
Whether the run started without a task and nobody has reported it yet.
Trait Implementations§
Source§impl Clone for WorkflowRun
impl Clone for WorkflowRun
Source§fn clone(&self) -> WorkflowRun
fn clone(&self) -> WorkflowRun
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 WorkflowRun
impl Debug for WorkflowRun
Source§impl<'de> Deserialize<'de> for WorkflowRun
impl<'de> Deserialize<'de> for WorkflowRun
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 WorkflowRun
Source§impl PartialEq for WorkflowRun
impl PartialEq for WorkflowRun
Source§impl Serialize for WorkflowRun
impl Serialize for WorkflowRun
impl StructuralPartialEq for WorkflowRun
Auto Trait Implementations§
impl Freeze for WorkflowRun
impl RefUnwindSafe for WorkflowRun
impl Send for WorkflowRun
impl Sync for WorkflowRun
impl Unpin for WorkflowRun
impl UnsafeUnpin for WorkflowRun
impl UnwindSafe for WorkflowRun
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>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.