Package com.openai.models
Class BetaThreadCreateAndRunParams.Thread.Message.Content
-
- All Implemented Interfaces:
public final class BetaThreadCreateAndRunParams.Thread.Message.ContentThe text contents of the message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaThreadCreateAndRunParams.Thread.Message.Content.Visitorpublic final classBetaThreadCreateAndRunParams.Thread.Message.Content.Deserializerpublic final classBetaThreadCreateAndRunParams.Thread.Message.Content.Serializer
-
Method Summary
Modifier and Type Method Description final Optional<String>text()The text contents of the message. final Optional<List<MessageContentPartParam>>arrayOfContentParts()An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file.final BooleanisText()final BooleanisArrayOfContentParts()final StringasText()The text contents of the message. final List<MessageContentPartParam>asArrayOfContentParts()An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file.final Optional<JsonValue>_json()final <T extends Any> Taccept(BetaThreadCreateAndRunParams.Thread.Message.Content.Visitor<T> visitor)final BetaThreadCreateAndRunParams.Thread.Message.Contentvalidate()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaThreadCreateAndRunParams.Thread.Message.ContentofText(String text)The text contents of the message. final static BetaThreadCreateAndRunParams.Thread.Message.ContentofArrayOfContentParts(List<MessageContentPartParam> arrayOfContentParts)An array of content parts with a defined type, each can be of type textor images can be passed withimage_urlorimage_file.-
-
Method Detail
-
arrayOfContentParts
final Optional<List<MessageContentPartParam>> arrayOfContentParts()
An array of content parts with a defined type, each can be of type
textor images can be passed withimage_urlorimage_file. Image types are only supported on Vision-compatible models.
-
isArrayOfContentParts
final Boolean isArrayOfContentParts()
-
asArrayOfContentParts
final List<MessageContentPartParam> asArrayOfContentParts()
An array of content parts with a defined type, each can be of type
textor images can be passed withimage_urlorimage_file. Image types are only supported on Vision-compatible models.
-
accept
final <T extends Any> T accept(BetaThreadCreateAndRunParams.Thread.Message.Content.Visitor<T> visitor)
-
validate
final BetaThreadCreateAndRunParams.Thread.Message.Content validate()
-
ofText
final static BetaThreadCreateAndRunParams.Thread.Message.Content ofText(String text)
The text contents of the message.
-
ofArrayOfContentParts
final static BetaThreadCreateAndRunParams.Thread.Message.Content ofArrayOfContentParts(List<MessageContentPartParam> arrayOfContentParts)
An array of content parts with a defined type, each can be of type
textor images can be passed withimage_urlorimage_file. Image types are only supported on Vision-compatible models.
-
-
-
-