Class BetaResponseContentPartDoneEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseContentPartDoneEvent.BuilderA builder for BetaResponseContentPartDoneEvent.
-
-
Method Summary
-
-
Method Detail
-
contentIndex
final BetaResponseContentPartDoneEvent.Builder contentIndex(Long contentIndex)
The index of the content part that is done.
-
contentIndex
final BetaResponseContentPartDoneEvent.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 BetaResponseContentPartDoneEvent.Builder itemId(String itemId)
The ID of the output item that the content part was added to.
-
itemId
final BetaResponseContentPartDoneEvent.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 BetaResponseContentPartDoneEvent.Builder outputIndex(Long outputIndex)
The index of the output item that the content part was added to.
-
outputIndex
final BetaResponseContentPartDoneEvent.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 BetaResponseContentPartDoneEvent.Builder part(BetaResponseContentPartDoneEvent.Part part)
The content part that is done.
-
part
final BetaResponseContentPartDoneEvent.Builder part(JsonField<BetaResponseContentPartDoneEvent.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 BetaResponseContentPartDoneEvent.Builder part(BetaResponseOutputText outputText)
Alias for calling part with
Part.ofOutputText(outputText).
-
part
final BetaResponseContentPartDoneEvent.Builder part(BetaResponseOutputRefusal refusal)
Alias for calling part with
Part.ofRefusal(refusal).
-
part
final BetaResponseContentPartDoneEvent.Builder part(BetaResponseContentPartDoneEvent.Part.ReasoningText reasoningText)
Alias for calling part with
Part.ofReasoningText(reasoningText).
-
refusalPart
final BetaResponseContentPartDoneEvent.Builder refusalPart(String refusal)
Alias for calling part with the following:
BetaResponseOutputRefusal.builder() .refusal(refusal) .build()
-
reasoningTextPart
final BetaResponseContentPartDoneEvent.Builder reasoningTextPart(String text)
Alias for calling part with the following:
Part.ReasoningText.builder() .text(text) .build()
-
sequenceNumber
final BetaResponseContentPartDoneEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of this event.
-
sequenceNumber
final BetaResponseContentPartDoneEvent.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 BetaResponseContentPartDoneEvent.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.done")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseContentPartDoneEvent.Builder agent(BetaResponseContentPartDoneEvent.Agent agent)
The agent that owns this multi-agent streaming event.
-
agent
final BetaResponseContentPartDoneEvent.Builder agent(Optional<BetaResponseContentPartDoneEvent.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseContentPartDoneEvent.Builder agent(JsonField<BetaResponseContentPartDoneEvent.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 BetaResponseContentPartDoneEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseContentPartDoneEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseContentPartDoneEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseContentPartDoneEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseContentPartDoneEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseContentPartDoneEvent build()
Returns an immutable instance of BetaResponseContentPartDoneEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentIndex() .itemId() .outputIndex() .part() .sequenceNumber()
-
-
-
-