Class: ActiveAgent::Providers::RubyLLM::Options

Inherits:
Common::BaseModel show all
Defined in:
lib/active_agent/providers/ruby_llm/options.rb

Overview

Configuration options for the RubyLLM provider.

RubyLLM manages its own API keys via RubyLLM.configure, so no provider-specific API key attributes are needed here.

Instance Method Summary collapse

Methods inherited from Common::BaseModel

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

Constructor Details

#initialize(kwargs = {}) ⇒ Options

Returns a new instance of Options.



17
18
19
20
# File 'lib/active_agent/providers/ruby_llm/options.rb', line 17

def initialize(kwargs = {})
  kwargs = kwargs.deep_symbolize_keys if kwargs.respond_to?(:deep_symbolize_keys)
  super(**deep_compact(kwargs))
end

Instance Method Details

#extra_headersObject



22
23
24
# File 'lib/active_agent/providers/ruby_llm/options.rb', line 22

def extra_headers
  {}
end