Class BetaThreadCreateParams.BetaThreadCreateBody.Builder
-
- All Implemented Interfaces:
public final class BetaThreadCreateParams.BetaThreadCreateBody.Builder
A builder for BetaThreadCreateBody.
-
-
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(Metadata 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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
metadata
final BetaThreadCreateParams.BetaThreadCreateBody.Builder metadata(Optional<Metadata> 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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
metadata
final BetaThreadCreateParams.BetaThreadCreateBody.Builder metadata(JsonField<Metadata> 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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
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()
-
-
-
-