Package com.openai.models.responses
Interface ResponseFunctionCallOutputItem.Visitor
-
- All Implemented Interfaces:
public interface ResponseFunctionCallOutputItem.Visitor<T extends Object>
An interface that defines how to map each variant of ResponseFunctionCallOutputItem to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitInputText(ResponseInputTextContent inputText)
A text input to the model. abstract T
visitInputImage(ResponseInputImageContent inputImage)
An image input to the model. abstract T
visitInputFile(ResponseInputFileContent inputFile)
A file input to the model. T
unknown(JsonValue json)
Maps an unknown variant of ResponseFunctionCallOutputItem to a value of type T. -
-
Method Detail
-
visitInputText
abstract T visitInputText(ResponseInputTextContent inputText)
A text input to the model.
-
visitInputImage
abstract T visitInputImage(ResponseInputImageContent inputImage)
An image input to the model. Learn about image inputs
-
visitInputFile
abstract T visitInputFile(ResponseInputFileContent inputFile)
A file input to the model.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of ResponseFunctionCallOutputItem to a value of type T.
An instance of ResponseFunctionCallOutputItem can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-