pub struct WorkflowRun {Show 17 fields
pub session_id: String,
pub thread_id: String,
pub graph: String,
pub run_id: Option<String>,
pub status: RunStatus,
pub status_text: String,
pub started_at: Option<DateTime<Utc>>,
pub duration_ms: Option<u64>,
pub summary: String,
pub nodes: Vec<NodeRun>,
pub taken: Vec<EdgeView>,
pub steps: Vec<RunStep>,
pub lineage: Option<RunLineage>,
pub forks: Vec<ForkSummary>,
pub removed_before: Option<usize>,
pub error: Option<String>,
pub question: Option<String>,
}Expand description
A run of a session’s graph, as the Runs tab shows it (spec 3.3 §12).
Built from the checkpoints’ run and step records, the effect log and the inbox; never from agent output.
Fields§
§session_id: StringThe session.
thread_id: StringThe session’s checkpoint thread.
graph: StringThe graph agent.
run_id: Option<String>The run’s id: the invocation that started it. Absent before the first run.
status: RunStatusHow the run stands.
status_text: StringIn words: “Waiting for you”, “Done”, …
started_at: Option<DateTime<Utc>>When the run started.
duration_ms: Option<u64>From the start to its latest checkpoint, in milliseconds.
summary: String“Started 09:14 · 4.2 s · 3 steps”, or what there is to say before a run.
nodes: Vec<NodeRun>Every node of the graph, as it stands in this run.
taken: Vec<EdgeView>The edges the run took.
steps: Vec<RunStep>The run’s steps, oldest first.
lineage: Option<RunLineage>Where the thread was forked from.
forks: Vec<ForkSummary>The forks made from this thread, newest first.
removed_before: Option<usize>The first step still kept, when retention removed the ones before it: “Steps before 12 were removed”.
error: Option<String>The error a failed run ended with.
question: Option<String>The question a paused node asked: “Which month should the invoice cover?”.
Trait Implementations§
Source§impl Clone for WorkflowRun
impl Clone for WorkflowRun
Source§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>,
impl Eq for WorkflowRun
Source§impl JsonSchema for WorkflowRun
impl JsonSchema for WorkflowRun
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§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 Forget for WorkflowRun
impl Freeze for WorkflowRunwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<NodeRun>: Freeze,
PhantomData<EdgeView>: Freeze,
PhantomData<RunStep>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ForkSummary>: Freeze,
impl Move for WorkflowRun
impl RefUnwindSafe for WorkflowRun
impl Send for WorkflowRun
impl Sync for WorkflowRun
impl Unpin for WorkflowRun
impl UnsafeUnpin for WorkflowRunwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<NodeRun>: UnsafeUnpin,
PhantomData<EdgeView>: UnsafeUnpin,
PhantomData<RunStep>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ForkSummary>: UnsafeUnpin,
impl UnwindSafe for WorkflowRun
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more