Class BetaResponseOutputItemDoneEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseOutputItemDoneEvent.BuilderA builder for BetaResponseOutputItemDoneEvent.
-
-
Method Summary
Modifier and Type Method Description final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem item)The output item that was marked done. final BetaResponseOutputItemDoneEvent.Builderitem(JsonField<BetaResponseOutputItem> item)Sets Builder.item to an arbitrary JSON value. final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputMessage message)Alias for calling item with BetaResponseOutputItem.ofMessage(message).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseFileSearchToolCall fileSearchCall)Alias for calling item with BetaResponseOutputItem.ofFileSearchCall(fileSearchCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseFunctionToolCall functionCall)Alias for calling item with BetaResponseOutputItem.ofFunctionCall(functionCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseFunctionToolCallOutputItem functionCallOutput)Alias for calling item with BetaResponseOutputItem.ofFunctionCallOutput(functionCallOutput).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.AgentMessage agentMessage)Alias for calling item with BetaResponseOutputItem.ofAgentMessage(agentMessage).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.MultiAgentCall multiAgentCall)Alias for calling item with BetaResponseOutputItem.ofMultiAgentCall(multiAgentCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.MultiAgentCallOutput multiAgentCallOutput)Alias for calling item with BetaResponseOutputItem.ofMultiAgentCallOutput(multiAgentCallOutput).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseFunctionWebSearch webSearchCall)Alias for calling item with BetaResponseOutputItem.ofWebSearchCall(webSearchCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseComputerToolCall computerCall)Alias for calling item with BetaResponseOutputItem.ofComputerCall(computerCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseComputerToolCallOutputItem computerCallOutput)Alias for calling item with BetaResponseOutputItem.ofComputerCallOutput(computerCallOutput).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseReasoningItem reasoning)Alias for calling item with BetaResponseOutputItem.ofReasoning(reasoning).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.Program program)Alias for calling item with BetaResponseOutputItem.ofProgram(program).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.ProgramOutput programOutput)Alias for calling item with BetaResponseOutputItem.ofProgramOutput(programOutput).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseToolSearchCall toolSearchCall)Alias for calling item with BetaResponseOutputItem.ofToolSearchCall(toolSearchCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseToolSearchOutputItem toolSearchOutput)Alias for calling item with BetaResponseOutputItem.ofToolSearchOutput(toolSearchOutput).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.AdditionalTools additionalTools)Alias for calling item with BetaResponseOutputItem.ofAdditionalTools(additionalTools).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseCompactionItem compaction)Alias for calling item with BetaResponseOutputItem.ofCompaction(compaction).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.ImageGenerationCall imageGenerationCall)Alias for calling item with BetaResponseOutputItem.ofImageGenerationCall(imageGenerationCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseCodeInterpreterToolCall codeInterpreterCall)Alias for calling item with BetaResponseOutputItem.ofCodeInterpreterCall(codeInterpreterCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.LocalShellCall localShellCall)Alias for calling item with BetaResponseOutputItem.ofLocalShellCall(localShellCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.LocalShellCallOutput localShellCallOutput)Alias for calling item with BetaResponseOutputItem.ofLocalShellCallOutput(localShellCallOutput).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseFunctionShellToolCall shellCall)Alias for calling item with BetaResponseOutputItem.ofShellCall(shellCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseFunctionShellToolCallOutput shellCallOutput)Alias for calling item with BetaResponseOutputItem.ofShellCallOutput(shellCallOutput).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseApplyPatchToolCall applyPatchCall)Alias for calling item with BetaResponseOutputItem.ofApplyPatchCall(applyPatchCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseApplyPatchToolCallOutput applyPatchCallOutput)Alias for calling item with BetaResponseOutputItem.ofApplyPatchCallOutput(applyPatchCallOutput).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.McpCall mcpCall)Alias for calling item with BetaResponseOutputItem.ofMcpCall(mcpCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.McpListTools mcpListTools)Alias for calling item with BetaResponseOutputItem.ofMcpListTools(mcpListTools).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.McpApprovalRequest mcpApprovalRequest)Alias for calling item with BetaResponseOutputItem.ofMcpApprovalRequest(mcpApprovalRequest).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseOutputItem.McpApprovalResponse mcpApprovalResponse)Alias for calling item with BetaResponseOutputItem.ofMcpApprovalResponse(mcpApprovalResponse).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseCustomToolCall customToolCall)Alias for calling item with BetaResponseOutputItem.ofCustomToolCall(customToolCall).final BetaResponseOutputItemDoneEvent.Builderitem(BetaResponseCustomToolCallOutputItem customToolCallOutput)Alias for calling item with BetaResponseOutputItem.ofCustomToolCallOutput(customToolCallOutput).final BetaResponseOutputItemDoneEvent.BuilderoutputIndex(Long outputIndex)The index of the output item that was marked done. final BetaResponseOutputItemDoneEvent.BuilderoutputIndex(JsonField<Long> outputIndex)Sets Builder.outputIndex to an arbitrary JSON value. final BetaResponseOutputItemDoneEvent.BuildersequenceNumber(Long sequenceNumber)The sequence number of this event. final BetaResponseOutputItemDoneEvent.BuildersequenceNumber(JsonField<Long> sequenceNumber)Sets Builder.sequenceNumber to an arbitrary JSON value. final BetaResponseOutputItemDoneEvent.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaResponseOutputItemDoneEvent.Builderagent(BetaResponseOutputItemDoneEvent.Agent agent)The agent that owns this multi-agent streaming event. final BetaResponseOutputItemDoneEvent.Builderagent(Optional<BetaResponseOutputItemDoneEvent.Agent> agent)Alias for calling Builder.agent with agent.orElse(null).final BetaResponseOutputItemDoneEvent.Builderagent(JsonField<BetaResponseOutputItemDoneEvent.Agent> agent)Sets Builder.agent to an arbitrary JSON value. final BetaResponseOutputItemDoneEvent.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaResponseOutputItemDoneEvent.BuilderputAdditionalProperty(String key, JsonValue value)final BetaResponseOutputItemDoneEvent.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaResponseOutputItemDoneEvent.BuilderremoveAdditionalProperty(String key)final BetaResponseOutputItemDoneEvent.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaResponseOutputItemDoneEventbuild()Returns an immutable instance of BetaResponseOutputItemDoneEvent. -
-
Method Detail
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem item)
The output item that was marked done.
-
item
final BetaResponseOutputItemDoneEvent.Builder item(JsonField<BetaResponseOutputItem> item)
Sets Builder.item to an arbitrary JSON value.
You should usually call Builder.item with a well-typed BetaResponseOutputItem value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputMessage message)
Alias for calling item with
BetaResponseOutputItem.ofMessage(message).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseFileSearchToolCall fileSearchCall)
Alias for calling item with
BetaResponseOutputItem.ofFileSearchCall(fileSearchCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseFunctionToolCall functionCall)
Alias for calling item with
BetaResponseOutputItem.ofFunctionCall(functionCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseFunctionToolCallOutputItem functionCallOutput)
Alias for calling item with
BetaResponseOutputItem.ofFunctionCallOutput(functionCallOutput).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.AgentMessage agentMessage)
Alias for calling item with
BetaResponseOutputItem.ofAgentMessage(agentMessage).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.MultiAgentCall multiAgentCall)
Alias for calling item with
BetaResponseOutputItem.ofMultiAgentCall(multiAgentCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.MultiAgentCallOutput multiAgentCallOutput)
Alias for calling item with
BetaResponseOutputItem.ofMultiAgentCallOutput(multiAgentCallOutput).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseFunctionWebSearch webSearchCall)
Alias for calling item with
BetaResponseOutputItem.ofWebSearchCall(webSearchCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseComputerToolCall computerCall)
Alias for calling item with
BetaResponseOutputItem.ofComputerCall(computerCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseComputerToolCallOutputItem computerCallOutput)
Alias for calling item with
BetaResponseOutputItem.ofComputerCallOutput(computerCallOutput).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseReasoningItem reasoning)
Alias for calling item with
BetaResponseOutputItem.ofReasoning(reasoning).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.Program program)
Alias for calling item with
BetaResponseOutputItem.ofProgram(program).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.ProgramOutput programOutput)
Alias for calling item with
BetaResponseOutputItem.ofProgramOutput(programOutput).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseToolSearchCall toolSearchCall)
Alias for calling item with
BetaResponseOutputItem.ofToolSearchCall(toolSearchCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseToolSearchOutputItem toolSearchOutput)
Alias for calling item with
BetaResponseOutputItem.ofToolSearchOutput(toolSearchOutput).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.AdditionalTools additionalTools)
Alias for calling item with
BetaResponseOutputItem.ofAdditionalTools(additionalTools).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseCompactionItem compaction)
Alias for calling item with
BetaResponseOutputItem.ofCompaction(compaction).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.ImageGenerationCall imageGenerationCall)
Alias for calling item with
BetaResponseOutputItem.ofImageGenerationCall(imageGenerationCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseCodeInterpreterToolCall codeInterpreterCall)
Alias for calling item with
BetaResponseOutputItem.ofCodeInterpreterCall(codeInterpreterCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.LocalShellCall localShellCall)
Alias for calling item with
BetaResponseOutputItem.ofLocalShellCall(localShellCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.LocalShellCallOutput localShellCallOutput)
Alias for calling item with
BetaResponseOutputItem.ofLocalShellCallOutput(localShellCallOutput).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseFunctionShellToolCall shellCall)
Alias for calling item with
BetaResponseOutputItem.ofShellCall(shellCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseFunctionShellToolCallOutput shellCallOutput)
Alias for calling item with
BetaResponseOutputItem.ofShellCallOutput(shellCallOutput).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseApplyPatchToolCall applyPatchCall)
Alias for calling item with
BetaResponseOutputItem.ofApplyPatchCall(applyPatchCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseApplyPatchToolCallOutput applyPatchCallOutput)
Alias for calling item with
BetaResponseOutputItem.ofApplyPatchCallOutput(applyPatchCallOutput).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.McpCall mcpCall)
Alias for calling item with
BetaResponseOutputItem.ofMcpCall(mcpCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.McpListTools mcpListTools)
Alias for calling item with
BetaResponseOutputItem.ofMcpListTools(mcpListTools).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.McpApprovalRequest mcpApprovalRequest)
Alias for calling item with
BetaResponseOutputItem.ofMcpApprovalRequest(mcpApprovalRequest).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseOutputItem.McpApprovalResponse mcpApprovalResponse)
Alias for calling item with
BetaResponseOutputItem.ofMcpApprovalResponse(mcpApprovalResponse).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseCustomToolCall customToolCall)
Alias for calling item with
BetaResponseOutputItem.ofCustomToolCall(customToolCall).
-
item
final BetaResponseOutputItemDoneEvent.Builder item(BetaResponseCustomToolCallOutputItem customToolCallOutput)
Alias for calling item with
BetaResponseOutputItem.ofCustomToolCallOutput(customToolCallOutput).
-
outputIndex
final BetaResponseOutputItemDoneEvent.Builder outputIndex(Long outputIndex)
The index of the output item that was marked done.
-
outputIndex
final BetaResponseOutputItemDoneEvent.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 BetaResponseOutputItemDoneEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number of this event.
-
sequenceNumber
final BetaResponseOutputItemDoneEvent.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 BetaResponseOutputItemDoneEvent.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_item.done")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseOutputItemDoneEvent.Builder agent(BetaResponseOutputItemDoneEvent.Agent agent)
The agent that owns this multi-agent streaming event.
-
agent
final BetaResponseOutputItemDoneEvent.Builder agent(Optional<BetaResponseOutputItemDoneEvent.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseOutputItemDoneEvent.Builder agent(JsonField<BetaResponseOutputItemDoneEvent.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 BetaResponseOutputItemDoneEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseOutputItemDoneEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseOutputItemDoneEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseOutputItemDoneEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseOutputItemDoneEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseOutputItemDoneEvent build()
Returns an immutable instance of BetaResponseOutputItemDoneEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.item() .outputIndex() .sequenceNumber()
-
-
-
-