Class: Openai::AssistantObj

Inherits:
Object
  • Object
show all
Defined in:
lib/openai/assistant_obj.rb

Overview

A object model struct of assistant

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssistantObj



27
28
29
30
31
# File 'lib/openai/assistant_obj.rb', line 27

def initialize(**args)
  args.each do |k, v|
    instance_variable_set("@#{k}", v) unless v.nil?
  end
end

Instance Attribute Details

#created_atInteger



11
12
13
# File 'lib/openai/assistant_obj.rb', line 11

def created_at
  @created_at
end

#descriptionString



15
16
17
# File 'lib/openai/assistant_obj.rb', line 15

def description
  @description
end

#file_idsString



23
24
25
# File 'lib/openai/assistant_obj.rb', line 23

def file_ids
  @file_ids
end

#idString



7
8
9
# File 'lib/openai/assistant_obj.rb', line 7

def id
  @id
end

#instructionsString



19
20
21
# File 'lib/openai/assistant_obj.rb', line 19

def instructions
  @instructions
end

#metadataString



25
26
27
# File 'lib/openai/assistant_obj.rb', line 25

def 
  
end

#modelString



17
18
19
# File 'lib/openai/assistant_obj.rb', line 17

def model
  @model
end

#nameString



13
14
15
# File 'lib/openai/assistant_obj.rb', line 13

def name
  @name
end

#objectString



9
10
11
# File 'lib/openai/assistant_obj.rb', line 9

def object
  @object
end

#toolsString



21
22
23
# File 'lib/openai/assistant_obj.rb', line 21

def tools
  @tools
end