Class: Rafflesia::ExecutionSpec

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/episodes/execution_spec.rb

Constant Summary collapse

HASH_ATTRS =
{
  command: :command,
  mode: :mode,
  model: :model,
  reasoning_effort: :reasoning_effort
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ExecutionSpec

Returns a new instance of ExecutionSpec.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/episodes/execution_spec.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @command = (hash[:command] || [])
  @mode = hash[:mode]
  @model = hash[:model]
  @reasoning_effort = hash[:reasoning_effort]
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



15
16
17
# File 'lib/rafflesia/episodes/execution_spec.rb', line 15

def command
  @command
end

#modeObject

Returns the value of attribute mode.



15
16
17
# File 'lib/rafflesia/episodes/execution_spec.rb', line 15

def mode
  @mode
end

#modelObject

Returns the value of attribute model.



15
16
17
# File 'lib/rafflesia/episodes/execution_spec.rb', line 15

def model
  @model
end

#reasoning_effortObject

Returns the value of attribute reasoning_effort.



15
16
17
# File 'lib/rafflesia/episodes/execution_spec.rb', line 15

def reasoning_effort
  @reasoning_effort
end