Package com.openai.models.responses
Class ResponseTextDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseTextDeltaEvent.Builder
A builder for ResponseTextDeltaEvent.
-
-
Method Summary
Modifier and Type Method Description final ResponseTextDeltaEvent.Builder
contentIndex(Long contentIndex)
The index of the content part that the text delta was added to. final ResponseTextDeltaEvent.Builder
contentIndex(JsonField<Long> contentIndex)
The index of the content part that the text delta was added to. final ResponseTextDeltaEvent.Builder
delta(String delta)
The text delta that was added. final ResponseTextDeltaEvent.Builder
delta(JsonField<String> delta)
The text delta that was added. final ResponseTextDeltaEvent.Builder
itemId(String itemId)
The ID of the output item that the text delta was added to. final ResponseTextDeltaEvent.Builder
itemId(JsonField<String> itemId)
The ID of the output item that the text delta was added to. final ResponseTextDeltaEvent.Builder
outputIndex(Long outputIndex)
The index of the output item that the text delta was added to. final ResponseTextDeltaEvent.Builder
outputIndex(JsonField<Long> outputIndex)
The index of the output item that the text delta was added to. final ResponseTextDeltaEvent.Builder
type(JsonValue type)
The type of the event. final ResponseTextDeltaEvent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseTextDeltaEvent.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseTextDeltaEvent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseTextDeltaEvent.Builder
removeAdditionalProperty(String key)
final ResponseTextDeltaEvent.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseTextDeltaEvent
build()
-
-
Method Detail
-
contentIndex
final ResponseTextDeltaEvent.Builder contentIndex(Long contentIndex)
The index of the content part that the text delta was added to.
-
contentIndex
final ResponseTextDeltaEvent.Builder contentIndex(JsonField<Long> contentIndex)
The index of the content part that the text delta was added to.
-
delta
final ResponseTextDeltaEvent.Builder delta(String delta)
The text delta that was added.
-
delta
final ResponseTextDeltaEvent.Builder delta(JsonField<String> delta)
The text delta that was added.
-
itemId
final ResponseTextDeltaEvent.Builder itemId(String itemId)
The ID of the output item that the text delta was added to.
-
itemId
final ResponseTextDeltaEvent.Builder itemId(JsonField<String> itemId)
The ID of the output item that the text delta was added to.
-
outputIndex
final ResponseTextDeltaEvent.Builder outputIndex(Long outputIndex)
The index of the output item that the text delta was added to.
-
outputIndex
final ResponseTextDeltaEvent.Builder outputIndex(JsonField<Long> outputIndex)
The index of the output item that the text delta was added to.
-
type
final ResponseTextDeltaEvent.Builder type(JsonValue type)
The type of the event. Always
response.output_text.delta
.
-
additionalProperties
final ResponseTextDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseTextDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseTextDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseTextDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseTextDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseTextDeltaEvent build()
-
-
-
-