Class BetaResponseReasoningSummaryPartDoneEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseReasoningSummaryPartDoneEvent.BuilderA builder for BetaResponseReasoningSummaryPartDoneEvent.
-
-
Method Summary
-
-
Method Detail
-
itemId
final BetaResponseReasoningSummaryPartDoneEvent.Builder itemId(String itemId)
The ID of the item this summary part is associated with.
-
itemId
final BetaResponseReasoningSummaryPartDoneEvent.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 BetaResponseReasoningSummaryPartDoneEvent.Builder outputIndex(Long outputIndex)
The index of the output item this summary part is associated with.
-
outputIndex
final BetaResponseReasoningSummaryPartDoneEvent.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 BetaResponseReasoningSummaryPartDoneEvent.Builder part(BetaResponseReasoningSummaryPartDoneEvent.Part part)
The completed summary part.
-
part
final BetaResponseReasoningSummaryPartDoneEvent.Builder part(JsonField<BetaResponseReasoningSummaryPartDoneEvent.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.
-
sequenceNumber
final BetaResponseReasoningSummaryPartDoneEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of this event.
-
sequenceNumber
final BetaResponseReasoningSummaryPartDoneEvent.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.
-
summaryIndex
final BetaResponseReasoningSummaryPartDoneEvent.Builder summaryIndex(Long summaryIndex)
The index of the summary part within the reasoning summary.
-
summaryIndex
final BetaResponseReasoningSummaryPartDoneEvent.Builder summaryIndex(JsonField<Long> summaryIndex)
Sets Builder.summaryIndex to an arbitrary JSON value.
You should usually call Builder.summaryIndex 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 BetaResponseReasoningSummaryPartDoneEvent.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_summary_part.done")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseReasoningSummaryPartDoneEvent.Builder agent(BetaResponseReasoningSummaryPartDoneEvent.Agent agent)
The agent that owns this multi-agent streaming event.
-
agent
final BetaResponseReasoningSummaryPartDoneEvent.Builder agent(Optional<BetaResponseReasoningSummaryPartDoneEvent.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseReasoningSummaryPartDoneEvent.Builder agent(JsonField<BetaResponseReasoningSummaryPartDoneEvent.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.
-
status
final BetaResponseReasoningSummaryPartDoneEvent.Builder status(BetaResponseReasoningSummaryPartDoneEvent.Status status)
The completion status of the summary part. Omitted when the part completed normally and set to
incompletewhen generation was interrupted.
-
status
final BetaResponseReasoningSummaryPartDoneEvent.Builder status(JsonField<BetaResponseReasoningSummaryPartDoneEvent.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseReasoningSummaryPartDoneEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseReasoningSummaryPartDoneEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseReasoningSummaryPartDoneEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseReasoningSummaryPartDoneEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseReasoningSummaryPartDoneEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseReasoningSummaryPartDoneEvent build()
Returns an immutable instance of BetaResponseReasoningSummaryPartDoneEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.itemId() .outputIndex() .part() .sequenceNumber() .summaryIndex()
-
-
-
-