Class BetaManagedAgentsDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDeltaEvent.BuilderA builder for BetaManagedAgentsDeltaEvent.
-
-
Method Summary
-
-
Method Detail
-
delta
final BetaManagedAgentsDeltaEvent.Builder delta(BetaManagedAgentsDeltaContent delta)
One fragment of the previewed event. The delta type is named for the previewed event's field it streams into: agent.message events stream content_delta fragments, each a partial element of the content array.
-
delta
final BetaManagedAgentsDeltaEvent.Builder delta(JsonField<BetaManagedAgentsDeltaContent> delta)
Sets Builder.delta to an arbitrary JSON value.
You should usually call Builder.delta with a well-typed BetaManagedAgentsDeltaContent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final BetaManagedAgentsDeltaEvent.Builder eventId(String eventId)
The id of the event being previewed. Matches event.id on the corresponding event_start and the buffered event that reconciles the preview.
-
eventId
final BetaManagedAgentsDeltaEvent.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsDeltaEvent.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("event_delta")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
contentDeltaDelta
final BetaManagedAgentsDeltaEvent.Builder contentDeltaDelta(BetaManagedAgentsTextBlock content)
Alias for calling delta with the following:
BetaManagedAgentsDeltaContent.builder() .content(content) .build()
-
putAdditionalProperty
final BetaManagedAgentsDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsDeltaEvent build()
Returns an immutable instance of BetaManagedAgentsDeltaEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.delta() .eventId()
-
-
-
-