Class BetaThreadCreateParams.Message.Builder
-
- All Implemented Interfaces:
public final class BetaThreadCreateParams.Message.Builder
-
-
Constructor Summary
Constructors Constructor Description BetaThreadCreateParams.Message.Builder()
-
Method Summary
-
-
Method Detail
-
content
final BetaThreadCreateParams.Message.Builder content(BetaThreadCreateParams.Message.Content content)
The text contents of the message.
-
content
final BetaThreadCreateParams.Message.Builder content(JsonField<BetaThreadCreateParams.Message.Content> content)
The text contents of the message.
-
content
final BetaThreadCreateParams.Message.Builder content(String textContent)
The text contents of the message.
-
contentOfArrayOfContentParts
final BetaThreadCreateParams.Message.Builder contentOfArrayOfContentParts(List<MessageContentPartParam> arrayOfContentParts)
An array of content parts with a defined type, each can be of type
text
or images can be passed withimage_url
orimage_file
. Image types are only supported on Vision-compatible models.
-
role
final BetaThreadCreateParams.Message.Builder role(BetaThreadCreateParams.Message.Role role)
The role of the entity that is creating the message. Allowed values include:
user
: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.assistant
: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.
-
role
final BetaThreadCreateParams.Message.Builder role(JsonField<BetaThreadCreateParams.Message.Role> role)
The role of the entity that is creating the message. Allowed values include:
user
: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.assistant
: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.
-
attachments
final BetaThreadCreateParams.Message.Builder attachments(List<BetaThreadCreateParams.Message.Attachment> attachments)
A list of files attached to the message, and the tools they should be added to.
-
attachments
final BetaThreadCreateParams.Message.Builder attachments(Optional<List<BetaThreadCreateParams.Message.Attachment>> attachments)
A list of files attached to the message, and the tools they should be added to.
-
attachments
final BetaThreadCreateParams.Message.Builder attachments(JsonField<List<BetaThreadCreateParams.Message.Attachment>> attachments)
A list of files attached to the message, and the tools they should be added to.
-
addAttachment
final BetaThreadCreateParams.Message.Builder addAttachment(BetaThreadCreateParams.Message.Attachment attachment)
A list of files attached to the message, and the tools they should be added to.
-
metadata
final BetaThreadCreateParams.Message.Builder metadata(JsonValue metadata)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.
-
additionalProperties
final BetaThreadCreateParams.Message.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaThreadCreateParams.Message.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaThreadCreateParams.Message.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaThreadCreateParams.Message.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaThreadCreateParams.Message.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaThreadCreateParams.Message build()
-
-
-
-