Class ChatCompletionPredictionContent.Content
-
- All Implemented Interfaces:
public final class ChatCompletionPredictionContent.Content
The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatCompletionPredictionContent.Content.Visitor
-
Method Summary
-
-
Method Detail
-
text
final Optional<String> text()
The content used for a Predicted Output. This is often the text of a file you are regenerating with minor changes.
-
arrayOfContentParts
final Optional<List<ChatCompletionContentPartText>> 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 inputs.
-
isArrayOfContentParts
final Boolean isArrayOfContentParts()
-
asText
final String asText()
The content used for a Predicted Output. This is often the text of a file you are regenerating with minor changes.
-
asArrayOfContentParts
final List<ChatCompletionContentPartText> 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 inputs.
-
accept
final <T extends Any> T accept(ChatCompletionPredictionContent.Content.Visitor<T> visitor)
-
validate
final ChatCompletionPredictionContent.Content validate()
-
ofText
final static ChatCompletionPredictionContent.Content ofText(String text)
The content used for a Predicted Output. This is often the text of a file you are regenerating with minor changes.
-
ofArrayOfContentParts
final static ChatCompletionPredictionContent.Content ofArrayOfContentParts(List<ChatCompletionContentPartText> 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 inputs.
-
-
-
-