pub struct RunObject {Show 19 fields
pub id: String,
pub object: String,
pub created_at: i64,
pub thread_id: String,
pub assistant_id: String,
pub status: String,
pub required_action: Option<HashMap<String, String>>,
pub last_error: Option<String>,
pub expires_at: Option<i64>,
pub started_at: Option<i64>,
pub cancelled_at: Option<i64>,
pub failed_at: Option<i64>,
pub completed_at: Option<i64>,
pub model: String,
pub instructions: Option<String>,
pub tools: Vec<HashMap<String, String>>,
pub file_ids: Vec<String>,
pub metadata: HashMap<String, String>,
pub headers: Option<HashMap<String, String>>,
}
Expand description
Represents a run object with various attributes.
Fields§
§id: String
Unique identifier for the run.
object: String
Object type, typically “run”.
created_at: i64
Timestamp of when the run was created.
thread_id: String
Identifier for the associated thread.
assistant_id: String
Identifier for the assistant.
status: String
Status of the run.
required_action: Option<HashMap<String, String>>
Optional required actions for the run.
last_error: Option<String>
Optional last error encountered during the run.
expires_at: Option<i64>
Optional expiration timestamp of the run.
started_at: Option<i64>
Optional start timestamp of the run.
cancelled_at: Option<i64>
Optional cancellation timestamp of the run.
failed_at: Option<i64>
Optional failure timestamp of the run.
completed_at: Option<i64>
Optional completion timestamp of the run.
model: String
Model used in the run.
instructions: Option<String>
Optional instructions for the run.
tools: Vec<HashMap<String, String>>
Tools used during the run.
file_ids: Vec<String>
File IDs associated with the run.
metadata: HashMap<String, String>
Metadata for the run.
headers: Option<HashMap<String, String>>
Optional headers from the response.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunObject
impl<'de> Deserialize<'de> for RunObject
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 RunObject
impl RefUnwindSafe for RunObject
impl Send for RunObject
impl Sync for RunObject
impl Unpin for RunObject
impl UnwindSafe for RunObject
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