Class ThreadCreateAndRunParams.Thread.Message.Attachment.Builder
-
- All Implemented Interfaces:
public final class ThreadCreateAndRunParams.Thread.Message.Attachment.Builder
A builder for Attachment.
-
-
Method Summary
-
-
Method Detail
-
fileId
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder fileId(String fileId)
The ID of the file to attach to the message.
-
fileId
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder fileId(JsonField<String> fileId)
Sets Builder.fileId to an arbitrary JSON value.
You should usually call Builder.fileId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tools
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder tools(List<ThreadCreateAndRunParams.Thread.Message.Attachment.Tool> tools)
The tools to add this file to.
-
tools
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder tools(JsonField<List<ThreadCreateAndRunParams.Thread.Message.Attachment.Tool>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<Tool>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTool
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder addTool(ThreadCreateAndRunParams.Thread.Message.Attachment.Tool tool)
-
addTool
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder addTool(CodeInterpreterTool codeInterpreter)
Alias for calling addTool with
Tool.ofCodeInterpreter(codeInterpreter)
.
-
addToolFileSearch
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder addToolFileSearch()
Alias for calling addTool with
Tool.ofFileSearch()
.
-
additionalProperties
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThreadCreateAndRunParams.Thread.Message.Attachment.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThreadCreateAndRunParams.Thread.Message.Attachment build()
Returns an immutable instance of Attachment.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-