class

OpenAI::FileSearchToolCallResultsItem

Inherits JSON::Serializable < Reference < Object

Constructors

new(file_id : String | Nil = nil, text : String | Nil = nil, filename : String | Nil = nil, attributes : VectorStoreFileAttributes | Nil = nil, score : Float32 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

attributes
Source
attributes=(attributes : VectorStoreFileAttributes | Nil)
Source
file_id

The unique ID of the file.

Source
file_id=(file_id : String | Nil)

The unique ID of the file.

Source
filename

The name of the file.

Source
filename=(filename : String | Nil)

The name of the file.

Source
score

The relevance score of the file - a value between 0 and 1.

Source
score=(score : Float32 | Nil)

The relevance score of the file - a value between 0 and 1.

Source
text

The text that was retrieved from the file.

Source
text=(text : String | Nil)

The text that was retrieved from the file.

Source