Package com.openai.models.responses
Class EasyInputMessage.Content
-
- All Implemented Interfaces:
public final class EasyInputMessage.Content
Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
EasyInputMessage.Content.Visitor
An interface that defines how to map each variant of Content to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<String>
textInput()
A text input to the model. final Optional<List<ResponseInputContent>>
responseInputMessageContentList()
A list of one or many input items to the model, containing different content types. final Boolean
isTextInput()
final Boolean
isResponseInputMessageContentList()
final String
asTextInput()
A text input to the model. final List<ResponseInputContent>
asResponseInputMessageContentList()
A list of one or many input items to the model, containing different content types. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(EasyInputMessage.Content.Visitor<T> visitor)
final EasyInputMessage.Content
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EasyInputMessage.Content
ofTextInput(String textInput)
A text input to the model. final static EasyInputMessage.Content
ofResponseInputMessageContentList(List<ResponseInputContent> responseInputMessageContentList)
A list of one or many input items to the model, containing different content types. -
-
Method Detail
-
responseInputMessageContentList
final Optional<List<ResponseInputContent>> responseInputMessageContentList()
A list of one or many input items to the model, containing different content types.
-
isTextInput
final Boolean isTextInput()
-
isResponseInputMessageContentList
final Boolean isResponseInputMessageContentList()
-
asTextInput
final String asTextInput()
A text input to the model.
-
asResponseInputMessageContentList
final List<ResponseInputContent> asResponseInputMessageContentList()
A list of one or many input items to the model, containing different content types.
-
accept
final <T extends Any> T accept(EasyInputMessage.Content.Visitor<T> visitor)
-
validate
final EasyInputMessage.Content validate()
-
ofTextInput
final static EasyInputMessage.Content ofTextInput(String textInput)
A text input to the model.
-
ofResponseInputMessageContentList
final static EasyInputMessage.Content ofResponseInputMessageContentList(List<ResponseInputContent> responseInputMessageContentList)
A list of one or many input items to the model, containing different content types.
-
-
-
-