Class: Rubyagents::ToolCall

Inherits:
Data
  • Object
show all
Defined in:
lib/rubyagents/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#function ⇒ Object (readonly)

Returns the value of attribute function

Returns:

  • (Object) —

    the current value of function



29
30
31
# File 'lib/rubyagents/model.rb', line 29

def function
  @function
end

#id ⇒ Object (readonly)

Returns the value of attribute id

Returns:

  • (Object) —

    the current value of id



29
30
31
# File 'lib/rubyagents/model.rb', line 29

def id
  @id
end

Instance Method Details

#to_h ⇒ Object



30
31
32
# File 'lib/rubyagents/model.rb', line 30

def to_h
  { id: id, function: function.to_h }
end