struct AI::OpenAI::Tools::FileSearchFilter

Overview

File search filter (comparison or compound).

Defined in:

ai/openai/tool/openai_tools.cr

Constructors

Instance Method Summary

Constructor Detail

def self.comparison(key : String, filter_type : String, value : JSON::Any) : FileSearchFilter #

[View source]
def self.compound(compound_type : String, filters : Array(FileSearchFilter)) : FileSearchFilter #

[View source]
def self.new(key : String | Nil = nil, filter_type : String | Nil = nil, value : JSON::Any | Nil = nil, compound_type : String | Nil = nil, filters : Array(FileSearchFilter) | Nil = nil) #

[View source]

Instance Method Detail

def compound_type : String | Nil #

For compound filters


[View source]
def filter_type : String | Nil #

[View source]
def filters : Array(FileSearchFilter) | Nil #

[View source]
def key : String | Nil #

For comparison filters


[View source]
def to_h : Hash(String, JSON::Any) #

[View source]
def value : JSON::Any | Nil #

[View source]