Sha256: 361e480d7d9bfd4919bc9edab3d295b75408981c76917899f41dfca72935b916

Contents?: true

Size: 484 Bytes

Versions: 13

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

require 'openai'

module NanoBot
  module Components
    module Providers
      class Base
        def initialize(_options, _settings, _credentials, _environment: {})
          raise NoMethodError, "The 'initialize' method is not implemented for the current provider."
        end

        def evaluate(_payload)
          raise NoMethodError, "The 'evaluate' method is not implemented for the current provider."
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
nano-bots-3.4.0 components/providers/base.rb
nano-bots-3.3.0 components/providers/base.rb
nano-bots-3.2.0 components/providers/base.rb
nano-bots-3.0.1 components/providers/base.rb
nano-bots-3.0.0 components/providers/base.rb
nano-bots-2.5.1 components/providers/base.rb
nano-bots-2.5.0 components/providers/base.rb
nano-bots-2.4.1 components/providers/base.rb
nano-bots-2.4.0 components/providers/base.rb
nano-bots-2.3.0 components/providers/base.rb
nano-bots-2.2.0 components/providers/base.rb
nano-bots-2.1.0 components/providers/base.rb
nano-bots-2.0.0 components/providers/base.rb