Class FileSearchToolCall.FileSearch.Result
-
- All Implemented Interfaces:
public final class FileSearchToolCall.FileSearch.Result
A result instance of the file search.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
FileSearchToolCall.FileSearch.Result.Builder
A builder for Result.
public final class
FileSearchToolCall.FileSearch.Result.Content
-
Method Summary
Modifier and Type Method Description final String
fileId()
The ID of the file that result was found in. final String
fileName()
The name of the file that result was found in. final Double
score()
The score of the result. final Optional<List<FileSearchToolCall.FileSearch.Result.Content>>
content()
The content of the result that was found. final JsonField<String>
_fileId()
Returns the raw JSON value of fileId. final JsonField<String>
_fileName()
Returns the raw JSON value of fileName. final JsonField<Double>
_score()
Returns the raw JSON value of score. final JsonField<List<FileSearchToolCall.FileSearch.Result.Content>>
_content()
Returns the raw JSON value of content. final Map<String, JsonValue>
_additionalProperties()
final FileSearchToolCall.FileSearch.Result.Builder
toBuilder()
final FileSearchToolCall.FileSearch.Result
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static FileSearchToolCall.FileSearch.Result.Builder
builder()
Returns a mutable builder for constructing an instance of Result. -
-
Method Detail
-
score
final Double score()
The score of the result. All values must be a floating point number between 0 and 1.
-
content
final Optional<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.
-
_fileId
final JsonField<String> _fileId()
Returns the raw JSON value of fileId.
Unlike fileId, this method doesn't throw if the JSON field has an unexpected type.
-
_fileName
final JsonField<String> _fileName()
Returns the raw JSON value of fileName.
Unlike fileName, this method doesn't throw if the JSON field has an unexpected type.
-
_score
final JsonField<Double> _score()
Returns the raw JSON value of score.
Unlike score, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<List<FileSearchToolCall.FileSearch.Result.Content>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FileSearchToolCall.FileSearch.Result.Builder toBuilder()
-
validate
final FileSearchToolCall.FileSearch.Result validate()
-
builder
final static FileSearchToolCall.FileSearch.Result.Builder builder()
Returns a mutable builder for constructing an instance of Result.
The following fields are required:
.fileId() .fileName() .score()
-
-
-
-