Class FileSearchToolCall.FileSearch.Result.Builder
-
- All Implemented Interfaces:
public final class FileSearchToolCall.FileSearch.Result.Builder
A builder for Result.
-
-
Method Summary
-
-
Method Detail
-
fileId
final FileSearchToolCall.FileSearch.Result.Builder fileId(String fileId)
The ID of the file that result was found in.
-
fileId
final FileSearchToolCall.FileSearch.Result.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.
-
fileName
final FileSearchToolCall.FileSearch.Result.Builder fileName(String fileName)
The name of the file that result was found in.
-
fileName
final FileSearchToolCall.FileSearch.Result.Builder fileName(JsonField<String> fileName)
Sets Builder.fileName to an arbitrary JSON value.
You should usually call Builder.fileName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
score
final FileSearchToolCall.FileSearch.Result.Builder score(Double score)
The score of the result. All values must be a floating point number between 0 and 1.
-
score
final FileSearchToolCall.FileSearch.Result.Builder score(JsonField<Double> score)
Sets Builder.score to an arbitrary JSON value.
You should usually call Builder.score with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final FileSearchToolCall.FileSearch.Result.Builder content(List<FileSearchToolCall.FileSearch.Result.Content> content)
The content of the result that was found. The content is only included if requested via the include query parameter.
-
content
final FileSearchToolCall.FileSearch.Result.Builder content(JsonField<List<FileSearchToolCall.FileSearch.Result.Content>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<Content>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final FileSearchToolCall.FileSearch.Result.Builder addContent(FileSearchToolCall.FileSearch.Result.Content content)
Adds a single Content to Builder.content.
-
additionalProperties
final FileSearchToolCall.FileSearch.Result.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileSearchToolCall.FileSearch.Result.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileSearchToolCall.FileSearch.Result.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileSearchToolCall.FileSearch.Result.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileSearchToolCall.FileSearch.Result.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileSearchToolCall.FileSearch.Result build()
Returns an immutable instance of Result.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.fileId() .fileName() .score()
-
-
-
-