Start here. This is the direct spoken answer to practice first.
Overview
Nondeterministic output does not remove the need for deterministic operation semantics.
The client or application assigns a stable idempotency key to the logical operation, and the server persists its status before expensive work begins. Repeated requests with the same key return or resume the same operation instead of starting another model call blindly. Any tool or business side effect receives its own stable key and is committed through application code, not inferred from generated text.