Skip to content

struct OpenAI::Assistant
inherits Struct #

Included modules

JSON::Serializable

Constructors#

.new(id : String, object : String, created_at : Int64, model : String, tools : Array(AssistantTool), name : String | Nil = nil, description : String | Nil = nil, instructions : String | 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(id _id = @id, object _object = @object, created_at _created_at = @created_at, model _model = @model, tools _tools = @tools, name _name = @name, description _description = @description, instructions _instructions = @instructions, file_ids _file_ids = @file_ids, metadata _metadata = @metadata)#

View source

#created_at : Int64#

#description : String | ::Nil#

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

#id : String#

#instructions : String | ::Nil#

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

#model : String#

#name : String | ::Nil#

#object : String#

#tools : Array(AssistantTool)#