Class ContinuationInterruptedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.genai.gaos.models.errors.ContinuationInterruptedException
- All Implemented Interfaces:
Serializable
Thrown when Interactions automatic continuation fails after progress.
interactions.create() with automatic continuation enabled (the default) may make
several requests ("hops"), each one resuming the decode from the previous hop's
continuation_token. If a hop fails after the server already produced (and billed) output in an
earlier hop, or after a resumable checkpoint was reached, this exception is thrown instead of
the underlying error so the work is not lost. The underlying error is Throwable.getCause().
To resume, pass continuationToken() as continuation_token to
interactions.create(): with store enabled (the default), also pass interactionId() as previous_interaction_id and no input; with
store=false, resend the original input.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContinuationInterruptedException(String message, Throwable cause, Interaction partialInteraction, String continuationToken, String interactionId, List<String> continuationIds) -
Method Summary
Modifier and TypeMethodDescriptionThe ids of every hop created during the call, in order.The latest resumablecontinuation_token.The id of the interaction that issuedcontinuationToken()(the value to send asprevious_interaction_id), or empty if unknown or unstored (store=false).For unary calls, the interaction merged from the hops that completed (statusrequires_continuation, with the resumablecontinuation_token).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContinuationInterruptedException
-
-
Method Details
-
partialInteraction
For unary calls, the interaction merged from the hops that completed (statusrequires_continuation, with the resumablecontinuation_token). Always empty for streams, whose events were already yielded. -
continuationToken
The latest resumablecontinuation_token. For streams this may be a mid-hop checkpoint: resuming from it re-generates any output yielded after the checkpoint. -
interactionId
The id of the interaction that issuedcontinuationToken()(the value to send asprevious_interaction_id), or empty if unknown or unstored (store=false). -
continuationIds
The ids of every hop created during the call, in order.
-