Struct async_openai_wasm::Steps
source · pub struct Steps<'c> {
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> Steps<'c>
impl<'c> Steps<'c>
pub fn new(client: &'c Client, 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> Freeze for Steps<'c>
impl<'c> !RefUnwindSafe for Steps<'c>
impl<'c> !Send for Steps<'c>
impl<'c> !Sync for Steps<'c>
impl<'c> Unpin for Steps<'c>
impl<'c> !UnwindSafe for Steps<'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