Class: Google::Genai::Chats

Inherits:
Object
  • Object
show all
Defined in:
lib/google/genai/chats.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Chats

Returns a new instance of Chats.



6
7
8
# File 'lib/google/genai/chats.rb', line 6

def initialize(client)
  @client = client
end

Instance Method Details

#create(model:, history: [], config: nil) ⇒ Object



10
11
12
# File 'lib/google/genai/chats.rb', line 10

def create(model:, history: [], config: nil)
  Chat.new(client: @client, model: model, history: history, config: config)
end