pub struct RunStep {
pub id: String,
pub object: String,
pub run_id: String,
pub thread_id: String,
pub step_type: RunStepType,
pub status: RunStepStatus,
pub created_at: u64,
pub completed_at: Option<u64>,
pub failed_at: Option<u64>,
pub error: Option<String>,
pub step_details: Option<MessageCreationStepDetails>,
}Expand description
A single step within a run.
Exposes the sub-task breakdown of a run to clients: for the current
implementation each run produces exactly one MessageCreation step.
Fields§
§id: StringStable identifier (step-<uuid>).
object: StringAlways "thread.run.step".
run_id: StringID of the owning run.
thread_id: StringID of the owning thread.
step_type: RunStepTypeType of this step.
status: RunStepStatusCurrent lifecycle status.
created_at: u64Unix timestamp when the step was created.
completed_at: Option<u64>Unix timestamp when the step completed successfully, if applicable.
failed_at: Option<u64>Unix timestamp when the step failed, if applicable.
error: Option<String>Human-readable error message when status is Failed.
step_details: Option<MessageCreationStepDetails>Details for MessageCreation steps.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunStep
impl<'de> Deserialize<'de> for RunStep
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 RunStep
impl RefUnwindSafe for RunStep
impl Send for RunStep
impl Sync for RunStep
impl Unpin for RunStep
impl UnsafeUnpin for RunStep
impl UnwindSafe for RunStep
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,
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>
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