Package com.braintrustdata.api.models
Class PromptData.Prompt.Completion
-
- All Implemented Interfaces:
public final class PromptData.Prompt.Completion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptData.Prompt.Completion.BuilderA builder for Completion.
public final classPromptData.Prompt.Completion.Type
-
Method Summary
Modifier and Type Method Description final Stringcontent()final PromptData.Prompt.Completion.Typetype()final JsonField<String>_content()Returns the raw JSON value of content. final JsonField<PromptData.Prompt.Completion.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final PromptData.Prompt.Completionvalidate()final PromptData.Prompt.Completion.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PromptData.Prompt.Completion.Builderbuilder()Returns a mutable builder for constructing an instance of Completion. -
-
Method Detail
-
type
final PromptData.Prompt.Completion.Type type()
-
_content
final JsonField<String> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<PromptData.Prompt.Completion.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final PromptData.Prompt.Completion validate()
-
toBuilder
final PromptData.Prompt.Completion.Builder toBuilder()
-
builder
final static PromptData.Prompt.Completion.Builder builder()
Returns a mutable builder for constructing an instance of Completion.
The following fields are required:
.content() .type()
-
-
-
-