Skip to content

struct OpenAI::AssistantRequest
inherits Struct #

Included modules

JSON::Serializable

Constructors#

.new(model : String, name : String | Nil = nil, description : String | Nil = nil, instructions : String | Nil = nil, tools : Array(AssistantTool) | Nil = nil, file_ids : Array(String) | Nil = nil, metadata : Hash(String, JSON::Any) | Nil = nil)#

View source

.new(pull : JSON::PullParser)#

View source

Methods#

#clone#

View source

#copy_with(model _model = @model, name _name = @name, description _description = @description, instructions _instructions = @instructions, tools _tools = @tools, file_ids _file_ids = @file_ids, metadata _metadata = @metadata)#

View source

#description : String | ::Nil#

#file_ids : Array(String) | ::Nil#

#instructions : String | ::Nil#

#metadata : Hash(String, JSON::Any) | ::Nil#

#model : String#

#name : String | ::Nil#

#tools : Array(AssistantTool) | ::Nil#