Record Class ToolCall.FileSearchToolCall.FileSearch.Result
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.ToolCall.FileSearchToolCall.FileSearch.Result
- Enclosing class:
- ToolCall.FileSearchToolCall.FileSearch
public static record ToolCall.FileSearchToolCall.FileSearch.Result(String fileId, String fileName, double score, List<ToolCall.FileSearchToolCall.FileSearch.Result.Content> content)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
-
Constructor Summary
ConstructorsConstructorDescriptionResult
(String fileId, String fileName, double score, List<ToolCall.FileSearchToolCall.FileSearch.Result.Content> content) Creates an instance of aResult
record class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()
Returns the value of thecontent
record component.final boolean
Indicates whether some other object is "equal to" this one.fileId()
Returns the value of thefileId
record component.fileName()
Returns the value of thefileName
record component.final int
hashCode()
Returns a hash code value for this object.double
score()
Returns the value of thescore
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(String fileId, String fileName, double score, List<ToolCall.FileSearchToolCall.FileSearch.Result.Content> content) Creates an instance of aResult
record class.- Parameters:
fileId
- the value for thefileId
record componentfileName
- the value for thefileName
record componentscore
- the value for thescore
record componentcontent
- the value for thecontent
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
fileId
Returns the value of thefileId
record component.- Returns:
- the value of the
fileId
record component
-
fileName
Returns the value of thefileName
record component.- Returns:
- the value of the
fileName
record component
-
score
public double score()Returns the value of thescore
record component.- Returns:
- the value of the
score
record component
-
content
Returns the value of thecontent
record component.- Returns:
- the value of the
content
record component
-