Class: Nanobot::Config::WebSearchConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/nanobot/config/schema.rb

Overview

Web search tool API settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key: nil) ⇒ WebSearchConfig

Returns a new instance of WebSearchConfig.

Parameters:

  • api_key (String, nil) (defaults to: nil) —

    Brave Search API key



90
91
92
# File 'lib/nanobot/config/schema.rb', line 90

def initialize(api_key: nil)
  super
end

Instance Attribute Details

#api_key ⇒ Object

Returns the value of attribute api_key

Returns:

  • (Object) —

    the current value of api_key



88
89
90
# File 'lib/nanobot/config/schema.rb', line 88

def api_key
  @api_key
end