Class ChatCompletionPredictionContent
-
- All Implemented Interfaces:
public final class ChatCompletionPredictionContent
Static predicted output content, such as the content of a text file that is being regenerated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionPredictionContent.Builder
A builder for ChatCompletionPredictionContent.
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.
-
Method Summary
Modifier and Type Method Description final ChatCompletionPredictionContent.Content
content()
The content that should be matched when generating a model response. final JsonValue
_type()
The type of the predicted content you want to provide. final JsonField<ChatCompletionPredictionContent.Content>
_content()
Returns the raw JSON value of content. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionPredictionContent.Builder
toBuilder()
final ChatCompletionPredictionContent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionPredictionContent.Builder
builder()
Returns a mutable builder for constructing an instance of ChatCompletionPredictionContent. -
-
Method Detail
-
content
final ChatCompletionPredictionContent.Content 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.
-
_type
final JsonValue _type()
The type of the predicted content you want to provide. This type is currently always
content
.Expected to always return the following:
JsonValue.from("content")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<ChatCompletionPredictionContent.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionPredictionContent.Builder toBuilder()
-
validate
final ChatCompletionPredictionContent validate()
-
builder
final static ChatCompletionPredictionContent.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionPredictionContent.
The following fields are required:
.content()
-
-
-
-