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)
A timestamp in RFC 3339 format
-
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.
-
stopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionStatusIdleEvent.StopReason stopReason)
The agent completed its turn naturally and is ready for the next user message.
-
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).
-
requiresActionStopReason
final BetaManagedAgentsSessionStatusIdleEvent.Builder requiresActionStopReason(List<String> eventIds)
Alias for calling stopReason with the following:
BetaManagedAgentsSessionRequiresAction.builder() .type(BetaManagedAgentsSessionRequiresAction.Type.REQUIRES_ACTION) .eventIds(eventIds) .build()
-
type
final BetaManagedAgentsSessionStatusIdleEvent.Builder type(BetaManagedAgentsSessionStatusIdleEvent.Type type)
-
type
final BetaManagedAgentsSessionStatusIdleEvent.Builder type(JsonField<BetaManagedAgentsSessionStatusIdleEvent.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 BetaManagedAgentsSessionStatusIdleEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
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() .stopReason() .type()
-
-
-
-