Class: Bristow::Providers::Google

Inherits:
Base
  • Object
show all
Defined in:
lib/bristow/providers/google.rb

Instance Attribute Summary

Attributes inherited from Base

#api_key

Instance Method Summary collapse

Methods inherited from Base

#format_function_response, #function_arguments, #function_name, #is_function_call?

Constructor Details

#initialize(api_key:) ⇒ Google

Returns a new instance of Google.



4
5
6
7
8
# File 'lib/bristow/providers/google.rb', line 4

def initialize(api_key:)
  super
  # Will implement Google client when gem is available  
  @client = nil # Placeholder for Google::GenerativeAI::Client.new(api_key: api_key)
end

Instance Method Details

#chat(params) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/bristow/providers/google.rb', line 10

def chat(params)
  raise NotImplementedError, "Google provider not yet implemented"
end

#default_modelObject



24
25
26
# File 'lib/bristow/providers/google.rb', line 24

def default_model
  "gemini-pro"
end

#format_functions(functions) ⇒ Object

Raises:

  • (NotImplementedError)


18
19
20
21
22
# File 'lib/bristow/providers/google.rb', line 18

def format_functions(functions)
  # Google uses function declarations format
  # Will implement when Google client is added
  raise NotImplementedError, "Google provider not yet implemented"
end

#stream_chat(params, &block) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/bristow/providers/google.rb', line 14

def stream_chat(params, &block)
  raise NotImplementedError, "Google provider not yet implemented"
end