Class ResponseContentPartAddedEvent.Builder
-
- All Implemented Interfaces:
public final class ResponseContentPartAddedEvent.Builder
A builder for ResponseContentPartAddedEvent.
-
-
Method Summary
-
-
Method Detail
-
contentIndex
final ResponseContentPartAddedEvent.Builder contentIndex(Long contentIndex)
The index of the content part that was added.
-
contentIndex
final ResponseContentPartAddedEvent.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 ResponseContentPartAddedEvent.Builder itemId(String itemId)
The ID of the output item that the content part was added to.
-
itemId
final ResponseContentPartAddedEvent.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 ResponseContentPartAddedEvent.Builder outputIndex(Long outputIndex)
The index of the output item that the content part was added to.
-
outputIndex
final ResponseContentPartAddedEvent.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.
-
part
final ResponseContentPartAddedEvent.Builder part(ResponseContentPartAddedEvent.Part part)
The content part that was added.
-
part
final ResponseContentPartAddedEvent.Builder part(JsonField<ResponseContentPartAddedEvent.Part> part)
Sets Builder.part to an arbitrary JSON value.
You should usually call Builder.part with a well-typed Part value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
part
final ResponseContentPartAddedEvent.Builder part(ResponseOutputText outputText)
Alias for calling part with
Part.ofOutputText(outputText)
.
-
part
final ResponseContentPartAddedEvent.Builder part(ResponseOutputRefusal refusal)
Alias for calling part with
Part.ofRefusal(refusal)
.
-
refusalPart
final ResponseContentPartAddedEvent.Builder refusalPart(String refusal)
Alias for calling part with the following:
ResponseOutputRefusal.builder() .refusal(refusal) .build()
-
type
final ResponseContentPartAddedEvent.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.content_part.added")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseContentPartAddedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseContentPartAddedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseContentPartAddedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseContentPartAddedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseContentPartAddedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseContentPartAddedEvent build()
Returns an immutable instance of ResponseContentPartAddedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentIndex() .itemId() .outputIndex() .part()
-
-
-
-