Class Completion
-
- All Implemented Interfaces:
public final class Completion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCompletion.BuilderA builder for Completion.
public final classCompletion.TypeObject type.
For Text Completions, this is always
"completion".
-
Method Summary
Modifier and Type Method Description final Stringid()Unique object identifier. final Stringcompletion()The resulting completion up to and excluding the stop sequences. final Modelmodel()The model that will complete your prompt. final Optional<String>stopReason()The reason that we stopped. final Completion.Typetype()Object type. final JsonField<String>_id()Unique object identifier. final JsonField<String>_completion()The resulting completion up to and excluding the stop sequences. final JsonField<Model>_model()The model that will complete your prompt. final JsonField<String>_stopReason()The reason that we stopped. final JsonField<Completion.Type>_type()Object type. final Map<String, JsonValue>_additionalProperties()final Completionvalidate()final Completion.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Completion.Builderbuilder()-
-
Method Detail
-
completion
final String completion()
The resulting completion up to and excluding the stop sequences.
-
model
final Model model()
The model that will complete your prompt.\n\nSee models for additional details and options.
-
stopReason
final Optional<String> stopReason()
The reason that we stopped.
This may be one the following values:
"stop_sequence": we reached a stop sequence — either provided by you via thestop_sequencesparameter, or a stop sequence built into the model"max_tokens": we exceededmax_tokens_to_sampleor the model's maximum
-
type
final Completion.Type type()
Object type.
For Text Completions, this is always
"completion".
-
_id
final JsonField<String> _id()
Unique object identifier.
The format and length of IDs may change over time.
-
_completion
final JsonField<String> _completion()
The resulting completion up to and excluding the stop sequences.
-
_model
final JsonField<Model> _model()
The model that will complete your prompt.\n\nSee models for additional details and options.
-
_stopReason
final JsonField<String> _stopReason()
The reason that we stopped.
This may be one the following values:
"stop_sequence": we reached a stop sequence — either provided by you via thestop_sequencesparameter, or a stop sequence built into the model"max_tokens": we exceededmax_tokens_to_sampleor the model's maximum
-
_type
final JsonField<Completion.Type> _type()
Object type.
For Text Completions, this is always
"completion".
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final Completion validate()
-
toBuilder
final Completion.Builder toBuilder()
-
builder
final static Completion.Builder builder()
-
-
-
-