Class ResponseTextDoneEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseTextDoneEvent.Builder
A builder for ResponseTextDoneEvent.
-
-
Method Summary
-
-
Method Detail
-
contentIndex
final ResponseTextDoneEvent.Builder contentIndex(Long contentIndex)
The index of the content part that the text content is finalized.
-
contentIndex
final ResponseTextDoneEvent.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.
-
itemId
final ResponseTextDoneEvent.Builder itemId(String itemId)
The ID of the output item that the text content is finalized.
-
itemId
final ResponseTextDoneEvent.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 ResponseTextDoneEvent.Builder outputIndex(Long outputIndex)
The index of the output item that the text content is finalized.
-
outputIndex
final ResponseTextDoneEvent.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.
-
text
final ResponseTextDoneEvent.Builder text(String text)
The text content that is finalized.
-
text
final ResponseTextDoneEvent.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text 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 ResponseTextDoneEvent.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.output_text.done")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseTextDoneEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseTextDoneEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseTextDoneEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseTextDoneEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseTextDoneEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseTextDoneEvent build()
Returns an immutable instance of ResponseTextDoneEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentIndex() .itemId() .outputIndex() .text()
-
-
-
-