Class: DeepAgentsRb::Tools::Command
- Inherits:
-
Object
- Object
- DeepAgentsRb::Tools::Command
- Defined in:
- lib/deepagents/deepagentsrb/tools.rb
Overview
Command class to represent tool results
Instance Attribute Summary collapse
-
#update ⇒ Object
readonly
Returns the value of attribute update.
Instance Method Summary collapse
-
#initialize(update) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(update) ⇒ Command
Returns a new instance of Command.
33 34 35 36 |
# File 'lib/deepagents/deepagentsrb/tools.rb', line 33 def initialize(update) raise ArgumentError, "Update must be a hash" unless update.is_a?(Hash) @update = update end |
Instance Attribute Details
#update ⇒ Object (readonly)
Returns the value of attribute update.
31 32 33 |
# File 'lib/deepagents/deepagentsrb/tools.rb', line 31 def update @update end |