Class Thread.Builder
-
- All Implemented Interfaces:
public final class Thread.Builder
-
-
Constructor Summary
Constructors Constructor Description Thread.Builder()
-
Method Summary
Modifier and Type Method Description final Thread.Builder
id(String id)
The identifier, which can be referenced in API endpoints. final Thread.Builder
id(JsonField<String> id)
The identifier, which can be referenced in API endpoints. final Thread.Builder
createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the thread was created. final Thread.Builder
createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the thread was created. final Thread.Builder
metadata(JsonValue metadata)
Set of 16 key-value pairs that can be attached to an object. final Thread.Builder
object_(Thread.Object object_)
The object type, which is always thread
.final Thread.Builder
object_(JsonField<Thread.Object> object_)
The object type, which is always thread
.final Thread.Builder
toolResources(Thread.ToolResources toolResources)
A set of resources that are made available to the assistant's tools in this thread. final Thread.Builder
toolResources(Optional<Thread.ToolResources> toolResources)
A set of resources that are made available to the assistant's tools in this thread. final Thread.Builder
toolResources(JsonField<Thread.ToolResources> toolResources)
A set of resources that are made available to the assistant's tools in this thread. final Thread.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Thread.Builder
putAdditionalProperty(String key, JsonValue value)
final Thread.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Thread.Builder
removeAdditionalProperty(String key)
final Thread.Builder
removeAllAdditionalProperties(Set<String> keys)
final Thread
build()
-
-
Method Detail
-
id
final Thread.Builder id(String id)
The identifier, which can be referenced in API endpoints.
-
id
final Thread.Builder id(JsonField<String> id)
The identifier, which can be referenced in API endpoints.
-
createdAt
final Thread.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the thread was created.
-
createdAt
final Thread.Builder createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the thread was created.
-
metadata
final Thread.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.
-
object_
final Thread.Builder object_(Thread.Object object_)
The object type, which is always
thread
.
-
object_
final Thread.Builder object_(JsonField<Thread.Object> object_)
The object type, which is always
thread
.
-
toolResources
final Thread.Builder toolResources(Thread.ToolResources toolResources)
A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the
code_interpreter
tool requires a list of file IDs, while thefile_search
tool requires a list of vector store IDs.
-
toolResources
final Thread.Builder toolResources(Optional<Thread.ToolResources> toolResources)
A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the
code_interpreter
tool requires a list of file IDs, while thefile_search
tool requires a list of vector store IDs.
-
toolResources
final Thread.Builder toolResources(JsonField<Thread.ToolResources> toolResources)
A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the
code_interpreter
tool requires a list of file IDs, while thefile_search
tool requires a list of vector store IDs.
-
additionalProperties
final Thread.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Thread.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Thread.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Thread.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Thread.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-