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