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