pub struct WorkflowFinishedPayload {
pub status: ConversationStatus,
pub elapsed_time: f64,
pub outputs: WorkflowOutputs,
pub error: String,
pub error_code: i32,
pub error_message: String,
pub error_args: Option<Value>,
pub process_data: Vec<Value>,
}Expand description
Payload of a workflow_finished SSE event. status is never
interrupted here — an interrupted run doesn’t emit workflow_finished
at all; see ConversationStreamEvent::HumanInteractionRequired.
Fields§
§status: ConversationStatusFinal run status: succeeded / failed / stopped
elapsed_time: f64Run duration in seconds
outputs: WorkflowOutputsRun outputs
error: StringLocalized error description; only present when status is failed
error_code: i32Error code; only present when status is failed
error_message: StringUser-facing error message; only present on failure
error_args: Option<Value>Extra error context (e.g. workflow_run_id); may be omitted
process_data: Vec<Value>Process stages the run went through; for display only
Trait Implementations§
Source§impl Clone for WorkflowFinishedPayload
impl Clone for WorkflowFinishedPayload
Source§fn clone(&self) -> WorkflowFinishedPayload
fn clone(&self) -> WorkflowFinishedPayload
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 WorkflowFinishedPayload
impl Debug for WorkflowFinishedPayload
Source§impl<'de> Deserialize<'de> for WorkflowFinishedPayload
impl<'de> Deserialize<'de> for WorkflowFinishedPayload
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
Auto Trait Implementations§
impl Freeze for WorkflowFinishedPayload
impl RefUnwindSafe for WorkflowFinishedPayload
impl Send for WorkflowFinishedPayload
impl Sync for WorkflowFinishedPayload
impl Unpin for WorkflowFinishedPayload
impl UnsafeUnpin for WorkflowFinishedPayload
impl UnwindSafe for WorkflowFinishedPayload
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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