Package com.openai.models
Class BetaThreadRunCreateParams.AdditionalMessage.Content
-
- All Implemented Interfaces:
public final class BetaThreadRunCreateParams.AdditionalMessage.Content
The text contents of the message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
BetaThreadRunCreateParams.AdditionalMessage.Content.Visitor
public final class
BetaThreadRunCreateParams.AdditionalMessage.Content.Deserializer
public final class
BetaThreadRunCreateParams.AdditionalMessage.Content.Serializer
-
Method Summary
Modifier and Type Method Description final Optional<String>
textContent()
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 text
or images can be passed withimage_url
orimage_file
.final Boolean
isTextContent()
final Boolean
isArrayOfContentParts()
final String
asTextContent()
The text contents of the message. final List<MessageContentPartParam>
asArrayOfContentParts()
An array of content parts with a defined type, each can be of type text
or images can be passed withimage_url
orimage_file
.final Optional<JsonValue>
_json()
final <T extends Any> T
accept(BetaThreadRunCreateParams.AdditionalMessage.Content.Visitor<T> visitor)
final BetaThreadRunCreateParams.AdditionalMessage.Content
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static BetaThreadRunCreateParams.AdditionalMessage.Content
ofTextContent(String textContent)
The text contents of the message. final static BetaThreadRunCreateParams.AdditionalMessage.Content
ofArrayOfContentParts(List<MessageContentPartParam> arrayOfContentParts)
An array of content parts with a defined type, each can be of type text
or images can be passed withimage_url
orimage_file
.-
-
Method Detail
-
textContent
final Optional<String> textContent()
The text contents of the message.
-
arrayOfContentParts
final Optional<List<MessageContentPartParam>> arrayOfContentParts()
An array of content parts with a defined type, each can be of type
text
or images can be passed withimage_url
orimage_file
. Image types are only supported on Vision-compatible models.
-
isTextContent
final Boolean isTextContent()
-
isArrayOfContentParts
final Boolean isArrayOfContentParts()
-
asTextContent
final String asTextContent()
The text contents of the message.
-
asArrayOfContentParts
final List<MessageContentPartParam> asArrayOfContentParts()
An array of content parts with a defined type, each can be of type
text
or images can be passed withimage_url
orimage_file
. Image types are only supported on Vision-compatible models.
-
accept
final <T extends Any> T accept(BetaThreadRunCreateParams.AdditionalMessage.Content.Visitor<T> visitor)
-
validate
final BetaThreadRunCreateParams.AdditionalMessage.Content validate()
-
ofTextContent
final static BetaThreadRunCreateParams.AdditionalMessage.Content ofTextContent(String textContent)
The text contents of the message.
-
ofArrayOfContentParts
final static BetaThreadRunCreateParams.AdditionalMessage.Content ofArrayOfContentParts(List<MessageContentPartParam> arrayOfContentParts)
An array of content parts with a defined type, each can be of type
text
or images can be passed withimage_url
orimage_file
. Image types are only supported on Vision-compatible models.
-
-
-
-