Class: ActiveAgent::Providers::RubyLLM::Messages::Tool

Inherits:
Base show all
Defined in:
lib/active_agent/providers/ruby_llm/messages/tool.rb

Overview

Tool result message for RubyLLM provider.

Instance Method Summary collapse

Methods inherited from Common::BaseModel

#<=>, #==, attribute, #deep_compact, #deep_dup, delegate_attributes, drop_attributes, inherited, #initialize, #inspect, keys, #merge!, required_attributes, #serialize, #to_h, #to_hash

Constructor Details

This class inherits a constructor from ActiveAgent::Providers::Common::BaseModel

Instance Method Details

#to_commonObject



15
16
17
18
19
# File 'lib/active_agent/providers/ruby_llm/messages/tool.rb', line 15

def to_common
  common = super
  common[:tool_call_id] = tool_call_id if tool_call_id
  common
end