summaryrefslogtreecommitdiff
path: root/components/providers/base.rb
blob: 7a99833046ddf1584d5e6d1ad5a5f7cea9f3e1df (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'openai'

module NanoBot
  module Components
    module Providers
      class Base
        def initialize(_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