Class BetaThreadCreateParams.BetaThreadCreateBody.Builder
-
- All Implemented Interfaces:
public final class BetaThreadCreateParams.BetaThreadCreateBody.Builder
-
-
Constructor Summary
Constructors Constructor Description BetaThreadCreateParams.BetaThreadCreateBody.Builder()
-
Method Summary
-
-
Method Detail
-
messages
final BetaThreadCreateParams.BetaThreadCreateBody.Builder messages(List<BetaThreadCreateParams.Message> messages)
A list of messages to start the thread with.
-
messages
final BetaThreadCreateParams.BetaThreadCreateBody.Builder messages(JsonField<List<BetaThreadCreateParams.Message>> messages)
A list of messages to start the thread with.
-
addMessage
final BetaThreadCreateParams.BetaThreadCreateBody.Builder addMessage(BetaThreadCreateParams.Message message)
A list of messages to start the thread with.
-
metadata
final BetaThreadCreateParams.BetaThreadCreateBody.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.
-
toolResources
final BetaThreadCreateParams.BetaThreadCreateBody.Builder toolResources(BetaThreadCreateParams.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 BetaThreadCreateParams.BetaThreadCreateBody.Builder toolResources(Optional<BetaThreadCreateParams.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 BetaThreadCreateParams.BetaThreadCreateBody.Builder toolResources(JsonField<BetaThreadCreateParams.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 BetaThreadCreateParams.BetaThreadCreateBody.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaThreadCreateParams.BetaThreadCreateBody.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaThreadCreateParams.BetaThreadCreateBody.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaThreadCreateParams.BetaThreadCreateBody.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaThreadCreateParams.BetaThreadCreateBody.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaThreadCreateParams.BetaThreadCreateBody build()
-
-
-
-