Class: DeepAgentsRb::Tools::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/deepagents/deepagentsrb/tools.rb

Overview

Command class to represent tool results

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(update) ⇒ Command

Returns a new instance of Command.

Raises:

  • (ArgumentError)


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

#updateObject (readonly)

Returns the value of attribute update.



31
32
33
# File 'lib/deepagents/deepagentsrb/tools.rb', line 31

def update
  @update
end