Package com.openai.models
Class ChatCompletionSystemMessageParam.Content
-
- All Implemented Interfaces:
public final class ChatCompletionSystemMessageParam.Content
The contents of the system message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatCompletionSystemMessageParam.Content.Visitor
public final class
ChatCompletionSystemMessageParam.Content.Deserializer
public final class
ChatCompletionSystemMessageParam.Content.Serializer
-
Method Summary
-
-
Method Detail
-
textContent
final Optional<String> textContent()
The contents of the system message.
-
arrayOfContentParts
final Optional<List<ChatCompletionContentPartText>> arrayOfContentParts()
An array of content parts with a defined type. For system messages, only type
text
is supported.
-
isTextContent
final Boolean isTextContent()
-
isArrayOfContentParts
final Boolean isArrayOfContentParts()
-
asTextContent
final String asTextContent()
The contents of the system message.
-
asArrayOfContentParts
final List<ChatCompletionContentPartText> asArrayOfContentParts()
An array of content parts with a defined type. For system messages, only type
text
is supported.
-
accept
final <T extends Any> T accept(ChatCompletionSystemMessageParam.Content.Visitor<T> visitor)
-
validate
final ChatCompletionSystemMessageParam.Content validate()
-
ofTextContent
final static ChatCompletionSystemMessageParam.Content ofTextContent(String textContent)
The contents of the system message.
-
ofArrayOfContentParts
final static ChatCompletionSystemMessageParam.Content ofArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
An array of content parts with a defined type. For system messages, only type
text
is supported.
-
-
-
-