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
An interface that defines how to map each variant of Content to a value of type T.
-
Method Summary
-
-
Method Detail
-
arrayOfContentParts
final Optional<List<ChatCompletionContentPartText>> arrayOfContentParts()
An array of content parts with a defined type. For system messages, only type
text
is supported.
-
isArrayOfContentParts
final Boolean isArrayOfContentParts()
-
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()
-
ofText
final static ChatCompletionSystemMessageParam.Content ofText(String text)
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.
-
-
-
-