Class BetaResponseCustomToolCallInputDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseCustomToolCallInputDeltaEvent.BuilderA builder for BetaResponseCustomToolCallInputDeltaEvent.
-
-
Method Summary
-
-
Method Detail
-
delta
final BetaResponseCustomToolCallInputDeltaEvent.Builder delta(String delta)
The incremental input data (delta) for the custom tool call.
-
delta
final BetaResponseCustomToolCallInputDeltaEvent.Builder delta(JsonField<String> delta)
Sets Builder.delta to an arbitrary JSON value.
You should usually call Builder.delta with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
itemId
final BetaResponseCustomToolCallInputDeltaEvent.Builder itemId(String itemId)
Unique identifier for the API item associated with this event.
-
itemId
final BetaResponseCustomToolCallInputDeltaEvent.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 BetaResponseCustomToolCallInputDeltaEvent.Builder outputIndex(Long outputIndex)
The index of the output this delta applies to.
-
outputIndex
final BetaResponseCustomToolCallInputDeltaEvent.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.
-
sequenceNumber
final BetaResponseCustomToolCallInputDeltaEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of this event.
-
sequenceNumber
final BetaResponseCustomToolCallInputDeltaEvent.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 BetaResponseCustomToolCallInputDeltaEvent.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.custom_tool_call_input.delta")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseCustomToolCallInputDeltaEvent.Builder agent(BetaResponseCustomToolCallInputDeltaEvent.Agent agent)
The agent that owns this multi-agent streaming event.
-
agent
final BetaResponseCustomToolCallInputDeltaEvent.Builder agent(Optional<BetaResponseCustomToolCallInputDeltaEvent.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseCustomToolCallInputDeltaEvent.Builder agent(JsonField<BetaResponseCustomToolCallInputDeltaEvent.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 BetaResponseCustomToolCallInputDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseCustomToolCallInputDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseCustomToolCallInputDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseCustomToolCallInputDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseCustomToolCallInputDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseCustomToolCallInputDeltaEvent build()
Returns an immutable instance of BetaResponseCustomToolCallInputDeltaEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.delta() .itemId() .outputIndex() .sequenceNumber()
-
-
-
-