Class BetaManagedAgentsSessionStatusIdleEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionStatusIdleEvent.BuilderA builder for BetaManagedAgentsSessionStatusIdleEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSessionStatusIdleEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsSessionStatusIdleEvent.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.
-
processedAt
final BetaManagedAgentsSessionStatusIdleEvent.Builder processedAt(OffsetDateTime processedAt)
Timestamp of status change.
-
processedAt
final BetaManagedAgentsSessionStatusIdleEvent.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.
-
stopDetails
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopDetails(BetaManagedAgentsSessionRefusalStopDetails stopDetails)
Structured information about why the session stopped.
nullwhen there is nothing more to report.
-
stopDetails
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopDetails(Optional<BetaManagedAgentsSessionRefusalStopDetails> stopDetails)
Alias for calling Builder.stopDetails with
stopDetails.orElse(null).
-
stopDetails
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopDetails(JsonField<BetaManagedAgentsSessionRefusalStopDetails> stopDetails)
Sets Builder.stopDetails to an arbitrary JSON value.
You should usually call Builder.stopDetails with a well-typed BetaManagedAgentsSessionRefusalStopDetails value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionStatusIdleEvent.StopReason stopReason)
-
stopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopReason(JsonField<BetaManagedAgentsSessionStatusIdleEvent.StopReason> stopReason)
Sets Builder.stopReason to an arbitrary JSON value.
You should usually call Builder.stopReason with a well-typed StopReason value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionEndTurn endTurn)
Alias for calling stopReason with
StopReason.ofEndTurn(endTurn).
-
stopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionRequiresAction requiresAction)
Alias for calling stopReason with
StopReason.ofRequiresAction(requiresAction).
-
stopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionRetriesExhausted retriesExhausted)
Alias for calling stopReason with
StopReason.ofRetriesExhausted(retriesExhausted).
-
stopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionBudgetReached budgetReached)
Alias for calling stopReason with
StopReason.ofBudgetReached(budgetReached).
-
stopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionRefusal refusal)
Alias for calling stopReason with
StopReason.ofRefusal(refusal).
-
type
final BetaManagedAgentsSessionStatusIdleEvent.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.status_idle")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSessionStatusIdleEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
requiresActionStopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder requiresActionStopReason(List<String> eventIds)
Alias for calling stopReason with the following:
BetaManagedAgentsSessionRequiresAction.builder() .eventIds(eventIds) .build()
-
putAdditionalProperty
final BetaManagedAgentsSessionStatusIdleEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionStatusIdleEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionStatusIdleEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionStatusIdleEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionStatusIdleEvent build()
Returns an immutable instance of BetaManagedAgentsSessionStatusIdleEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .processedAt() .stopDetails() .stopReason()
-
-
-
-