pub struct ClientRunLease {
pub drive_token: String,
pub record_prompts: bool,
pub last_seen: OffsetDateTime,
}Expand description
The per-run lease state for a client-driven run.
Fields§
§drive_token: StringThe opaque drive token the single writer must present on every append.
record_prompts: boolWhether the opener asked for model request bodies to be recorded. Stored at open time; it governs the server-performed model step, not yet implemented, and carries no effect on the generic append this surface serves.
last_seen: OffsetDateTimeWhen the driver last proved it was alive: stamped at open and refreshed
on every guarded operation (append, model-step, tool-step, resolve), each
of which presents the drive token. That token is the driver’s own proof
of life, so its arrival IS the heartbeat — there is no separate mechanism.
Read against the lease TTL to decide whether a driver is still attached to
a client-driven run (see
client_run_driver_live).
Trait Implementations§
Source§impl Clone for ClientRunLease
impl Clone for ClientRunLease
Source§fn clone(&self) -> ClientRunLease
fn clone(&self) -> ClientRunLease
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more