Package com.openai.models
Class ChatCompletionUserMessageParam.Content
-
- All Implemented Interfaces:
public final class ChatCompletionUserMessageParam.Content
The contents of the user message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatCompletionUserMessageParam.Content.Visitor
public final class
ChatCompletionUserMessageParam.Content.Deserializer
public final class
ChatCompletionUserMessageParam.Content.Serializer
-
Method Summary
-
-
Method Detail
-
textContent
final Optional<String> textContent()
The text contents of the message.
-
arrayOfContentParts
final Optional<List<ChatCompletionContentPart>> arrayOfContentParts()
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs.
-
isTextContent
final Boolean isTextContent()
-
isArrayOfContentParts
final Boolean isArrayOfContentParts()
-
asTextContent
final String asTextContent()
The text contents of the message.
-
asArrayOfContentParts
final List<ChatCompletionContentPart> asArrayOfContentParts()
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs.
-
accept
final <T extends Any> T accept(ChatCompletionUserMessageParam.Content.Visitor<T> visitor)
-
validate
final ChatCompletionUserMessageParam.Content validate()
-
ofTextContent
final static ChatCompletionUserMessageParam.Content ofTextContent(String textContent)
The text contents of the message.
-
ofArrayOfContentParts
final static ChatCompletionUserMessageParam.Content ofArrayOfContentParts(List<ChatCompletionContentPart> arrayOfContentParts)
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs.
-
-
-
-