- a positive
seq_idthat advances by one, - an
idempotency-keythat is reused on retry, - and the canonical request hash for exactly that request.
Training and sampling
Trainer operations includeforward, forward_backward, optim_step,
save_state, load_state, save_weights_for_sampler, and export_lora.
Sampling uses a sampler created or synchronized from a specific trainer weight
version. sample never silently pulls newer trainer weights.
Completion and cleanup
Callfinish only after the caller-owned loop is complete. Call cancel on
failure or interruption. Close the session after all work is terminal so
Whitney can reconcile usage and release provider resources.
Wall-clock, idle, startup, and stuck-operation limits remain active for every
session. Set max_cost_microusd when you need an explicit dollar ceiling.