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