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)
-
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).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsToolUseLimitReachedError toolUseLimitReached)
Alias for calling error with
Error.ofToolUseLimitReached(toolUseLimitReached).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsCompactionLimitReachedError compactionLimitReached)
Alias for calling error with
Error.ofCompactionLimitReached(compactionLimitReached).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsRepositoryAuthenticationError repositoryAuthentication)
Alias for calling error with
Error.ofRepositoryAuthentication(repositoryAuthentication).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsRepositoryForbiddenError repositoryForbidden)
Alias for calling error with
Error.ofRepositoryForbidden(repositoryForbidden).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsRepositoryNotFoundError repositoryNotFound)
Alias for calling error with
Error.ofRepositoryNotFound(repositoryNotFound).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsRepositoryCheckoutError repositoryCheckout)
Alias for calling error with
Error.ofRepositoryCheckout(repositoryCheckout).
-
error
final BetaManagedAgentsSessionErrorEvent.Builder error(BetaManagedAgentsRepositoryCloneError repositoryClone)
Alias for calling error with
Error.ofRepositoryClone(repositoryClone).
-
processedAt
final BetaManagedAgentsSessionErrorEvent.Builder processedAt(OffsetDateTime processedAt)
Timestamp when the error occurred.
-
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(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("session.error")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()
-
-
-
-