Class ChatKitThreadUserMessageItem.Builder
-
- All Implemented Interfaces:
public final class ChatKitThreadUserMessageItem.Builder
A builder for ChatKitThreadUserMessageItem.
-
-
Method Summary
-
-
Method Detail
-
id
final ChatKitThreadUserMessageItem.Builder id(String id)
Identifier of the thread item.
-
id
final ChatKitThreadUserMessageItem.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
attachments
final ChatKitThreadUserMessageItem.Builder attachments(List<ChatKitAttachment> attachments)
Attachments associated with the user message. Defaults to an empty list.
-
attachments
final ChatKitThreadUserMessageItem.Builder attachments(JsonField<List<ChatKitAttachment>> attachments)
Sets Builder.attachments to an arbitrary JSON value.
You should usually call Builder.attachments with a well-typed
List<ChatKitAttachment>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAttachment
final ChatKitThreadUserMessageItem.Builder addAttachment(ChatKitAttachment attachment)
Adds a single ChatKitAttachment to attachments.
-
content
final ChatKitThreadUserMessageItem.Builder content(List<ChatKitThreadUserMessageItem.Content> content)
Ordered content elements supplied by the user.
-
content
final ChatKitThreadUserMessageItem.Builder content(JsonField<List<ChatKitThreadUserMessageItem.Content>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<Content>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final ChatKitThreadUserMessageItem.Builder addContent(ChatKitThreadUserMessageItem.Content content)
Adds a single Content to Builder.content.
-
addContent
final ChatKitThreadUserMessageItem.Builder addContent(ChatKitThreadUserMessageItem.Content.InputText inputText)
Alias for calling addContent with
Content.ofInputText(inputText)
.
-
addContent
final ChatKitThreadUserMessageItem.Builder addContent(ChatKitThreadUserMessageItem.Content.QuotedText quotedText)
Alias for calling addContent with
Content.ofQuotedText(quotedText)
.
-
addInputTextContent
final ChatKitThreadUserMessageItem.Builder addInputTextContent(String text)
Alias for calling addContent with the following:
Content.InputText.builder() .text(text) .build()
-
addQuotedTextContent
final ChatKitThreadUserMessageItem.Builder addQuotedTextContent(String text)
Alias for calling addContent with the following:
Content.QuotedText.builder() .text(text) .build()
-
createdAt
final ChatKitThreadUserMessageItem.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) for when the item was created.
-
createdAt
final ChatKitThreadUserMessageItem.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inferenceOptions
final ChatKitThreadUserMessageItem.Builder inferenceOptions(ChatKitThreadUserMessageItem.InferenceOptions inferenceOptions)
Inference overrides applied to the message. Defaults to null when unset.
-
inferenceOptions
final ChatKitThreadUserMessageItem.Builder inferenceOptions(Optional<ChatKitThreadUserMessageItem.InferenceOptions> inferenceOptions)
Alias for calling Builder.inferenceOptions with
inferenceOptions.orElse(null)
.
-
inferenceOptions
final ChatKitThreadUserMessageItem.Builder inferenceOptions(JsonField<ChatKitThreadUserMessageItem.InferenceOptions> inferenceOptions)
Sets Builder.inferenceOptions to an arbitrary JSON value.
You should usually call Builder.inferenceOptions with a well-typed InferenceOptions value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final ChatKitThreadUserMessageItem.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("chatkit.thread_item")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
threadId
final ChatKitThreadUserMessageItem.Builder threadId(String threadId)
Identifier of the parent thread.
-
threadId
final ChatKitThreadUserMessageItem.Builder threadId(JsonField<String> threadId)
Sets Builder.threadId to an arbitrary JSON value.
You should usually call Builder.threadId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ChatKitThreadUserMessageItem.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("chatkit.user_message")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatKitThreadUserMessageItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatKitThreadUserMessageItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatKitThreadUserMessageItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatKitThreadUserMessageItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatKitThreadUserMessageItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatKitThreadUserMessageItem build()
Returns an immutable instance of ChatKitThreadUserMessageItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .attachments() .content() .createdAt() .inferenceOptions() .threadId()
-
-
-
-