Package com.openai.models.responses
Class ResponseInputContent
-
- All Implemented Interfaces:
public final class ResponseInputContent
A text input to the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ResponseInputContent.Visitor
An interface that defines how to map each variant of ResponseInputContent to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<ResponseInputText>
inputText()
A text input to the model. final Optional<ResponseInputImage>
inputImage()
An image input to the model. final Optional<ResponseInputFile>
inputFile()
A file input to the model. final Boolean
isInputText()
final Boolean
isInputImage()
final Boolean
isInputFile()
final ResponseInputText
asInputText()
A text input to the model. final ResponseInputImage
asInputImage()
An image input to the model. final ResponseInputFile
asInputFile()
A file input to the model. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ResponseInputContent.Visitor<T> visitor)
final ResponseInputContent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputContent
ofInputText(ResponseInputText inputText)
A text input to the model. final static ResponseInputContent
ofInputImage(ResponseInputImage inputImage)
An image input to the model. final static ResponseInputContent
ofInputFile(ResponseInputFile inputFile)
A file input to the model. -
-
Method Detail
-
inputText
final Optional<ResponseInputText> inputText()
A text input to the model.
-
inputImage
final Optional<ResponseInputImage> inputImage()
An image input to the model. Learn about image inputs.
-
inputFile
final Optional<ResponseInputFile> inputFile()
A file input to the model.
-
isInputText
final Boolean isInputText()
-
isInputImage
final Boolean isInputImage()
-
isInputFile
final Boolean isInputFile()
-
asInputText
final ResponseInputText asInputText()
A text input to the model.
-
asInputImage
final ResponseInputImage asInputImage()
An image input to the model. Learn about image inputs.
-
asInputFile
final ResponseInputFile asInputFile()
A file input to the model.
-
accept
final <T extends Any> T accept(ResponseInputContent.Visitor<T> visitor)
-
validate
final ResponseInputContent validate()
-
ofInputText
final static ResponseInputContent ofInputText(ResponseInputText inputText)
A text input to the model.
-
ofInputImage
final static ResponseInputContent ofInputImage(ResponseInputImage inputImage)
An image input to the model. Learn about image inputs.
-
ofInputFile
final static ResponseInputContent ofInputFile(ResponseInputFile inputFile)
A file input to the model.
-
-
-
-