Class BetaResponseReasoningTextDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseReasoningTextDeltaEvent.BuilderA builder for BetaResponseReasoningTextDeltaEvent.
-
-
Method Summary
-
-
Method Detail
-
contentIndex
final BetaResponseReasoningTextDeltaEvent.Builder contentIndex(Long contentIndex)
The index of the reasoning content part this delta is associated with.
-
contentIndex
final BetaResponseReasoningTextDeltaEvent.Builder contentIndex(JsonField<Long> contentIndex)
Sets Builder.contentIndex to an arbitrary JSON value.
You should usually call Builder.contentIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
delta
final BetaResponseReasoningTextDeltaEvent.Builder delta(String delta)
The text delta that was added to the reasoning content.
-
delta
final BetaResponseReasoningTextDeltaEvent.Builder delta(JsonField<String> delta)
Sets Builder.delta to an arbitrary JSON value.
You should usually call Builder.delta with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
itemId
final BetaResponseReasoningTextDeltaEvent.Builder itemId(String itemId)
The ID of the item this reasoning text delta is associated with.
-
itemId
final BetaResponseReasoningTextDeltaEvent.Builder itemId(JsonField<String> itemId)
Sets Builder.itemId to an arbitrary JSON value.
You should usually call Builder.itemId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputIndex
final BetaResponseReasoningTextDeltaEvent.Builder outputIndex(Long outputIndex)
The index of the output item this reasoning text delta is associated with.
-
outputIndex
final BetaResponseReasoningTextDeltaEvent.Builder outputIndex(JsonField<Long> outputIndex)
Sets Builder.outputIndex to an arbitrary JSON value.
You should usually call Builder.outputIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sequenceNumber
final BetaResponseReasoningTextDeltaEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of this event.
-
sequenceNumber
final BetaResponseReasoningTextDeltaEvent.Builder sequenceNumber(JsonField<Long> sequenceNumber)
Sets Builder.sequenceNumber to an arbitrary JSON value.
You should usually call Builder.sequenceNumber with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaResponseReasoningTextDeltaEvent.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("response.reasoning_text.delta")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseReasoningTextDeltaEvent.Builder agent(BetaResponseReasoningTextDeltaEvent.Agent agent)
The agent that owns this multi-agent streaming event.
-
agent
final BetaResponseReasoningTextDeltaEvent.Builder agent(Optional<BetaResponseReasoningTextDeltaEvent.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseReasoningTextDeltaEvent.Builder agent(JsonField<BetaResponseReasoningTextDeltaEvent.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseReasoningTextDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseReasoningTextDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseReasoningTextDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseReasoningTextDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseReasoningTextDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseReasoningTextDeltaEvent build()
Returns an immutable instance of BetaResponseReasoningTextDeltaEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentIndex() .delta() .itemId() .outputIndex() .sequenceNumber()
-
-
-
-