Struct async_openai::types::RunObject
source · pub struct RunObject {Show 18 fields
pub id: String,
pub object: String,
pub created_at: i32,
pub thread_id: String,
pub assistant_id: Option<String>,
pub status: RunStatus,
pub required_action: Option<RequiredAction>,
pub last_error: Option<LastError>,
pub expires_at: Option<i32>,
pub started_at: Option<i32>,
pub cancelled_at: Option<i32>,
pub failed_at: Option<i32>,
pub completed_at: Option<i32>,
pub model: String,
pub instructions: String,
pub tools: Vec<AssistantTools>,
pub file_ids: Vec<String>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
Represents an execution run on a thread.
Fields§
§id: StringThe identifier, which can be referenced in API endpoints.
object: StringThe object type, which is always thread.run.
created_at: i32The Unix timestamp (in seconds) for when the run was created.
thread_id: StringThe ID of the thread that was executed on as a part of this run.
assistant_id: Option<String>The ID of the assistant used for execution of this run.
status: RunStatusThe status of the run, which can be either queued, in_progress, requires_action, cancelling, cancelled, failed, completed, or expired.
required_action: Option<RequiredAction>Details on the action required to continue the run. Will be null if no action is required.
last_error: Option<LastError>The last error associated with this run. Will be null if there are no errors.
expires_at: Option<i32>The Unix timestamp (in seconds) for when the run will expire.
started_at: Option<i32>The Unix timestamp (in seconds) for when the run was started.
cancelled_at: Option<i32>The Unix timestamp (in seconds) for when the run was cancelled.
failed_at: Option<i32>The Unix timestamp (in seconds) for when the run failed.
completed_at: Option<i32>The Unix timestamp (in seconds) for when the run was completed.
model: StringThe model that the assistant used for this run.
instructions: StringThe instructions that the assistant used for this run.
tools: Vec<AssistantTools>The list of tools that the assistant used for this run.
file_ids: Vec<String>§metadata: Option<HashMap<String, Value>>