pub enum ProgressEvent {
Log {
message: String,
},
Phase {
title: String,
},
TaskSchemaValidationFailed {
task_id: String,
message: String,
},
TaskRejected {
label: Option<String>,
phase: Option<String>,
message: String,
},
}Expand description
Progress events emitted by the script (log(..) / phase(..)), delivered
to the driver synchronously and in script order.
Variants§
Log
log(msg) — a narrator line for the UI.
Phase
phase(title) — the script entered a named phase.
TaskSchemaValidationFailed
A completed child returned text that failed the caller’s
responseSchema. The VM emits this before throwing the validation
error back into the script so host-side receipts can mark the leaf as
failed instead of reporting a successful child beside a null result.
Fields
TaskRejected
A task() call was rejected before any child agent existed —
malformed options, a bad responseSchema, the lifetime cap, or an
exhausted budget. Inside parallel() the JS throw collapses to a
null slot, so without this event the host would have no record that
a slot was ever requested; drivers fold it into the same ledger as
spawn_task rejections so run status can stay honest.
Trait Implementations§
Source§impl Clone for ProgressEvent
impl Clone for ProgressEvent
Source§fn clone(&self) -> ProgressEvent
fn clone(&self) -> ProgressEvent
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 ProgressEvent
impl Debug for ProgressEvent
impl Eq for ProgressEvent
Source§impl PartialEq for ProgressEvent
impl PartialEq for ProgressEvent
impl StructuralPartialEq for ProgressEvent
Auto Trait Implementations§
impl Freeze for ProgressEvent
impl RefUnwindSafe for ProgressEvent
impl Send for ProgressEvent
impl Sync for ProgressEvent
impl Unpin for ProgressEvent
impl UnsafeUnpin for ProgressEvent
impl UnwindSafe for ProgressEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.