#[non_exhaustive]pub struct RunStep {Show 17 fields
pub id: String,
pub object: String,
pub created_at: u64,
pub assistant_id: String,
pub thread_id: String,
pub run_id: String,
pub kind: String,
pub status: String,
pub step_details: Value,
pub last_error: Option<Value>,
pub expired_at: Option<u64>,
pub cancelled_at: Option<u64>,
pub failed_at: Option<u64>,
pub completed_at: Option<u64>,
pub metadata: BTreeMap<String, String>,
pub usage: Option<Value>,
pub extra: BTreeMap<String, Value>,
/* private fields */
}Expand description
EN: Run step object returned by the Run Steps API. 中文:Run Steps API 返回的 Run Step 对象。
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 step id. 中文:Run Step ID。
object: StringEN: API object type. 中文:API 对象类型。
created_at: u64EN: Unix timestamp for creation. 中文:创建时间的 Unix 时间戳。
assistant_id: StringEN: Assistant id associated with this step. 中文:此 Step 关联的 Assistant ID。
thread_id: StringEN: Parent thread id. 中文:父线程 ID。
run_id: StringEN: Parent run id. 中文:父 Run ID。
kind: StringEN: Run step type. 中文:Run Step 类型。
status: StringEN: Run step status. 中文:Run Step 状态。
step_details: ValueEN: Run step details. 中文:Run Step 详情。
last_error: Option<Value>EN: Last step error, when returned. 中文:API 返回的最后一个 Step 错误。
expired_at: Option<u64>EN: Expiration 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. 中文:完成时间戳,如响应中存在。
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. 中文:为前向兼容保留的额外字段。