Class BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder
-
- All Implemented Interfaces:
public final class BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder
A builder for BetaThreadMessageCreateBody.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder content(BetaThreadMessageCreateParams.Content content)
The text contents of the message.
-
content
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder content(JsonField<BetaThreadMessageCreateParams.Content> content)
The text contents of the message.
-
content
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder content(String text)
The text contents of the message.
-
contentOfArrayOfContentParts
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.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 BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder role(BetaThreadMessageCreateParams.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 BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder role(JsonField<BetaThreadMessageCreateParams.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 BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder attachments(List<BetaThreadMessageCreateParams.Attachment> attachments)
A list of files attached to the message, and the tools they should be added to.
-
attachments
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder attachments(Optional<List<BetaThreadMessageCreateParams.Attachment>> attachments)
A list of files attached to the message, and the tools they should be added to.
-
attachments
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder attachments(JsonField<List<BetaThreadMessageCreateParams.Attachment>> attachments)
A list of files attached to the message, and the tools they should be added to.
-
addAttachment
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder addAttachment(BetaThreadMessageCreateParams.Attachment attachment)
A list of files attached to the message, and the tools they should be added to.
-
metadata
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder metadata(Metadata 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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
metadata
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder metadata(Optional<Metadata> 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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
metadata
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder metadata(JsonField<Metadata> 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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
additionalProperties
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaThreadMessageCreateParams.BetaThreadMessageCreateBody.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-