Class BetaManagedAgentsSessionThreadStatusIdleEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionThreadStatusIdleEvent.BuilderA builder for BetaManagedAgentsSessionThreadStatusIdleEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsSessionThreadStatusIdleEvent.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.
-
agentName
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder agentName(String agentName)
Name of the agent the thread runs.
-
agentName
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder agentName(JsonField<String> agentName)
Sets Builder.agentName to an arbitrary JSON value.
You should usually call Builder.agentName 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 BetaManagedAgentsSessionThreadStatusIdleEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
processedAt
final BetaManagedAgentsSessionThreadStatusIdleEvent.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.
-
sessionThreadId
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder sessionThreadId(String sessionThreadId)
Public sthr_ ID of the thread that went idle.
-
sessionThreadId
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder sessionThreadId(JsonField<String> sessionThreadId)
Sets Builder.sessionThreadId to an arbitrary JSON value.
You should usually call Builder.sessionThreadId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopReason
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionThreadStatusIdleEvent.StopReason stopReason)
The agent completed its turn naturally and is ready for the next user message.
-
stopReason
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder stopReason(JsonField<BetaManagedAgentsSessionThreadStatusIdleEvent.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 BetaManagedAgentsSessionThreadStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionEndTurn endTurn)
Alias for calling stopReason with
StopReason.ofEndTurn(endTurn).
-
stopReason
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionRequiresAction requiresAction)
Alias for calling stopReason with
StopReason.ofRequiresAction(requiresAction).
-
stopReason
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder stopReason(BetaManagedAgentsSessionRetriesExhausted retriesExhausted)
Alias for calling stopReason with
StopReason.ofRetriesExhausted(retriesExhausted).
-
requiresActionStopReason
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder requiresActionStopReason(List<String> eventIds)
Alias for calling stopReason with the following:
BetaManagedAgentsSessionRequiresAction.builder() .type(BetaManagedAgentsSessionRequiresAction.Type.REQUIRES_ACTION) .eventIds(eventIds) .build()
-
type
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder type(BetaManagedAgentsSessionThreadStatusIdleEvent.Type type)
-
type
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder type(JsonField<BetaManagedAgentsSessionThreadStatusIdleEvent.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 BetaManagedAgentsSessionThreadStatusIdleEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionThreadStatusIdleEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionThreadStatusIdleEvent build()
Returns an immutable instance of BetaManagedAgentsSessionThreadStatusIdleEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .agentName() .processedAt() .sessionThreadId() .stopReason() .type()
-
-
-
-