Package com.openai.models
Class ChatCompletionDeveloperMessageParam.Content
-
- All Implemented Interfaces:
public final class ChatCompletionDeveloperMessageParam.Content
The contents of the developer message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatCompletionDeveloperMessageParam.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 developer 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 developer messages, only type
text
is supported.
-
accept
final <T extends Any> T accept(ChatCompletionDeveloperMessageParam.Content.Visitor<T> visitor)
-
validate
final ChatCompletionDeveloperMessageParam.Content validate()
-
ofText
final static ChatCompletionDeveloperMessageParam.Content ofText(String text)
The contents of the developer message.
-
ofArrayOfContentParts
final static ChatCompletionDeveloperMessageParam.Content ofArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
An array of content parts with a defined type. For developer messages, only type
text
is supported.
-
-
-
-