Class ChatCompletionSystemMessageParam.Content
-
- All Implemented Interfaces:
public final class ChatCompletionSystemMessageParam.ContentThe contents of the system message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceChatCompletionSystemMessageParam.Content.VisitorAn interface that defines how to map each variant of Content to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<String>text()The contents of the system message. final Optional<List<ChatCompletionContentPartText>>arrayOfContentParts()An array of content parts with a defined type. final BooleanisText()final BooleanisArrayOfContentParts()final StringasText()The contents of the system message. final List<ChatCompletionContentPartText>asArrayOfContentParts()An array of content parts with a defined type. final Optional<JsonValue>_json()final <T extends Any> Taccept(ChatCompletionSystemMessageParam.Content.Visitor<T> visitor)final ChatCompletionSystemMessageParam.Contentvalidate()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionSystemMessageParam.ContentofText(String text)The contents of the system message. final static ChatCompletionSystemMessageParam.ContentofArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)An array of content parts with a defined type. -
-
Method Detail
-
arrayOfContentParts
final Optional<List<ChatCompletionContentPartText>> arrayOfContentParts()
An array of content parts with a defined type. For system messages, only type
textis supported.
-
isArrayOfContentParts
final Boolean isArrayOfContentParts()
-
asArrayOfContentParts
final List<ChatCompletionContentPartText> asArrayOfContentParts()
An array of content parts with a defined type. For system messages, only type
textis 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
textis supported.
-
-
-
-