Package com.openai.models.responses
Class StructuredResponseOutputItem
-
- All Implemented Interfaces:
public final class StructuredResponseOutputItem<T extends Object>A wrapper for ResponseOutputItem that provides type-safe access to the message when using the Structured Outputs feature to deserialize a JSON response to an instance of an arbitrary class. See the SDK documentation for more details on Structured Outputs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceStructuredResponseOutputItem.Visitor
-
Field Summary
Fields Modifier and Type Field Description private final Class<T>responseTypeprivate final ResponseOutputItemrawOutputItem
-
Constructor Summary
Constructors Constructor Description StructuredResponseOutputItem(Class<T> responseType, ResponseOutputItem rawOutputItem)
-
Method Summary
-
-
Constructor Detail
-
StructuredResponseOutputItem
StructuredResponseOutputItem(Class<T> responseType, ResponseOutputItem rawOutputItem)
-
-
Method Detail
-
responseType
final Class<T> responseType()
-
rawOutputItem
final ResponseOutputItem rawOutputItem()
-
message
final Optional<StructuredResponseOutputMessage<T>> message()
-
fileSearchCall
final Optional<ResponseFileSearchToolCall> fileSearchCall()
-
functionCall
final Optional<ResponseFunctionToolCall> functionCall()
-
functionCallOutput
final Optional<ResponseFunctionToolCallOutputItem> functionCallOutput()
-
toolSearchCall
final Optional<ResponseToolSearchCall> toolSearchCall()
-
toolSearchOutput
final Optional<ResponseToolSearchOutputItem> toolSearchOutput()
-
additionalTools
final Optional<ResponseOutputItem.AdditionalTools> additionalTools()
-
webSearchCall
final Optional<ResponseFunctionWebSearch> webSearchCall()
-
computerCall
final Optional<ResponseComputerToolCall> computerCall()
-
computerCallOutput
final Optional<ResponseComputerToolCallOutputItem> computerCallOutput()
-
reasoning
final Optional<ResponseReasoningItem> reasoning()
-
compaction
final Optional<ResponseCompactionItem> compaction()
-
codeInterpreterCall
final Optional<ResponseCodeInterpreterToolCall> codeInterpreterCall()
-
imageGenerationCall
final Optional<ResponseOutputItem.ImageGenerationCall> imageGenerationCall()
-
localShellCall
final Optional<ResponseOutputItem.LocalShellCall> localShellCall()
-
localShellCallOutput
final Optional<ResponseOutputItem.LocalShellCallOutput> localShellCallOutput()
-
shellCall
final Optional<ResponseFunctionShellToolCall> shellCall()
-
shellCallOutput
final Optional<ResponseFunctionShellToolCallOutput> shellCallOutput()
-
applyPatchCall
final Optional<ResponseApplyPatchToolCall> applyPatchCall()
-
applyPatchCallOutput
final Optional<ResponseApplyPatchToolCallOutput> applyPatchCallOutput()
-
mcpApprovalRequest
final Optional<ResponseOutputItem.McpApprovalRequest> mcpApprovalRequest()
-
mcpApprovalResponse
final Optional<ResponseOutputItem.McpApprovalResponse> mcpApprovalResponse()
-
mcpCall
final Optional<ResponseOutputItem.McpCall> mcpCall()
-
mcpListTools
final Optional<ResponseOutputItem.McpListTools> mcpListTools()
-
customToolCall
final Optional<ResponseCustomToolCall> customToolCall()
-
customToolCallOutput
final Optional<ResponseCustomToolCallOutputItem> customToolCallOutput()
-
isFileSearchCall
final Boolean isFileSearchCall()
-
isFunctionCall
final Boolean isFunctionCall()
-
isFunctionCallOutput
final Boolean isFunctionCallOutput()
-
isToolSearchCall
final Boolean isToolSearchCall()
-
isToolSearchOutput
final Boolean isToolSearchOutput()
-
isAdditionalTools
final Boolean isAdditionalTools()
-
isWebSearchCall
final Boolean isWebSearchCall()
-
isComputerCall
final Boolean isComputerCall()
-
isComputerCallOutput
final Boolean isComputerCallOutput()
-
isReasoning
final Boolean isReasoning()
-
isCompaction
final Boolean isCompaction()
-
isCodeInterpreterCall
final Boolean isCodeInterpreterCall()
-
isImageGenerationCall
final Boolean isImageGenerationCall()
-
isLocalShellCall
final Boolean isLocalShellCall()
-
isLocalShellCallOutput
final Boolean isLocalShellCallOutput()
-
isShellCall
final Boolean isShellCall()
-
isShellCallOutput
final Boolean isShellCallOutput()
-
isApplyPatchCall
final Boolean isApplyPatchCall()
-
isApplyPatchCallOutput
final Boolean isApplyPatchCallOutput()
-
isMcpApprovalRequest
final Boolean isMcpApprovalRequest()
-
isMcpApprovalResponse
final Boolean isMcpApprovalResponse()
-
isMcpListTools
final Boolean isMcpListTools()
-
isCustomToolCall
final Boolean isCustomToolCall()
-
isCustomToolCallOutput
final Boolean isCustomToolCallOutput()
-
asMessage
final StructuredResponseOutputMessage<T> asMessage()
-
asFileSearchCall
final ResponseFileSearchToolCall asFileSearchCall()
-
asFunctionCall
final ResponseFunctionToolCall asFunctionCall()
-
asFunctionCallOutput
final ResponseFunctionToolCallOutputItem asFunctionCallOutput()
-
asToolSearchCall
final ResponseToolSearchCall asToolSearchCall()
-
asToolSearchOutput
final ResponseToolSearchOutputItem asToolSearchOutput()
-
asAdditionalTools
final ResponseOutputItem.AdditionalTools asAdditionalTools()
-
asWebSearchCall
final ResponseFunctionWebSearch asWebSearchCall()
-
asComputerCall
final ResponseComputerToolCall asComputerCall()
-
asComputerCallOutput
final ResponseComputerToolCallOutputItem asComputerCallOutput()
-
asReasoning
final ResponseReasoningItem asReasoning()
-
asCompaction
final ResponseCompactionItem asCompaction()
-
asCodeInterpreterCall
final ResponseCodeInterpreterToolCall asCodeInterpreterCall()
-
asImageGenerationCall
final ResponseOutputItem.ImageGenerationCall asImageGenerationCall()
-
asLocalShellCall
final ResponseOutputItem.LocalShellCall asLocalShellCall()
-
asLocalShellCallOutput
final ResponseOutputItem.LocalShellCallOutput asLocalShellCallOutput()
-
asShellCall
final ResponseFunctionShellToolCall asShellCall()
-
asShellCallOutput
final ResponseFunctionShellToolCallOutput asShellCallOutput()
-
asApplyPatchCall
final ResponseApplyPatchToolCall asApplyPatchCall()
-
asApplyPatchCallOutput
final ResponseApplyPatchToolCallOutput asApplyPatchCallOutput()
-
asMcpApprovalRequest
final ResponseOutputItem.McpApprovalRequest asMcpApprovalRequest()
-
asMcpApprovalResponse
final ResponseOutputItem.McpApprovalResponse asMcpApprovalResponse()
-
asMcpCall
final ResponseOutputItem.McpCall asMcpCall()
-
asMcpListTools
final ResponseOutputItem.McpListTools asMcpListTools()
-
asCustomToolCall
final ResponseCustomToolCall asCustomToolCall()
-
asCustomToolCallOutput
final ResponseCustomToolCallOutputItem asCustomToolCallOutput()
-
validate
final StructuredResponseOutputItem<T> validate()
-
-
-
-