pub struct RunStepObject {Show 16 fields
pub id: String,
pub object: String,
pub created_at: i64,
pub assistant_id: String,
pub thread_id: String,
pub run_id: String,
pub type: String,
pub status: String,
pub step_details: RunStepDetails,
pub last_error: Option<RunLastError>,
pub expired_at: Option<i64>,
pub cancelled_at: Option<i64>,
pub failed_at: Option<i64>,
pub completed_at: Option<i64>,
pub metadata: Option<Metadata>,
pub usage: Option<CompletionUsage>,
}Expand description
Represents a step in execution of a run.
§Used By
/threads/{thread_id}/runs/{run_id}/steps(GET - inListRunStepsResponse)/threads/{thread_id}/runs/{run_id}/steps/{step_id}(GET)AssistantStreamEvent::ThreadRunStepCreatedand other step status events
Fields§
§id: StringThe identifier of the run step.
object: StringThe object type, always thread.run.step.
created_at: i64The Unix timestamp (in seconds) for when the run step was created.
assistant_id: StringThe ID of the assistant associated with the run step.
thread_id: StringThe ID of the thread that was run.
run_id: StringThe ID of the run that this run step is a part of.
type: StringThe type of run step (message_creation or tool_calls).
status: StringThe status of the run step.
step_details: RunStepDetailsThe details of the run step.
last_error: Option<RunLastError>The last error associated with this run step. Null if no errors.
expired_at: Option<i64>The Unix timestamp (in seconds) for when the run step expired.
cancelled_at: Option<i64>The Unix timestamp (in seconds) for when the run step was cancelled.
failed_at: Option<i64>The Unix timestamp (in seconds) for when the run step failed.
completed_at: Option<i64>The Unix timestamp (in seconds) for when the run step completed.
metadata: Option<Metadata>Set of 16 key-value pairs attached to the object.
usage: Option<CompletionUsage>Usage statistics related to the run step. Null if status is in_progress.
Trait Implementations§
Source§impl Clone for RunStepObject
impl Clone for RunStepObject
Source§fn clone(&self) -> RunStepObject
fn clone(&self) -> RunStepObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunStepObject
impl Debug for RunStepObject
Source§impl<'de> Deserialize<'de> for RunStepObject
impl<'de> Deserialize<'de> for RunStepObject
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>,
Source§impl PartialEq for RunStepObject
impl PartialEq for RunStepObject
Source§impl Serialize for RunStepObject
impl Serialize for RunStepObject
impl StructuralPartialEq for RunStepObject
Auto Trait Implementations§
impl Freeze for RunStepObject
impl RefUnwindSafe for RunStepObject
impl Send for RunStepObject
impl Sync for RunStepObject
impl Unpin for RunStepObject
impl UnwindSafe for RunStepObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
Source§type Val = <C as Collection>::Val
type Val = <C as Collection>::Val
Entry in complex collections.
For example, in a HashMap, while Entry might be a ( key, value ) tuple, Val might only be the value part.Source§fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
Source§fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
Invokes the val_to_entry function of the CollectionValToEntry trait to convert the value to an entry.
Source§type Entry = <C as CollectionValToEntry<Val>>::Entry
type Entry = <C as CollectionValToEntry<Val>>::Entry
Entry is defined by the Collection trait.