Class ThreadUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class ThreadUpdateParams.Body.Builder
A builder for Body.
-
-
Method Summary
-
-
Method Detail
-
metadata
final ThreadUpdateParams.Body.Builder metadata(ThreadUpdateParams.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 ThreadUpdateParams.Body.Builder metadata(Optional<ThreadUpdateParams.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null)
.
-
metadata
final ThreadUpdateParams.Body.Builder metadata(JsonField<ThreadUpdateParams.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolResources
final ThreadUpdateParams.Body.Builder toolResources(ThreadUpdateParams.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 ThreadUpdateParams.Body.Builder toolResources(Optional<ThreadUpdateParams.ToolResources> toolResources)
Alias for calling Builder.toolResources with
toolResources.orElse(null)
.
-
toolResources
final ThreadUpdateParams.Body.Builder toolResources(JsonField<ThreadUpdateParams.ToolResources> toolResources)
Sets Builder.toolResources to an arbitrary JSON value.
You should usually call Builder.toolResources with a well-typed ToolResources value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ThreadUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThreadUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThreadUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThreadUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThreadUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThreadUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-