class

OpenAI::RunStepDetailsToolCallsFileSearchResultObject

Inherits JSON::Serializable < Reference < Object

A result instance of the file search.

Constructors

new(file_id : String = "", file_name : String = "", score : Float64 = 0.0, content : Array(RunStepDetailsToolCallsFileSearchResultObjectContentItem) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

The content of the result that was found. The content is only included if requested via the include query parameter.

Source
content=(content : Array(RunStepDetailsToolCallsFileSearchResultObjectContentItem) | Nil)

The content of the result that was found. The content is only included if requested via the include query parameter.

Source
file_id

The ID of the file that result was found in.

Source
file_id=(file_id : String)

The ID of the file that result was found in.

Source
file_name

The name of the file that result was found in.

Source
file_name=(file_name : String)

The name of the file that result was found in.

Source
score

The score of the result. All values must be a floating point number between 0 and 1.

Source
score=(score : Float64)

The score of the result. All values must be a floating point number between 0 and 1.

Source
validate!
Source