#[non_exhaustive]pub struct ThreadRun {Show 20 fields
pub id: String,
pub object: String,
pub created_at: u64,
pub thread_id: String,
pub assistant_id: String,
pub status: String,
pub required_action: Option<Value>,
pub last_error: Option<Value>,
pub expires_at: Option<u64>,
pub started_at: Option<u64>,
pub cancelled_at: Option<u64>,
pub failed_at: Option<u64>,
pub completed_at: Option<u64>,
pub incomplete_details: Option<Value>,
pub model: String,
pub instructions: Option<String>,
pub tools: Vec<Value>,
pub metadata: BTreeMap<String, String>,
pub usage: Option<Value>,
pub extra: BTreeMap<String, Value>,
/* private fields */
}Expand description
EN: Run object returned by the Thread Runs API. 中文:Thread Runs API 返回的 Run 对象。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringEN: Run id. 中文:Run ID。
object: StringEN: API object type. 中文:API 对象类型。
created_at: u64EN: Unix timestamp for creation. 中文:创建时间的 Unix 时间戳。
thread_id: StringEN: Parent thread id. 中文:父线程 ID。
assistant_id: StringEN: Assistant id used by this run. 中文:此 Run 使用的 Assistant ID。
status: StringEN: Run status. 中文:Run 状态。
required_action: Option<Value>EN: Required action details, when the run is waiting for action. 中文:Run 等待操作时的必需操作详情。
last_error: Option<Value>EN: Last run error, when returned. 中文:API 返回的最后一个 Run 错误。
expires_at: Option<u64>EN: Expiration timestamp, when returned. 中文:过期时间戳,如响应中存在。
started_at: Option<u64>EN: Start timestamp, when returned. 中文:开始时间戳,如响应中存在。
cancelled_at: Option<u64>EN: Cancellation timestamp, when returned. 中文:取消时间戳,如响应中存在。
failed_at: Option<u64>EN: Failure timestamp, when returned. 中文:失败时间戳,如响应中存在。
completed_at: Option<u64>EN: Completion timestamp, when returned. 中文:完成时间戳,如响应中存在。
incomplete_details: Option<Value>EN: Incomplete details, when returned. 中文:未完成详情,如响应中存在。
model: StringEN: Model used by this run. 中文:此 Run 使用的模型。
instructions: Option<String>EN: Run instructions, when returned. 中文:Run 指令,如响应中存在。
tools: Vec<Value>EN: Tool descriptors returned by the API. 中文:API 返回的工具描述。
metadata: BTreeMap<String, String>EN: Metadata returned by the API. 中文:API 返回的元数据。
usage: Option<Value>EN: Usage details, when returned. 中文:用量详情,如响应中存在。
extra: BTreeMap<String, Value>EN: Additional fields preserved for forward compatibility. 中文:为前向兼容保留的额外字段。