Interface BetaManagedAgentsModelRequestFailedError.RetryStatus.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsModelRequestFailedError.RetryStatus.Visitor<T extends Object>An interface that defines how to map each variant of RetryStatus to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitRetrying(BetaManagedAgentsRetryStatusRetrying retrying)The server is retrying automatically. abstract TvisitExhausted(BetaManagedAgentsRetryStatusExhausted exhausted)This turn is dead; queued inputs are flushed and the session returns to idle. abstract TvisitTerminal(BetaManagedAgentsRetryStatusTerminal terminal)The session encountered a terminal error and will transition to terminatedstate.Tunknown(JsonValue json)Maps an unknown variant of RetryStatus to a value of type T. -
-
Method Detail
-
visitRetrying
abstract T visitRetrying(BetaManagedAgentsRetryStatusRetrying retrying)
The server is retrying automatically. Client should wait; the same error type may fire again as retrying, then once as exhausted when the retry budget runs out.
-
visitExhausted
abstract T visitExhausted(BetaManagedAgentsRetryStatusExhausted exhausted)
This turn is dead; queued inputs are flushed and the session returns to idle. Client may send a new prompt.
-
visitTerminal
abstract T visitTerminal(BetaManagedAgentsRetryStatusTerminal terminal)
The session encountered a terminal error and will transition to
terminatedstate.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of RetryStatus to a value of type T.
An instance of RetryStatus can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-