pub struct Steps<'c, C: Config> {
pub thread_id: String,
pub run_id: String,
/* private fields */
}
Expand description
Represents a step in execution of a run.
Fields§
§thread_id: String
§run_id: String
Implementations§
Source§impl<'c, C: Config> Steps<'c, C>
impl<'c, C: Config> Steps<'c, C>
pub fn new(client: &'c Client<C>, thread_id: &str, run_id: &str) -> Self
Sourcepub async fn retrieve(
&self,
step_id: &str,
) -> Result<RunStepObject, OpenAIError>
pub async fn retrieve( &self, step_id: &str, ) -> Result<RunStepObject, OpenAIError>
Retrieves a run step.
Sourcepub async fn list<Q>(
&self,
query: &Q,
) -> Result<ListRunStepsResponse, OpenAIError>
pub async fn list<Q>( &self, query: &Q, ) -> Result<ListRunStepsResponse, OpenAIError>
Returns a list of run steps belonging to a run.
Auto Trait Implementations§
impl<'c, C> Freeze for Steps<'c, C>
impl<'c, C> !RefUnwindSafe for Steps<'c, C>
impl<'c, C> Send for Steps<'c, C>where
C: Sync,
impl<'c, C> Sync for Steps<'c, C>where
C: Sync,
impl<'c, C> Unpin for Steps<'c, C>
impl<'c, C> !UnwindSafe for Steps<'c, C>
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