Class: Rafflesia::ExecutionSpec
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ExecutionSpec
- 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
-
#command ⇒ Object
Returns the value of attribute command.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#model ⇒ Object
Returns the value of attribute model.
-
#reasoning_effort ⇒ Object
Returns the value of attribute reasoning_effort.
Instance Method Summary collapse
-
#initialize(json) ⇒ ExecutionSpec
constructor
A new instance of ExecutionSpec.
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
#command ⇒ Object
Returns the value of attribute command.
15 16 17 |
# File 'lib/rafflesia/episodes/execution_spec.rb', line 15 def command @command end |
#mode ⇒ Object
Returns the value of attribute mode.
15 16 17 |
# File 'lib/rafflesia/episodes/execution_spec.rb', line 15 def mode @mode end |
#model ⇒ Object
Returns the value of attribute model.
15 16 17 |
# File 'lib/rafflesia/episodes/execution_spec.rb', line 15 def model @model end |
#reasoning_effort ⇒ Object
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 |