Class ResponseFileSearchToolCall.Builder
-
- All Implemented Interfaces:
public final class ResponseFileSearchToolCall.Builder
A builder for ResponseFileSearchToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseFileSearchToolCall.Builder id(String id)
The unique ID of the file search tool call.
-
id
final ResponseFileSearchToolCall.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
queries
final ResponseFileSearchToolCall.Builder queries(List<String> queries)
The queries used to search for files.
-
queries
final ResponseFileSearchToolCall.Builder queries(JsonField<List<String>> queries)
Sets Builder.queries to an arbitrary JSON value.
You should usually call Builder.queries with a well-typed
List<String>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addQuery
final ResponseFileSearchToolCall.Builder addQuery(String query)
-
status
final ResponseFileSearchToolCall.Builder status(ResponseFileSearchToolCall.Status status)
The status of the file search tool call. One of
in_progress
,searching
,incomplete
orfailed
,
-
status
final ResponseFileSearchToolCall.Builder status(JsonField<ResponseFileSearchToolCall.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseFileSearchToolCall.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("file_search_call")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
results
final ResponseFileSearchToolCall.Builder results(List<ResponseFileSearchToolCall.Result> results)
The results of the file search tool call.
-
results
final ResponseFileSearchToolCall.Builder results(Optional<List<ResponseFileSearchToolCall.Result>> results)
Alias for calling Builder.results with
results.orElse(null)
.
-
results
final ResponseFileSearchToolCall.Builder results(JsonField<List<ResponseFileSearchToolCall.Result>> results)
Sets Builder.results to an arbitrary JSON value.
You should usually call Builder.results with a well-typed
List<Result>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addResult
final ResponseFileSearchToolCall.Builder addResult(ResponseFileSearchToolCall.Result result)
-
additionalProperties
final ResponseFileSearchToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseFileSearchToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseFileSearchToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseFileSearchToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseFileSearchToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseFileSearchToolCall build()
Returns an immutable instance of ResponseFileSearchToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .queries() .status()
-
-
-
-