Interface BetaManagedAgentsSessionErrorEvent.Error.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsSessionErrorEvent.Error.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitUnknown(BetaManagedAgentsUnknownError unknown)An unknown or unexpected error occurred during session execution. abstract TvisitModelOverloaded(BetaManagedAgentsModelOverloadedError modelOverloaded)The model is currently overloaded. abstract TvisitModelRateLimited(BetaManagedAgentsModelRateLimitedError modelRateLimited)The model request was rate-limited. abstract TvisitModelRequestFailed(BetaManagedAgentsModelRequestFailedError modelRequestFailed)A model request failed for a reason other than overload or rate-limiting. abstract TvisitMcpConnectionFailed(BetaManagedAgentsMcpConnectionFailedError mcpConnectionFailed)Failed to connect to an MCP server. abstract TvisitMcpAuthenticationFailed(BetaManagedAgentsMcpAuthenticationFailedError mcpAuthenticationFailed)Authentication to an MCP server failed. abstract TvisitBilling(BetaManagedAgentsBillingError billing)The caller's organization or workspace cannot make model requests — out of credits or spend limit reached. abstract TvisitCredentialHostUnreachable(BetaManagedAgentsCredentialHostUnreachableError credentialHostUnreachable)An environment_variablecredential'sauth.networking.allowed_hostsincludes a host the environment's network policy does not permit.Tunknown(JsonValue json)Maps an unknown variant of Error to a value of type T. -
-
Method Detail
-
visitUnknown
abstract T visitUnknown(BetaManagedAgentsUnknownError unknown)
An unknown or unexpected error occurred during session execution. A fallback variant; clients that don't recognize a new error code can match on
retry_statusandmessagealone.
-
visitModelOverloaded
abstract T visitModelOverloaded(BetaManagedAgentsModelOverloadedError modelOverloaded)
The model is currently overloaded. Emitted after automatic retries are exhausted.
-
visitModelRateLimited
abstract T visitModelRateLimited(BetaManagedAgentsModelRateLimitedError modelRateLimited)
The model request was rate-limited.
-
visitModelRequestFailed
abstract T visitModelRequestFailed(BetaManagedAgentsModelRequestFailedError modelRequestFailed)
A model request failed for a reason other than overload or rate-limiting.
-
visitMcpConnectionFailed
abstract T visitMcpConnectionFailed(BetaManagedAgentsMcpConnectionFailedError mcpConnectionFailed)
Failed to connect to an MCP server.
-
visitMcpAuthenticationFailed
abstract T visitMcpAuthenticationFailed(BetaManagedAgentsMcpAuthenticationFailedError mcpAuthenticationFailed)
Authentication to an MCP server failed.
-
visitBilling
abstract T visitBilling(BetaManagedAgentsBillingError billing)
The caller's organization or workspace cannot make model requests — out of credits or spend limit reached. Retrying with the same credentials will not succeed; the caller must resolve the billing state.
-
visitCredentialHostUnreachable
abstract T visitCredentialHostUnreachable(BetaManagedAgentsCredentialHostUnreachableError credentialHostUnreachable)
An
environment_variablecredential'sauth.networking.allowed_hostsincludes a host the environment's network policy does not permit.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Error to a value of type T.
An instance of Error 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.
-
-
-
-