Class BetaResponseInjectFailedEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseInjectFailedEvent.BuilderA builder for BetaResponseInjectFailedEvent.
-
-
Method Summary
Modifier and Type Method Description final BetaResponseInjectFailedEvent.Buildererror(BetaResponseInjectFailedEvent.Error error)Information about why the input was not committed. final BetaResponseInjectFailedEvent.Buildererror(JsonField<BetaResponseInjectFailedEvent.Error> error)Sets Builder.error to an arbitrary JSON value. final BetaResponseInjectFailedEvent.Builderinput(List<BetaResponseInputItem> input)The raw input items that were not committed. final BetaResponseInjectFailedEvent.Builderinput(JsonField<List<BetaResponseInputItem>> input)Sets Builder.input to an arbitrary JSON value. final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem input)Adds a single BetaResponseInputItem to Builder.input. final BetaResponseInjectFailedEvent.BuilderaddInput(BetaEasyInputMessage betaEasyInputMessage)Alias for calling addInput with BetaResponseInputItem.ofBetaEasyInputMessage(betaEasyInputMessage).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.Message message)Alias for calling addInput with BetaResponseInputItem.ofMessage(message).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseOutputMessage betaResponseOutputMessage)Alias for calling addInput with BetaResponseInputItem.ofBetaResponseOutputMessage(betaResponseOutputMessage).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseFileSearchToolCall fileSearchCall)Alias for calling addInput with BetaResponseInputItem.ofFileSearchCall(fileSearchCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseComputerToolCall computerCall)Alias for calling addInput with BetaResponseInputItem.ofComputerCall(computerCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ComputerCallOutput computerCallOutput)Alias for calling addInput with BetaResponseInputItem.ofComputerCallOutput(computerCallOutput).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseFunctionWebSearch webSearchCall)Alias for calling addInput with BetaResponseInputItem.ofWebSearchCall(webSearchCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseFunctionToolCall functionCall)Alias for calling addInput with BetaResponseInputItem.ofFunctionCall(functionCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.FunctionCallOutput functionCallOutput)Alias for calling addInput with BetaResponseInputItem.ofFunctionCallOutput(functionCallOutput).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.AgentMessage agentMessage)Alias for calling addInput with BetaResponseInputItem.ofAgentMessage(agentMessage).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.MultiAgentCall multiAgentCall)Alias for calling addInput with BetaResponseInputItem.ofMultiAgentCall(multiAgentCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.MultiAgentCallOutput multiAgentCallOutput)Alias for calling addInput with BetaResponseInputItem.ofMultiAgentCallOutput(multiAgentCallOutput).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ToolSearchCall toolSearchCall)Alias for calling addInput with BetaResponseInputItem.ofToolSearchCall(toolSearchCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseToolSearchOutputItemParam toolSearchOutput)Alias for calling addInput with BetaResponseInputItem.ofToolSearchOutput(toolSearchOutput).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.AdditionalTools additionalTools)Alias for calling addInput with BetaResponseInputItem.ofAdditionalTools(additionalTools).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseReasoningItem reasoning)Alias for calling addInput with BetaResponseInputItem.ofReasoning(reasoning).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseCompactionItemParam compaction)Alias for calling addInput with BetaResponseInputItem.ofCompaction(compaction).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ImageGenerationCall imageGenerationCall)Alias for calling addInput with BetaResponseInputItem.ofImageGenerationCall(imageGenerationCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseCodeInterpreterToolCall codeInterpreterCall)Alias for calling addInput with BetaResponseInputItem.ofCodeInterpreterCall(codeInterpreterCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.LocalShellCall localShellCall)Alias for calling addInput with BetaResponseInputItem.ofLocalShellCall(localShellCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.LocalShellCallOutput localShellCallOutput)Alias for calling addInput with BetaResponseInputItem.ofLocalShellCallOutput(localShellCallOutput).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ShellCall shellCall)Alias for calling addInput with BetaResponseInputItem.ofShellCall(shellCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ShellCallOutput shellCallOutput)Alias for calling addInput with BetaResponseInputItem.ofShellCallOutput(shellCallOutput).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ApplyPatchCall applyPatchCall)Alias for calling addInput with BetaResponseInputItem.ofApplyPatchCall(applyPatchCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ApplyPatchCallOutput applyPatchCallOutput)Alias for calling addInput with BetaResponseInputItem.ofApplyPatchCallOutput(applyPatchCallOutput).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.McpListTools mcpListTools)Alias for calling addInput with BetaResponseInputItem.ofMcpListTools(mcpListTools).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.McpApprovalRequest mcpApprovalRequest)Alias for calling addInput with BetaResponseInputItem.ofMcpApprovalRequest(mcpApprovalRequest).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.McpApprovalResponse mcpApprovalResponse)Alias for calling addInput with BetaResponseInputItem.ofMcpApprovalResponse(mcpApprovalResponse).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.McpCall mcpCall)Alias for calling addInput with BetaResponseInputItem.ofMcpCall(mcpCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseCustomToolCallOutput customToolCallOutput)Alias for calling addInput with BetaResponseInputItem.ofCustomToolCallOutput(customToolCallOutput).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseCustomToolCall customToolCall)Alias for calling addInput with BetaResponseInputItem.ofCustomToolCall(customToolCall).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.CompactionTrigger compactionTrigger)Alias for calling addInput with BetaResponseInputItem.ofCompactionTrigger(compactionTrigger).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ItemReference itemReference)Alias for calling addInput with BetaResponseInputItem.ofItemReference(itemReference).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.Program program)Alias for calling addInput with BetaResponseInputItem.ofProgram(program).final BetaResponseInjectFailedEvent.BuilderaddInput(BetaResponseInputItem.ProgramOutput programOutput)Alias for calling addInput with BetaResponseInputItem.ofProgramOutput(programOutput).final BetaResponseInjectFailedEvent.BuilderaddToolSearchCallInput(JsonValue arguments)Alias for calling addInput with the following: BetaResponseInputItem.ToolSearchCall.builder() .arguments(arguments) .build()final BetaResponseInjectFailedEvent.BuilderaddToolSearchOutputInput(List<BetaTool> tools)Alias for calling addInput with the following: BetaResponseToolSearchOutputItemParam.builder() .tools(tools) .build()final BetaResponseInjectFailedEvent.BuilderaddAdditionalToolsInput(List<BetaTool> tools)Alias for calling addInput with the following: BetaResponseInputItem.AdditionalTools.builder() .tools(tools) .build()final BetaResponseInjectFailedEvent.BuilderaddCompactionInput(String encryptedContent)Alias for calling addInput with the following: BetaResponseCompactionItemParam.builder() .encryptedContent(encryptedContent) .build()final BetaResponseInjectFailedEvent.BuilderaddItemReferenceInput(String id)Alias for calling addInput with the following: BetaResponseInputItem.ItemReference.builder() .type(BetaResponseInputItem.ItemReference.Type.ITEM_REFERENCE) .id(id) .build()final BetaResponseInjectFailedEvent.BuilderresponseId(String responseId)The ID of the response that rejected the input. final BetaResponseInjectFailedEvent.BuilderresponseId(JsonField<String> responseId)Sets Builder.responseId to an arbitrary JSON value. final BetaResponseInjectFailedEvent.BuildersequenceNumber(Long sequenceNumber)The sequence number for this event. final BetaResponseInjectFailedEvent.BuildersequenceNumber(JsonField<Long> sequenceNumber)Sets Builder.sequenceNumber to an arbitrary JSON value. final BetaResponseInjectFailedEvent.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaResponseInjectFailedEvent.BuilderstreamId(String streamId)The multiplexed WebSocket stream that emitted the event. final BetaResponseInjectFailedEvent.BuilderstreamId(JsonField<String> streamId)Sets Builder.streamId to an arbitrary JSON value. final BetaResponseInjectFailedEvent.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaResponseInjectFailedEvent.BuilderputAdditionalProperty(String key, JsonValue value)final BetaResponseInjectFailedEvent.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaResponseInjectFailedEvent.BuilderremoveAdditionalProperty(String key)final BetaResponseInjectFailedEvent.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaResponseInjectFailedEventbuild()Returns an immutable instance of BetaResponseInjectFailedEvent. -
-
Method Detail
-
error
final BetaResponseInjectFailedEvent.Builder error(BetaResponseInjectFailedEvent.Error error)
Information about why the input was not committed.
-
error
final BetaResponseInjectFailedEvent.Builder error(JsonField<BetaResponseInjectFailedEvent.Error> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed Error value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
input
final BetaResponseInjectFailedEvent.Builder input(List<BetaResponseInputItem> input)
The raw input items that were not committed.
-
input
final BetaResponseInjectFailedEvent.Builder input(JsonField<List<BetaResponseInputItem>> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed
List<BetaResponseInputItem>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem input)
Adds a single BetaResponseInputItem to Builder.input.
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaEasyInputMessage betaEasyInputMessage)
Alias for calling addInput with
BetaResponseInputItem.ofBetaEasyInputMessage(betaEasyInputMessage).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.Message message)
Alias for calling addInput with
BetaResponseInputItem.ofMessage(message).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseOutputMessage betaResponseOutputMessage)
Alias for calling addInput with
BetaResponseInputItem.ofBetaResponseOutputMessage(betaResponseOutputMessage).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseFileSearchToolCall fileSearchCall)
Alias for calling addInput with
BetaResponseInputItem.ofFileSearchCall(fileSearchCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseComputerToolCall computerCall)
Alias for calling addInput with
BetaResponseInputItem.ofComputerCall(computerCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ComputerCallOutput computerCallOutput)
Alias for calling addInput with
BetaResponseInputItem.ofComputerCallOutput(computerCallOutput).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseFunctionWebSearch webSearchCall)
Alias for calling addInput with
BetaResponseInputItem.ofWebSearchCall(webSearchCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseFunctionToolCall functionCall)
Alias for calling addInput with
BetaResponseInputItem.ofFunctionCall(functionCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.FunctionCallOutput functionCallOutput)
Alias for calling addInput with
BetaResponseInputItem.ofFunctionCallOutput(functionCallOutput).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.AgentMessage agentMessage)
Alias for calling addInput with
BetaResponseInputItem.ofAgentMessage(agentMessage).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.MultiAgentCall multiAgentCall)
Alias for calling addInput with
BetaResponseInputItem.ofMultiAgentCall(multiAgentCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.MultiAgentCallOutput multiAgentCallOutput)
Alias for calling addInput with
BetaResponseInputItem.ofMultiAgentCallOutput(multiAgentCallOutput).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ToolSearchCall toolSearchCall)
Alias for calling addInput with
BetaResponseInputItem.ofToolSearchCall(toolSearchCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseToolSearchOutputItemParam toolSearchOutput)
Alias for calling addInput with
BetaResponseInputItem.ofToolSearchOutput(toolSearchOutput).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.AdditionalTools additionalTools)
Alias for calling addInput with
BetaResponseInputItem.ofAdditionalTools(additionalTools).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseReasoningItem reasoning)
Alias for calling addInput with
BetaResponseInputItem.ofReasoning(reasoning).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseCompactionItemParam compaction)
Alias for calling addInput with
BetaResponseInputItem.ofCompaction(compaction).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ImageGenerationCall imageGenerationCall)
Alias for calling addInput with
BetaResponseInputItem.ofImageGenerationCall(imageGenerationCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseCodeInterpreterToolCall codeInterpreterCall)
Alias for calling addInput with
BetaResponseInputItem.ofCodeInterpreterCall(codeInterpreterCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.LocalShellCall localShellCall)
Alias for calling addInput with
BetaResponseInputItem.ofLocalShellCall(localShellCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.LocalShellCallOutput localShellCallOutput)
Alias for calling addInput with
BetaResponseInputItem.ofLocalShellCallOutput(localShellCallOutput).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ShellCall shellCall)
Alias for calling addInput with
BetaResponseInputItem.ofShellCall(shellCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ShellCallOutput shellCallOutput)
Alias for calling addInput with
BetaResponseInputItem.ofShellCallOutput(shellCallOutput).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ApplyPatchCall applyPatchCall)
Alias for calling addInput with
BetaResponseInputItem.ofApplyPatchCall(applyPatchCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ApplyPatchCallOutput applyPatchCallOutput)
Alias for calling addInput with
BetaResponseInputItem.ofApplyPatchCallOutput(applyPatchCallOutput).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.McpListTools mcpListTools)
Alias for calling addInput with
BetaResponseInputItem.ofMcpListTools(mcpListTools).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.McpApprovalRequest mcpApprovalRequest)
Alias for calling addInput with
BetaResponseInputItem.ofMcpApprovalRequest(mcpApprovalRequest).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.McpApprovalResponse mcpApprovalResponse)
Alias for calling addInput with
BetaResponseInputItem.ofMcpApprovalResponse(mcpApprovalResponse).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.McpCall mcpCall)
Alias for calling addInput with
BetaResponseInputItem.ofMcpCall(mcpCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseCustomToolCallOutput customToolCallOutput)
Alias for calling addInput with
BetaResponseInputItem.ofCustomToolCallOutput(customToolCallOutput).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseCustomToolCall customToolCall)
Alias for calling addInput with
BetaResponseInputItem.ofCustomToolCall(customToolCall).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.CompactionTrigger compactionTrigger)
Alias for calling addInput with
BetaResponseInputItem.ofCompactionTrigger(compactionTrigger).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ItemReference itemReference)
Alias for calling addInput with
BetaResponseInputItem.ofItemReference(itemReference).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.Program program)
Alias for calling addInput with
BetaResponseInputItem.ofProgram(program).
-
addInput
final BetaResponseInjectFailedEvent.Builder addInput(BetaResponseInputItem.ProgramOutput programOutput)
Alias for calling addInput with
BetaResponseInputItem.ofProgramOutput(programOutput).
-
addToolSearchCallInput
final BetaResponseInjectFailedEvent.Builder addToolSearchCallInput(JsonValue arguments)
Alias for calling addInput with the following:
BetaResponseInputItem.ToolSearchCall.builder() .arguments(arguments) .build()
-
addToolSearchOutputInput
final BetaResponseInjectFailedEvent.Builder addToolSearchOutputInput(List<BetaTool> tools)
Alias for calling addInput with the following:
BetaResponseToolSearchOutputItemParam.builder() .tools(tools) .build()
-
addAdditionalToolsInput
final BetaResponseInjectFailedEvent.Builder addAdditionalToolsInput(List<BetaTool> tools)
Alias for calling addInput with the following:
BetaResponseInputItem.AdditionalTools.builder() .tools(tools) .build()
-
addCompactionInput
final BetaResponseInjectFailedEvent.Builder addCompactionInput(String encryptedContent)
Alias for calling addInput with the following:
BetaResponseCompactionItemParam.builder() .encryptedContent(encryptedContent) .build()
-
addItemReferenceInput
final BetaResponseInjectFailedEvent.Builder addItemReferenceInput(String id)
Alias for calling addInput with the following:
BetaResponseInputItem.ItemReference.builder() .type(BetaResponseInputItem.ItemReference.Type.ITEM_REFERENCE) .id(id) .build()
-
responseId
final BetaResponseInjectFailedEvent.Builder responseId(String responseId)
The ID of the response that rejected the input.
-
responseId
final BetaResponseInjectFailedEvent.Builder responseId(JsonField<String> responseId)
Sets Builder.responseId to an arbitrary JSON value.
You should usually call Builder.responseId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sequenceNumber
final BetaResponseInjectFailedEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number for this event.
-
sequenceNumber
final BetaResponseInjectFailedEvent.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 BetaResponseInjectFailedEvent.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.inject.failed")This method is primarily for setting the field to an undocumented or not yet supported value.
-
streamId
final BetaResponseInjectFailedEvent.Builder streamId(String streamId)
The multiplexed WebSocket stream that emitted the event. This field is present only when WebSocket multiplexing is enabled separately.
-
streamId
final BetaResponseInjectFailedEvent.Builder streamId(JsonField<String> streamId)
Sets Builder.streamId to an arbitrary JSON value.
You should usually call Builder.streamId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseInjectFailedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseInjectFailedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseInjectFailedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseInjectFailedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseInjectFailedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseInjectFailedEvent build()
Returns an immutable instance of BetaResponseInjectFailedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.error() .input() .responseId() .sequenceNumber()
-
-
-
-