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