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