Class BetaManagedAgentsSessionErrorEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionErrorEvent.BuilderA builder for BetaManagedAgentsSessionErrorEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSessionErrorEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsSessionErrorEvent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsSessionErrorEvent.Error error)
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.
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(JsonField<BetaManagedAgentsSessionErrorEvent.Error> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed Error value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsUnknownError unknown)
Alias for calling error with
Error.ofUnknown(unknown).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsModelOverloadedError modelOverloaded)
Alias for calling error with
Error.ofModelOverloaded(modelOverloaded).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsModelRateLimitedError modelRateLimited)
Alias for calling error with
Error.ofModelRateLimited(modelRateLimited).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsModelRequestFailedError modelRequestFailed)
Alias for calling error with
Error.ofModelRequestFailed(modelRequestFailed).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsMcpConnectionFailedError mcpConnectionFailed)
Alias for calling error with
Error.ofMcpConnectionFailed(mcpConnectionFailed).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsMcpAuthenticationFailedError mcpAuthenticationFailed)
Alias for calling error with
Error.ofMcpAuthenticationFailed(mcpAuthenticationFailed).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsBillingError billing)
Alias for calling error with
Error.ofBilling(billing).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsCredentialHostUnreachableError credentialHostUnreachable)
Alias for calling error with
Error.ofCredentialHostUnreachable(credentialHostUnreachable).
-
processedAt
final BetaManagedAgentsSessionErrorEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
processedAt
final BetaManagedAgentsSessionErrorEvent.Builder processedAt(JsonField<OffsetDateTime> processedAt)
Sets Builder.processedAt to an arbitrary JSON value.
You should usually call Builder.processedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsSessionErrorEvent.Builder type(BetaManagedAgentsSessionErrorEvent.Type type)
-
type
final BetaManagedAgentsSessionErrorEvent.Builder type(JsonField<BetaManagedAgentsSessionErrorEvent.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSessionErrorEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSessionErrorEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionErrorEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionErrorEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionErrorEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionErrorEvent build()
Returns an immutable instance of BetaManagedAgentsSessionErrorEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .error() .processedAt() .type()
-
-
-
-