pub struct Run {Show 26 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<RequiredAction>,
pub last_error: Option<RunError>,
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: String,
pub tools: Vec<AssistantTool>,
pub file_ids: Vec<String>,
pub metadata: HashMap<String, String>,
pub usage: Option<RunUsage>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub max_prompt_tokens: Option<i32>,
pub max_completion_tokens: Option<i32>,
pub truncation_strategy: Option<TruncationStrategy>,
pub tool_choice: Option<ToolChoice>,
pub response_format: Option<ResponseFormat>,
}Expand description
A run object.
Fields§
§id: StringThe identifier of the run.
object: StringThe object type, which is always “thread.run”.
created_at: i64The 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: StringThe ID of the assistant used for execution of this run.
status: StringThe status of the run.
required_action: Option<RequiredAction>Details on the action required to continue the run.
last_error: Option<RunError>The last error associated with this run.
expires_at: Option<i64>The Unix timestamp (in seconds) for when the run will expire.
started_at: Option<i64>The Unix timestamp (in seconds) for when the run was started.
cancelled_at: Option<i64>The Unix timestamp (in seconds) for when the run was cancelled.
failed_at: Option<i64>The Unix timestamp (in seconds) for when the run failed.
completed_at: Option<i64>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<AssistantTool>The list of tools that the assistant used for this run.
file_ids: Vec<String>The list of File IDs the assistant used for this run.
metadata: HashMap<String, String>Set of key-value pairs that can be attached to an object.
usage: Option<RunUsage>Usage statistics related to the run.
temperature: Option<f32>What sampling temperature was used for this run.
top_p: Option<f32>The nucleus sampling value used for this run.
max_prompt_tokens: Option<i32>The maximum number of prompt tokens specified for this run.
max_completion_tokens: Option<i32>The maximum number of completion tokens specified for this run.
truncation_strategy: Option<TruncationStrategy>Controls for how a thread will be truncated.
tool_choice: Option<ToolChoice>Controls which (if any) tool is called by the model.
response_format: Option<ResponseFormat>Specifies the format that the model must output.