Package com.braintrustdata.api.models
Class PromptData.Prompt.Chat.Message.Fallback
-
- All Implemented Interfaces:
public final class PromptData.Prompt.Chat.Message.Fallback
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptData.Prompt.Chat.Message.Fallback.BuilderA builder for Fallback.
public final classPromptData.Prompt.Chat.Message.Fallback.Role
-
Method Summary
Modifier and Type Method Description final PromptData.Prompt.Chat.Message.Fallback.Rolerole()final Optional<String>content()final JsonField<PromptData.Prompt.Chat.Message.Fallback.Role>_role()Returns the raw JSON value of role. final JsonField<String>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final PromptData.Prompt.Chat.Message.Fallback.BuildertoBuilder()final PromptData.Prompt.Chat.Message.Fallbackvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PromptData.Prompt.Chat.Message.Fallback.Builderbuilder()Returns a mutable builder for constructing an instance of Fallback. -
-
Method Detail
-
role
final PromptData.Prompt.Chat.Message.Fallback.Role role()
-
_role
final JsonField<PromptData.Prompt.Chat.Message.Fallback.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PromptData.Prompt.Chat.Message.Fallback.Builder toBuilder()
-
validate
final PromptData.Prompt.Chat.Message.Fallback validate()
-
builder
final static PromptData.Prompt.Chat.Message.Fallback.Builder builder()
Returns a mutable builder for constructing an instance of Fallback.
The following fields are required:
.role()
-
-
-
-