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