Class: OpenAI::Model::Run

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

Overview

Represents an execution run on a thread.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Run



84
85
86
87
88
# File 'lib/openai/models/run.rb', line 84

def initialize(attributes)
  attributes.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
end

Instance Attribute Details

#assistant_idString (readonly)



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

def assistant_id
  @assistant_id
end

#cancelled_atInteger | nil (readonly)



37
38
39
# File 'lib/openai/models/run.rb', line 37

def cancelled_at
  @cancelled_at
end

#completed_atInteger | nil (readonly)



43
44
45
# File 'lib/openai/models/run.rb', line 43

def completed_at
  @completed_at
end

#created_atInteger (readonly)



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

def created_at
  @created_at
end

#expires_atInteger | nil (readonly)



31
32
33
# File 'lib/openai/models/run.rb', line 31

def expires_at
  @expires_at
end

#failed_atInteger | nil (readonly)



40
41
42
# File 'lib/openai/models/run.rb', line 40

def failed_at
  @failed_at
end

#idString (readonly)



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

def id
  @id
end

#incomplete_detailsString | nil (readonly)



46
47
48
# File 'lib/openai/models/run.rb', line 46

def incomplete_details
  @incomplete_details
end

#instructionsString (readonly)



52
53
54
# File 'lib/openai/models/run.rb', line 52

def instructions
  @instructions
end

#last_errorString | nil (readonly)



28
29
30
# File 'lib/openai/models/run.rb', line 28

def last_error
  @last_error
end

#max_completion_tokensInteger | nil (readonly)



73
74
75
# File 'lib/openai/models/run.rb', line 73

def max_completion_tokens
  @max_completion_tokens
end

#max_prompt_tokensInteger | nil (readonly)



70
71
72
# File 'lib/openai/models/run.rb', line 70

def max_prompt_tokens
  @max_prompt_tokens
end

#metadataHash[String, String] (readonly)



58
59
60
# File 'lib/openai/models/run.rb', line 58

def 
  
end

#modelString (readonly)



49
50
51
# File 'lib/openai/models/run.rb', line 49

def model
  @model
end

#objectString (readonly)



10
11
12
# File 'lib/openai/models/run.rb', line 10

def object
  @object
end

#required_actionString | nil (readonly)



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

def required_action
  @required_action
end

#response_formatString (readonly)



82
83
84
# File 'lib/openai/models/run.rb', line 82

def response_format
  @response_format
end

#started_atInteger | nil (readonly)



34
35
36
# File 'lib/openai/models/run.rb', line 34

def started_at
  @started_at
end

#statusString (readonly)



22
23
24
# File 'lib/openai/models/run.rb', line 22

def status
  @status
end

#temperatureNumber | nil (readonly)



64
65
66
# File 'lib/openai/models/run.rb', line 64

def temperature
  @temperature
end

#thread_idString (readonly)



16
17
18
# File 'lib/openai/models/run.rb', line 16

def thread_id
  @thread_id
end

#tool_choiceString (readonly)



79
80
81
# File 'lib/openai/models/run.rb', line 79

def tool_choice
  @tool_choice
end

#toolsString (readonly)



55
56
57
# File 'lib/openai/models/run.rb', line 55

def tools
  @tools
end

#top_pNumber | nil (readonly)



67
68
69
# File 'lib/openai/models/run.rb', line 67

def top_p
  @top_p
end

#truncation_strategyString (readonly)



76
77
78
# File 'lib/openai/models/run.rb', line 76

def truncation_strategy
  @truncation_strategy
end

#usageString | nil (readonly)



61
62
63
# File 'lib/openai/models/run.rb', line 61

def usage
  @usage
end