Package com.openai.models.responses
Interface ResponseInputContent.Visitor
-
- All Implemented Interfaces:
public interface ResponseInputContent.Visitor<T extends Object>
An interface that defines how to map each variant of ResponseInputContent to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitInputText(ResponseInputText inputText)
A text input to the model. abstract T
visitInputImage(ResponseInputImage inputImage)
An image input to the model. abstract T
visitInputFile(ResponseInputFile inputFile)
A file input to the model. T
unknown(JsonValue json)
Maps an unknown variant of ResponseInputContent to a value of type T. -
-
Method Detail
-
visitInputText
abstract T visitInputText(ResponseInputText inputText)
A text input to the model.
-
visitInputImage
abstract T visitInputImage(ResponseInputImage inputImage)
An image input to the model. Learn about image inputs.
-
visitInputFile
abstract T visitInputFile(ResponseInputFile inputFile)
A file input to the model.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of ResponseInputContent to a value of type T.
An instance of ResponseInputContent 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.
-
-
-
-