Class ChatKitThreadAssistantMessageItem.Builder
-
- All Implemented Interfaces:
public final class ChatKitThreadAssistantMessageItem.Builder
A builder for ChatKitThreadAssistantMessageItem.
-
-
Method Summary
-
-
Method Detail
-
id
final ChatKitThreadAssistantMessageItem.Builder id(String id)
Identifier of the thread item.
-
id
final ChatKitThreadAssistantMessageItem.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.
-
content
final ChatKitThreadAssistantMessageItem.Builder content(List<ChatKitResponseOutputText> content)
Ordered assistant response segments.
-
content
final ChatKitThreadAssistantMessageItem.Builder content(JsonField<List<ChatKitResponseOutputText>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<ChatKitResponseOutputText>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final ChatKitThreadAssistantMessageItem.Builder addContent(ChatKitResponseOutputText content)
Adds a single ChatKitResponseOutputText to Builder.content.
-
createdAt
final ChatKitThreadAssistantMessageItem.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) for when the item was created.
-
createdAt
final ChatKitThreadAssistantMessageItem.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.
-
object_
final ChatKitThreadAssistantMessageItem.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 ChatKitThreadAssistantMessageItem.Builder threadId(String threadId)
Identifier of the parent thread.
-
threadId
final ChatKitThreadAssistantMessageItem.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 ChatKitThreadAssistantMessageItem.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.assistant_message")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatKitThreadAssistantMessageItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatKitThreadAssistantMessageItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatKitThreadAssistantMessageItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatKitThreadAssistantMessageItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatKitThreadAssistantMessageItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatKitThreadAssistantMessageItem build()
Returns an immutable instance of ChatKitThreadAssistantMessageItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .content() .createdAt() .threadId()
-
-
-
-